fpc/compiler
nickysn ed26d54e3b * synchronized with trunk
git-svn-id: branches/wasm@48102 -
2021-01-07 07:21:01 +00:00
..
aarch64 * Aarch64: fix 32 bit div operations with constant denominators, resolves #38225 2020-12-18 21:39:35 +00:00
arm Avoid internalerror in RemoveCurrentP for arm compiler 2020-12-05 21:23:09 +00:00
armgen * patch by J. Gareth Moreton: fixes crash on ARM with -CriotR, resolves #38116 2020-11-22 19:47:34 +00:00
avr * patch by Christo Crause: Fix missed optimization opportunities, resolves #38285 2020-12-31 15:33:39 +00:00
generic * Give access to CPU specific fields of tsettings record 2020-11-16 22:34:38 +00:00
html
i386 + patch by J. Gareth Moreton: Advanced MOVZX optimisations, resolves #38294 2021-01-05 15:15:41 +00:00
i8086 * Ch_ information for vreduce* fixed 2020-12-23 17:58:07 +00:00
jvm * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
llvm * llvm: only set custom parameter alignments for byval parameters, the rest 2021-01-06 22:35:40 +00:00
m68k m68k: new CPU capability - the LINK instruction supports LONG displacements (68020+) 2020-12-26 00:21:31 +00:00
mips * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
msg + -Xa option: generate code which allows to use more than 2 GB of static data on 64 Bit targets 2020-11-30 22:07:34 +00:00
powerpc * turn the recently added 3357 warning into an error, to avoid another compiler IE later 2020-10-14 01:52:12 +00:00
powerpc64 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ppcgen * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
riscv * pass lp64d to GNU AS for abi_riscv_hf to get the right ABI set 2020-11-25 20:20:08 +00:00
riscv32 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
riscv64 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
sparc * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
sparc64 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
sparcgen Try to fix sparc32 code generation error for overflow test 2020-12-16 23:16:37 +00:00
systems * synchronized with trunk 2020-12-12 23:20:33 +00:00
utils * synchronized with trunk 2021-01-07 07:21:01 +00:00
wasm32 + implemented int to real conversion 2021-01-05 08:40:33 +00:00
x86 + patch by J. Gareth Moreton: Advanced MOVZX optimisations, resolves #38294 2021-01-05 15:15:41 +00:00
x86_64 + patch by J. Gareth Moreton: Advanced MOVZX optimisations, resolves #38294 2021-01-05 15:15:41 +00:00
xtensa + Xtensa: support large stack frames for the call0 abi 2020-12-25 18:18:09 +00:00
z80 Fix z80 compiler failure after change to ConcatConstSymbol in commit #47668 2020-12-03 11:05:36 +00:00
aasmbase.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
aasmcfi.pas
aasmcnst.pas * added "const" to some string parameters 2020-11-03 21:34:15 +00:00
aasmdata.pas * Reverted accidentally committed files. 2020-08-13 18:48:19 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas * refactored call_indirect to use a 'functype' operand type. This type will be reused for block instructions as well. 2021-01-04 10:50:06 +00:00
aggas.pas * fixed call_indirect for the llvm-mc asm writer 2021-01-02 12:21:30 +00:00
aopt.pas * (slight modified) patch by J. Gareth Moreton to reduce number of assembler optimizer passes, resolves #37959 2020-10-20 20:03:25 +00:00
aoptbase.pas
aoptda.pas
aoptobj.pas Raise internalerror inside RemoveCurentP is called with p=hp1, because it leads to using a class instance after it has been freed 2020-12-05 21:22:18 +00:00
aoptutils.pas
assemble.pas Replace cs_link_on_target by cs_assemble_on_target in assemble unit 2020-11-20 15:15:17 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas * do not include fpcdefs in the cepiktimer unit 2020-11-28 16:02:49 +00:00
cfidwarf.pas
cfileutl.pas
cg64f32.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
cgbase.pas * AArch64: added SIMD instructions (only plain ARMv8-A for now) 2020-10-15 20:29:36 +00:00
cgexcept.pas
cghlcpu.pas
cgobj.pas * patch Christo Crause: Use LDS for 8 bit references, resolves #38173 2020-12-06 16:40:30 +00:00
cgutils.pas - get rid of treference.islocal. Instead, use checks whether treference.base 2020-12-14 23:27:27 +00:00
cmsgs.pas
comphook.pas + added coloured compiler output support for OS/2 and DOS targets, platform-specific parts refactored to a standalone unit to remove the heap of ifdefs in unit comphook 2020-11-24 23:09:01 +00:00
compiler.pas
compinnr.pas + added explanation for min/max intrinsics 2020-12-07 21:31:07 +00:00
comprsrc.pas * make sure that the resource compiler related globals are reset 2020-08-12 19:08:31 +00:00
comptty.pas + added coloured compiler output support for OS/2 and DOS targets, platform-specific parts refactored to a standalone unit to remove the heap of ifdefs in unit comphook 2020-11-24 23:09:01 +00:00
constexp.pas
COPYING.txt
cprofile.pas
crefs.pas
cresstr.pas * Added on option to implement library based smartlinking of the dead stripable vectorized lists (e.g. resource strings index). By default smartlinking of such lists only supported when the section based smartlinking (tf_smartlink_sections) is enabled for a target. 2020-08-18 11:31:39 +00:00
cscript.pas
cstreams.pas * use AnsiString for file names to overcome length limitations 2020-10-31 19:54:41 +00:00
cutils.pas - remove unused trimbspace 2020-10-30 22:10:56 +00:00
dbgbase.pas
dbgcodeview.pas
dbgdwarf.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
dbgstabs.pas * fix compilation on targets that use Stabs debug information: ignore generic dummy symbols with no procdefs for generating stabs data 2021-01-03 12:11:44 +00:00
dbgstabx.pas
defcmp.pas * weight currency->float conversions the same regardless if 2021-01-05 22:39:16 +00:00
defutil.pas * generate more efficient code for trunc(currency), trunc(comp), and 2020-12-27 13:18:47 +00:00
dirparse.pas * reverted r47862 2020-12-28 16:18:55 +00:00
dwarfbase.pas
elfbase.pas
entfile.pas * synchronized with trunk 2020-12-01 03:27:01 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas * 8086: Fixed very long section names when $HUGECODE is ON and section based smartlinking is used. 2020-08-20 16:35:27 +00:00
fpcdefs.inc * synchronized with trunk 2020-12-01 03:27:01 +00:00
fpcp.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
fpkg.pas
fppu.pas * Improve Test_Double_checksum with Test_Double_checksum_write CRC testing code. 2020-11-28 18:32:46 +00:00
gendef.pas
globals.pas * synchronized with trunk 2020-11-25 21:59:19 +00:00
globstat.pas
globtype.pas + -Xa option: generate code which allows to use more than 2 GB of static data on 64 Bit targets 2020-11-30 22:07:34 +00:00
hlcg2ll.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
hlcgobj.pas * synchronized with trunk 2020-10-14 02:41:25 +00:00
htypechk.pas * fix for Mantis #38310: ignore procsyms that have no procdefs for checking overloads, or more precisely to stop checking for overloads; these are generic dummy symbols 2021-01-05 20:58:46 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas + read 64-Bit ELF executable info correctly 2020-12-06 10:23:18 +00:00
macho.pas
machoutils.pas
Makefile * regenerated makefiles 2021-01-02 22:25:27 +00:00
Makefile.fpc * synchronized with trunk 2020-10-19 05:06:33 +00:00
MPWMake
msgidx.inc + -Xa option: generate code which allows to use more than 2 GB of static data on 64 Bit targets 2020-11-30 22:07:34 +00:00
msgtxt.inc + -Xa option: generate code which allows to use more than 2 GB of static data on 64 Bit targets 2020-11-30 22:07:34 +00:00
nadd.pas * clean up 2021-01-03 15:03:27 +00:00
nbas.pas * ensure that changed compiler options do not cause values 2020-11-14 18:40:58 +00:00
ncal.pas * synchronized with trunk 2020-12-12 23:20:33 +00:00
ncgadd.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ncgbas.pas * Renamed fc_block_with_exit to fc_no_direct_exit to expand its usage. 2020-12-10 17:38:37 +00:00
ncgcal.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ncgcnv.pas + introduce tcgobj.a_loadfpu_reg_intreg 2020-09-12 21:23:57 +00:00
ncgcon.pas * fix proposed by Christo Crause: properly handle pointer constant nodes on avr, resolves #38321 2021-01-06 12:52:36 +00:00
ncgflw.pas * synchronized with trunk 2020-12-12 23:20:33 +00:00
ncghlmat.pas
ncginl.pas + min/max intrinsics for internal use by the compiler 2020-12-05 22:00:58 +00:00
ncgld.pas * use fld/fst on i386 to copy doubles 2020-09-29 20:59:29 +00:00
ncgmat.pas * simplify tcgunaryminusnode.second_integer 2020-10-22 21:25:36 +00:00
ncgmem.pas * converted tcgvecnode.update_reference_reg_packed to the high level code generator 2021-01-05 08:08:25 +00:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * fix tw3930 after r37927 2020-09-05 12:25:09 +00:00
ncgset.pas
ncgutil.pas * take care of po_noreturn in more cases 2020-11-28 16:02:51 +00:00
ncgvmt.pas * fix tw3930 after r37927 2020-09-05 12:25:09 +00:00
ncnv.pas * apply doremoveinttypeconvs to unary minus and not on 8 and 16 bit targets as well 2020-12-16 21:55:05 +00:00
ncon.pas * better writing of ordinal const. nodes 2020-11-16 21:47:18 +00:00
nflw.pas * lines with 255 chars a little bit long, reformated them 2020-12-24 13:13:42 +00:00
ngenutil.pas * naturally align threadvar lists/tables 2020-10-15 20:29:32 +00:00
ngtcon.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ninl.pas * generate more efficient code for trunc(currency), trunc(comp), and 2020-12-27 13:18:47 +00:00
nld.pas * factored out the creation of loadnodes for special variables/parameters 2020-12-27 13:18:56 +00:00
nmat.pas * do an unsigned division if one operand is unsigned an the other 2020-12-16 21:55:05 +00:00
nmem.pas + range check enumeration array indicies, range checking is after all a safety mean 2020-11-30 22:08:04 +00:00
nobj.pas
nobjc.pas
node.pas Fix pos field closing in XML node output after commit 47720 2020-12-09 12:36:46 +00:00
nopt.pas
nset.pas + optimize a in [a] 2020-08-06 20:49:08 +00:00
nutils.pas * factored out the creation of loadnodes for special variables/parameters 2020-12-27 13:18:56 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ogcoff.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ogelf.pas
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
ogomf.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ogrel.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
omfbase.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
optbase.pas
optconstprop.pas
optcse.pas + min/max intrinsics for internal use by the compiler 2020-12-05 22:00:58 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas * do not check inlined exit nodes for unset results, resolves #38259 2020-12-31 15:52:02 +00:00
options.pas + define the CPUWASM32 system macro for wasm32 2021-01-02 07:54:53 +00:00
optloadmodifystore.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
optloop.pas * do not try to unroll a loop if previously an error was thrown, resolves #37475 2020-08-14 18:10:56 +00:00
opttail.pas * disable tail recursion optimisation if there is a copy-back parameter 2020-07-21 17:57:50 +00:00
optutils.pas * correctly handle inlined exits in dfa, resolves #38259 2020-12-29 22:35:33 +00:00
optvirt.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
owar.pas
owbase.pas
owomflib.pas
parabase.pas
paramgr.pas
parser.pas
pass_1.pas
pass_2.pas * Renamed fc_block_with_exit to fc_no_direct_exit to expand its usage. 2020-12-10 17:38:37 +00:00
pbase.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
pcp.pas
pdecl.pas * Second patch xml-node-dump-defs.patch from J. Gareth Moreton from bug report 36882. 2020-12-02 21:01:40 +00:00
pdecobj.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
pdecsub.pas * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations) 2021-01-06 12:57:59 +00:00
pdecvar.pas
pexports.pas * instead of blindly consuming whatever comes next trigger an explicit error if the parsed expression does not match for "INDEX ordexpr" or "NAME strexpr" 2021-01-02 23:23:08 +00:00
pexpr.pas * correctly handle the case should the generic dummy symbol be a procsym instead of a typesym 2021-01-02 23:23:34 +00:00
pgentype.pas
pgenutil.pas * when only a symbol name is provided to generate_specialization_phase1 allow a symbol table to be provided as well 2021-01-02 23:23:29 +00:00
pinline.pas * fixed type of size parameter passed to fpc_getmem() when translating 2020-11-08 22:42:38 +00:00
pkgutil.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
pmodules.pas * patch by Cyrax: forbid to use heaptrc and valgrind at the same time, resolves #36529 2020-11-11 20:55:03 +00:00
pp.lpi * update version 2020-08-09 18:52:25 +00:00
pp.pas * the WASM define renamed WASM32 2020-08-05 14:17:27 +00:00
pparautl.pas * allow overloads with same result type for external Java classes due to Java supporting covariant return types for interfaces 2020-08-02 12:28:46 +00:00
ppc68k.lpi * version update 2020-11-29 09:40:54 +00:00
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi [PATCH 02/83] updating common FPC sources for WASM target 2020-07-29 16:01:48 +00:00
ppcmips64el.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc64le.lpi + project file for PowerPC64LE 2020-12-06 10:23:17 +00:00
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcwasm32.lpi + define EXTDEBUG for the wasm32 compiler, when compiled using the lazarus project 2020-10-24 15:24:23 +00:00
ppcx64.lpi
ppcx64llvm.lpi
ppcxtensa.lpi
ppcz80.lpi
ppheap.pas
ppu.pas * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations) 2021-01-06 12:57:59 +00:00
procdefutil.pas
procinfo.pas
psabiehpi.pas
pstatmnt.pas * do not set nonlocal for inter-procedural labels, this is not needed, they use 2020-09-20 18:57:00 +00:00
psub.pas * synchronize with trunk 2020-12-28 18:45:24 +00:00
psystem.pas * synchronized with trunk 2020-11-09 00:06:32 +00:00
ptconst.pas
ptype.pas + implement align directive for records, resolves #28927 2020-12-29 18:19:35 +00:00
raatt.pas + add endsym to ConcatConstSymbol 2020-12-02 21:44:12 +00:00
rabase.pas
rasm.pas
rautils.pas + add endsym to ConcatConstSymbol 2020-12-02 21:44:12 +00:00
README.txt
rescmn.pas + add option -FF to force the use of fpcres as RC compiler 2020-08-12 19:08:25 +00:00
rgbase.pas
rgobj.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
scandir.pas * dir_push might not flush pending switch changes but has to read the pending 2020-12-01 21:39:38 +00:00
scanner.pas + add method to retrieve an integer expression from the scanner 2020-11-26 20:13:34 +00:00
switches.pas
symbase.pas * use new TSym.EscapedRealName property when creating new symbols with the 2020-12-27 13:18:53 +00:00
symconst.pas
symcreat.pas * use new TSym.EscapedRealName property when creating new symbols with the 2020-12-27 13:18:53 +00:00
symdef.pas * apply patch by Blaise.ru to enable the correct generation of names for classes/interfaces inside local symtables; these will be required for reference function types which are in fact interfaces and classes, this does not mean that ordinary classes can be declared inside functions 2020-12-22 22:22:35 +00:00
symsym.pas * have the generic dummy symbols for procsyms keep track of their overloaded generic procsyms so that they can be easily found (will be needed for implicit specializations) 2021-01-06 12:57:59 +00:00
symtable.pas * correctly handle the case should the generic dummy symbol be a procsym instead of a typesym 2021-01-02 23:23:34 +00:00
symtype.pas * Second patch xml-node-dump-defs.patch from J. Gareth Moreton from bug report 36882. 2020-12-02 21:01:40 +00:00
symutil.pas
syscinfo.pas
systems.inc * synchronized with trunk 2020-11-07 22:40:43 +00:00
systems.pas + enable the sign extension wasm32 instructions 2021-01-02 15:07:38 +00:00
tgobj.pas * set the wasm tempgen direction in the parent constructor, together with the other targets 2020-12-17 15:37:08 +00:00
tokens.pas * according to ISO 10206 (Extended Pascal) 6.9.3.5 the "otherwise"-clause is supported for case-statements 2020-09-24 11:41:43 +00:00
triplet.pas
verbose.pas Fix compilation failure for avr compiler with -dDEBUG_NODE_XML, to fix bug report 38222 2020-12-16 00:07:39 +00:00
version.pas
widestr.pas
wpo.pas
wpobase.pas
wpoinfo.pas

