fpc/compiler
nickysn 93ecf5f155 * synchronized with trunk
git-svn-id: branches/wasm@47357 -
2020-11-09 00:06:32 +00:00
..
aarch64 Add explicit longint typecast to avoid range check errors with unwindrec longword variable 2020-10-28 09:46:02 +00:00
arm Change CLZ support for arm32 minimal CPU to armv5t according to ARM documentation in arminst.dat 2020-10-26 13:40:45 +00:00
armgen * patch by J. Gareth Moreton: MOV/LDR/STR/MOV optimisations for ARM/AArch64, resolves #37638 2020-11-06 21:41:59 +00:00
avr * patch by Christo Crause to fix illegal ldd generation for avrtiny, resolves #37929 2020-10-16 20:01:40 +00:00
generic
html
i386 + completed Ch_* information for VMOVD* 2020-11-07 10:42:43 +00:00
i8086 + completed Ch_* information for VMOVD* 2020-11-07 10:42:43 +00:00
jvm * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
llvm * LLVM: ensure that the parameter types are processed of procdefs that are 2020-10-23 15:09:34 +00:00
m68k m68k: fix references like <symbol>(An) to parse properly in the assembler reader 2020-11-08 23:56:00 +00:00
mips * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
msg m68k: initial commit to add the Sinclair QL as a compiler target 2020-11-04 14:20:28 +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 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +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 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
systems * synchronized with trunk 2020-11-09 00:06:32 +00:00
utils * synchronized with trunk 2020-11-07 22:40:43 +00:00
wasm32 + added another wasm fake register to represent local variable on the linear stack 2020-11-01 17:06:29 +00:00
x86 * moved UseAVX from cgx86 to cpubase 2020-11-08 19:39:18 +00:00
x86_64 + completed Ch_* information for VMOVD* 2020-11-07 10:42:43 +00:00
xtensa * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
z80 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +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 * synchronized with trunk 2020-10-19 05:06:33 +00:00
aggas.pas * synchronized with trunk 2020-11-07 22:40:43 +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 * use RegistersInterfere instead of SuperRegistersEqual in TAoptBase.RegInOp and TAoptBase.RegInRef 2020-05-11 17:18:00 +00:00
aoptda.pas
aoptobj.pas * patch by J. Gareth Moreton: minor refactor of reduced iterations of pass 1 of the assembler optimizer, resolves #37972 2020-10-23 20:05:18 +00:00
aoptutils.pas
assemble.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas
cepiktimer.pas
cfidwarf.pas * generate CFI data only if we're either using it for exception handling or if debug output is enabled (or should this only be generated for targets that in theory support DWARF exception handling?). This removes unnecessary bloat from e.g. Windows binaries 2020-05-10 20:46:08 +00:00
cfileutl.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
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 * fix several double ; 2020-05-24 17:52:09 +00:00
cghlcpu.pas
cgobj.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
cgutils.pas [PATCH 41/83] revise treference extension for wasm. specifying local variable use vs memory use 2020-07-29 17:41:15 +00:00
cmsgs.pas
comphook.pas + patch by Anton Kavalenka to support coloured output on windows, resolves #38025 2020-11-02 21:24:40 +00:00
compiler.pas * fix morphos info unit name after r44454 2020-03-31 05:12:59 +00:00
compinnr.pas * fix for Mantis #37251: apply patches by Bi0T1N to implement the IsConstValue() intrinsic 2020-06-25 20:42:47 +00:00
comprsrc.pas * make sure that the resource compiler related globals are reset 2020-08-12 19:08:31 +00:00
constexp.pas Fix cycle with -CriotR option on aarch64-linux 2020-07-06 11:39:42 +00:00
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 * Reworked the optimization of unused $parentfp for nested routines. 2020-05-19 13:17:47 +00:00
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 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
dbgstabx.pas * ReplaceForbiddenAsmSymbolChars renamed ApplyAsmSymbolRestrictions, because now it also applies the 2020-04-26 10:42:07 +00:00
defcmp.pas * in equal_genfunc_paradefs take care of the fact that typesym might not be assigned for open array parameters, resolves #38012 2020-10-29 21:00:03 +00:00
defutil.pas * constrained type parameters are not undefined defs, resolves #37107 2020-05-21 18:19:08 +00:00
dirparse.pas
dwarfbase.pas
elfbase.pas
entfile.pas * more wasm -> wasm32 renames 2020-08-05 14:44:34 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas * fix several double ; 2020-05-24 17:52:09 +00:00
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-11-07 22:40:43 +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
gendef.pas + implement initial compiler support for Win64 on Aarch64 2020-04-21 06:04:22 +00:00
globals.pas * synchronized with trunk 2020-10-19 05:06:33 +00:00
globstat.pas
globtype.pas * changed TIDString and tsymentry.realname to TSymStr 2020-11-03 21:34:22 +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 * patch by Jan Bruns to solve an issue with the new overloading selection code, resolves #37969 2020-10-26 20:58:24 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * wlib: calculate the record size according to the number of files in the library. 2020-08-18 20:02:19 +00:00
macho.pas
machoutils.pas
Makefile * regenerated makefiles after sync with trunk 2020-10-29 10:57:56 +00:00
Makefile.fpc * synchronized with trunk 2020-10-19 05:06:33 +00:00
MPWMake
msgidx.inc m68k: initial commit to add the Sinclair QL as a compiler target 2020-11-04 14:20:28 +00:00
msgtxt.inc m68k: initial commit to add the Sinclair QL as a compiler target 2020-11-04 14:20:28 +00:00
nadd.pas * excess precision should not be applied to comp or currency 2020-10-28 21:37:27 +00:00
nbas.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ncal.pas * synchronized with trunk 2020-10-29 10:49:36 +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 - reverted r46457, accidentally committed (breaks -Oooptcse) 2020-08-16 12:46:21 +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 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
ncgflw.pas * synchronized with trunk 2020-08-03 21:15:39 +00:00
ncghlmat.pas
ncginl.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +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 * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ncgnstfl.pas
ncgnstld.pas
ncgnstmm.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * fix tw3930 after r37927 2020-09-05 12:25:09 +00:00
ncgset.pas
ncgutil.pas * Fixed r46801 for the case of int64 params with a single paralocation. 2020-09-08 20:17:50 +00:00
ncgvmt.pas * fix tw3930 after r37927 2020-09-05 12:25:09 +00:00
ncnv.pas + remove type conversions also for unary operations if possible 2020-10-22 21:25:37 +00:00
ncon.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
nflw.pas * when implicit try...finallys are turned off, do not throw an error if a procedure 2020-09-27 16:53:59 +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 * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
nld.pas * better calculation of estimated stack frame size 2020-08-30 20:53:59 +00:00
nmat.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
nmem.pas * explicitly convert array indicies to pointer sized integers, so cse 2020-10-21 20:46:28 +00:00
nobj.pas * add support for creating non-address-only procvars to 2020-04-02 21:21:36 +00:00
nobjc.pas
node.pas * a nil node is also a constant pointer node 2020-06-01 20:50:38 +00:00
nopt.pas
nset.pas + optimize a in [a] 2020-08-06 20:49:08 +00:00
nutils.pas Also look for function name of 'result' is not found in load_result_node 2020-10-26 14:45:34 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
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 + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
ogmap.pas * avoid 8-bit truncation of the sizes in the internal linker map 2020-06-02 23:13:32 +00:00
ognlm.pas + introduced labelmaxlen in tasminfo and added code in ReplaceForbiddenAsmSymbolChars that limits the 2020-04-25 12:59:25 +00:00
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 + propagate constants across call nodes 2020-02-15 18:27:22 +00:00
optcse.pas * setelementn cannot be the root node of a cse domain, resolves #37477 2020-08-06 20:49:07 +00:00
optdead.pas
optdeadstore.pas * set nf_* correctly when an inc/dec node is converted into an add/sub node 2020-02-15 13:53:16 +00:00
optdfa.pas
options.pas * synchronized with trunk 2020-11-07 22:40:43 +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
optvirt.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
owar.pas * return the correct size for files in ar archive. This is required by the REL 2020-06-01 22:25:31 +00:00
owbase.pas * return the correct size for files in ar archive. This is required by the REL 2020-06-01 22:25:31 +00:00
owomflib.pas
parabase.pas
paramgr.pas * Added optimization option cs_opt_unused_para. It is enabled for -O2 and higher. The parentfp optimization is tied to cs_opt_unused_para. 2020-06-20 18:47:42 +00:00
parser.pas
pass_1.pas * synchronized with trunk 2020-04-26 22:33:58 +00:00
pass_2.pas
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 * added "const" to some string parameters 2020-11-03 21:34:15 +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 * added "const" to some string parameters 2020-11-03 21:34:15 +00:00
pdecvar.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
pexports.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
pexpr.pas * fix for Mantis #38051: make Chr() a real intrinsics so that it can be used in type declarations as well 2020-11-08 22:23:02 +00:00
pgentype.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
pgenutil.pas * delay setting of pd_body and pd_implement till the header of a generic 2020-06-30 20:36:51 +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 * also create the PASCALMAIN alias for WASI programs, now that function aliases work 2020-09-29 12:19:31 +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
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 + some basic stuff for mips64el 2020-06-07 20:04:17 +00:00
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
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 + Xtensa: lazarus project 2020-03-20 22:34:30 +00:00
ppcz80.lpi - removed the z80_internal_linker build mode from the lazarus project 2020-06-03 19:37:44 +00:00
ppheap.pas
ppu.pas * increase PPU version so that the change of Chr() to a full intrinsic will not lead to problems 2020-11-08 22:23:09 +00:00
procdefutil.pas * correctly set the generic related defoptions for an outlined procdef 2020-06-13 18:42:26 +00:00
procinfo.pas * Improved the parentfp optimization to properly handle cases when a nested routine calls other nested routines. 2020-06-20 18:34:26 +00:00
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 * synchronized with trunk 2020-10-29 10:49:36 +00:00
psystem.pas * synchronized with trunk 2020-11-09 00:06:32 +00:00
ptconst.pas
ptype.pas * fix for Mantis #35140: apply patch by Ryan Joseph together with some further changes by me to add support for constant parameters in generics 2020-04-25 22:12:35 +00:00
raatt.pas * AArch64: added SIMD instructions (only plain ARMv8-A for now) 2020-10-15 20:29:36 +00:00
rabase.pas
rasm.pas
rautils.pas * AArch64: added SIMD instructions (only plain ARMv8-A for now) 2020-10-15 20:29:36 +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 + added the Z80 individual flag bits as subregisters 2020-05-11 19:17:31 +00:00
rgobj.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
scandir.pas * rename the ARM/AArch64-Darwin targets to ARM/AArch64-iOS 2020-07-10 21:52:24 +00:00
scanner.pas * give an error when trying to define a macro/compiler variable with 2020-11-03 21:34:19 +00:00
switches.pas
symbase.pas * changed TIDString and tsymentry.realname to TSymStr 2020-11-03 21:34:22 +00:00
symconst.pas * Do not use the LOC_VOID location to indicate unused parameters. 2020-05-21 09:36:40 +00:00
symcreat.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
symdef.pas * take variant alignment from TVARDATA, should resolve #38022 2020-11-02 22:16:18 +00:00
symsym.pas * changed TIDString and tsymentry.realname to TSymStr 2020-11-03 21:34:22 +00:00
symtable.pas * fix tw3930 after r37927 2020-09-05 12:25:09 +00:00
symtype.pas * patch by Marģers to unify internal error numbers, resolves #37888 2020-10-13 19:59:01 +00:00
symutil.pas
syscinfo.pas
systems.inc * synchronized with trunk 2020-11-07 22:40:43 +00:00
systems.pas * synchronized with trunk 2020-11-07 22:40:43 +00:00
tgobj.pas tgobj: Change direction of stack. 2020-03-21 20:59:32 +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 * mark all external assemblers using an LLVM tool using af_llvm 2020-07-19 14:30:35 +00:00
verbose.pas
version.pas * Xtensa: set source_cpu_string 2020-04-26 17:23:24 +00:00
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