This directory contains the sources of the Free Pascal Compiler

If you want to compile/modify the compiler, please read first the
programmers manual.

To recompile the compiler, you can use the batch files :
 + mppc386.bat    if you want to build a cross compiler from i386 to m68k
 + mppcsparc      if you want to build a cross compiler from i386 to SPARC
 
 or
Use the make utility as following
  
      make OS_TARGET="compiler OS target" \
      CPU_TARGET="compiler CPU target" \
      FPCCPUOPT="Optimization level" \
      PP="compiler used to compile FPC" \
      COMPILER_OPTIONS="Options passed to compiler" \
      
      
If an option is omitted, then target CPU/OS will be same as current CPU/OS
 
Possibles targets are : linux go32v2 win32 os2 freebsd beos netbsd amiga haiku
atari sunos qnx netware openbsd wdosx palmos macos macosx emx
   
Possible compiler switches (* marks a currently required switch):
  -----------------------------------------------------------------
  GDB*                support of the GNU Debugger
  I386                generate a compiler for the Intel i386+
  x86_64              generate a compiler for the AMD x86-64 architecture
  M68K                generate a compiler for the M68000
  SPARC               generate a compiler for SPARC
  POWERPC             generate a compiler for the PowerPC
  VIS                 generate a compile for the VIS
  DEBUG               version with debug code is generated
  EXTDEBUG            some extra debug code is executed
  SUPPORT_MMX         only i386: releases the compiler switch
                      MMX which allows the compiler to generate
                      MMX instructions
  EXTERN_MSG          Don't compile the msgfiles in the compiler, always
                      use external messagefiles, default for TP
  NOAG386INT          no Intel Assembler output
  NOAG386NSM          no NASM output
  NOAG386BIN          leaves out the binary writer, default for TP
  NORA386DIR          No direct i386 assembler reader
  TEST_GENERIC        Test Generic version of code generator
                      (uses generic RTL calls)
  -----------------------------------------------------------------
  cpuflags            The target processor has status flags (on by default)
  cpufpemu            The target compiler will also support emitting software
                       floating point operations
  cpu64bitaddr        The targets use a 64-bit address space (pointers and
                       the default integer type are 64 bit)
  cpu64bitalu         The target cpu has 64-bit registers available (unless
                       cpu64bitaddr is also defined, pointers and default
                       integer type remain 32 bit, but the cpu can perform
                       64 bit calculations directly without needing helpers)
  -----------------------------------------------------------------

  Required switches for a i386 compiler be compiled by Free Pascal Compiler:
  GDB;I386

to build a compiler to SPARC target using a Win32/i386 you just use :
      make CPU_TARGET=SPARC