fpc/compiler
svenbarth 352ff5f82a - symbolname field is no longer required
git-svn-id: trunk@42398 -
2019-07-12 22:07:34 +00:00
..
aarch64 * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
arm * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
armgen Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
avr Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
generic Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
html
i386 * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
i8086 * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
jvm Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
llvm * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
m68k * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
mips * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
msg Reintegration of Custom Attributes branch by Joost van der Sluis with patches reworked by Svetozar Belic [patch 1/3] 2019-07-12 22:04:48 +00:00
powerpc Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
powerpc64 Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
ppcgen * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
riscv * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
riscv32 - Fix bug in 64bit softfloat double negation. 2019-07-07 11:32:27 +00:00
riscv64 - Fix bug in 64bit softfloat double negation. 2019-07-07 11:32:27 +00:00
sparc * Set ControllerSupport to false for sparc/sparc64 and x86_64 CPUs. 2019-07-04 15:24:49 +00:00
sparc64 * Set ControllerSupport to false for sparc/sparc64 and x86_64 CPUs. 2019-07-04 15:24:49 +00:00
sparcgen * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
systems * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
utils * write a name for the none property access entry (looks nicer than a "(Nil)" at the start of the line) 2019-07-12 16:25:36 +00:00
x86 * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
x86_64 * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
aasmbase.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
aasmcfi.pas + support for generating Dwarf CFI using .cfi_* directives 2019-03-03 17:15:03 +00:00
aasmcnst.pas * basic llvm metadata support 2019-05-02 19:45:26 +00:00
aasmdata.pas * factored out checks whether a procdef's symbol needs to be global, and 2019-07-07 21:33:47 +00:00
aasmdef.pas
aasmsym.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aasmtai.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
aggas.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
aopt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aoptbase.pas
aoptda.pas
aoptobj.pas * synchronised with trunk till r42049 2019-05-12 18:44:05 +00:00
aoptutils.pas
assemble.pas * one more disable location of DoPipe in case not on a Unix platform 2019-06-27 19:20:45 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
cclasses.pas * replaced TCmdStrListItem getter function with a property 2019-04-20 18:18:07 +00:00
cfidwarf.pas * fix writing of augmentation size 2019-06-20 15:33:49 +00:00
cfileutl.pas * fixes to the compiler util exe search routines, which caused the compiler to 2019-05-26 16:57:08 +00:00
cg64f32.pas
cgbase.pas * fixed NR_INVALID declaration 2019-06-23 14:12:28 +00:00
cgexcept.pas * place exception handling code in the correct asmlist 2019-06-08 20:17:06 +00:00
cghlcpu.pas
cgobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * added extra header to ppu inside a subsection, so we won't run into 2019-04-06 21:28:43 +00:00
cscript.pas
cstreams.pas * partial fix for Mantis #35346: more "inline" directives for TCStream and TCMemoryStream methods 2019-06-28 13:30:33 +00:00
cutils.pas + Encode(U/S)leb128 take now a third parameter to force that the constant has a certain minimum size 2019-06-20 17:13:28 +00:00
cwindirs.pp
dbgbase.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
dbgcodeview.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
dbgdwarf.pas * fix for Mantis #35566 by applying patch by Martin Friebe: correctly dereference the 32-bit length value for Windows Widestrings 2019-05-16 20:56:18 +00:00
dbgstabs.pas Use use_tag_types everywhere to get consistent results for 'Tt' versus 't' for stabs for string definitions 2019-06-09 20:59:06 +00:00
dbgstabx.pas Fix error in commit #42199 2019-06-10 13:55:59 +00:00
defcmp.pas * relaxation of r42272: again only show warnings rather than errors for 2019-06-23 14:12:33 +00:00
defutil.pas * relaxation of r42272: again only show warnings rather than errors for 2019-06-23 14:12:33 +00:00
dirparse.pas
dwarfbase.pas
elfbase.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
entfile.pas * remaining fix for Mantis #35346: add "inline" directives to various methods of tentryfile 2019-06-28 13:30:35 +00:00
export.pas
expunix.pas
finput.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
fmodule.pas * generate construction function for the attributes used in a unit using a more straight forward approach 2019-07-12 22:07:20 +00:00
fpccrc.pas
fpcdefs.inc * synchronised with trunk till r42256 2019-06-20 17:21:34 +00:00
fpcp.pas * added extra header to ppu inside a subsection, so we won't run into 2019-04-06 21:28:43 +00:00
fpkg.pas
fppu.pas * fixed compilation with -dTest_Double_checksum_write 2019-06-30 17:19:31 +00:00
gendef.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
globals.pas * instead of declaring another type with a 'attribute' suffix, *search* for another type with a 'ATTRIBUTE' suffix (Delphi allows declaring both a TFoo and TFooAttribute in the same unit) 2019-07-12 22:05:18 +00:00
globstat.pas
globtype.pas Reintegration of Custom Attributes branch by Joost van der Sluis with patches reworked by Svetozar Belic [patch 1/3] 2019-07-12 22:04:48 +00:00
hlcg2ll.pas * suppress warning for targets without MM registers 2019-06-11 20:03:47 +00:00
hlcgobj.pas * factored out checks whether a procdef's symbol needs to be global, and 2019-07-07 21:33:47 +00:00
htypechk.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * synchronised with trunk till r42189 2019-06-07 18:24:38 +00:00
macho.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
machoutils.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
Makefile * regenerated Makefiles with LLVM bitcode installation support 2019-04-20 18:56:45 +00:00
Makefile.fpc * synchronised with trunk till r40776 2019-04-13 15:16:09 +00:00
MPWMake
msgidx.inc Reintegration of Custom Attributes branch by Joost van der Sluis with patches reworked by Svetozar Belic [patch 2/3] 2019-07-12 22:04:53 +00:00
msgtxt.inc Reintegration of Custom Attributes branch by Joost van der Sluis with patches reworked by Svetozar Belic [patch 2/3] 2019-07-12 22:04:53 +00:00
nadd.pas * fixed range test optimization for signed types and enabled it for them 2019-07-06 09:57:32 +00:00
nbas.pas * maybereplacewithtemp/maybereplacewithtempref: also create a temp in case 2019-07-07 21:33:36 +00:00
ncal.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
ncgadd.pas
ncgbas.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgcal.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgcnv.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgcon.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgflw.pas * "on" nodes inherit the exception catching state from the "try" 2019-06-08 20:17:01 +00:00
ncghlmat.pas
ncginl.pas
ncgld.pas * fixed loading parent frame pointer for nested procvars on targets that 2019-05-19 19:20:29 +00:00
ncgmat.pas - Fix bug in 64bit softfloat double negation. 2019-07-07 11:32:27 +00:00
ncgmem.pas * building on powerpc and arm fixed 2019-06-16 21:43:46 +00:00
ncgnstfl.pas
ncgnstld.pas * fixed crashes on platforms using parentfpstructs with generic routines 2019-05-14 19:19:14 +00:00
ncgnstmm.pas * fixed crashes on platforms using parentfpstructs with generic routines 2019-05-14 19:19:14 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * generate construction function for the attributes used in a unit using a more straight forward approach 2019-07-12 22:07:20 +00:00
ncgset.pas + support for verifying whether a case statements handles all possibilities 2019-05-12 14:29:11 +00:00
ncgutil.pas * factored out checks whether a procdef's symbol needs to be global, and 2019-07-07 21:33:47 +00:00
ncgvmt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncnv.pas * relaxation of r42272: again only show warnings rather than errors for 2019-06-23 14:12:33 +00:00
ncon.pas + add methods for the const nodes to directly emit their constant data to a constant builder 2019-07-12 22:07:01 +00:00
nflw.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
ngenutil.pas - remove unit info and related code again as that will be handled similar, but differently with dynamic packages 2019-07-12 22:05:47 +00:00
ngtcon.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
ninl.pas - Fix result type of SizeOf and BitSizeOf to use sizesint instead of sint. 2019-07-07 14:37:45 +00:00
nld.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
nmat.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nmem.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
nobj.pas * fix tobjectdef.vmt_def to search in the correct symtable 2019-07-07 21:33:51 +00:00
nobjc.pas
node.pas Commit patch submitted in bug report #35787 by Gareth Moreton 2019-07-01 19:42:48 +00:00
nopt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nset.pas Commit of new debug feature implemented by J. Gareth Moreton 2019-06-22 14:08:47 +00:00
nutils.pas * synchronised with trunk till r42049 2019-05-12 18:44:05 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas * fixed Objective-C metadata generation for LLVM 2019-05-02 19:45:34 +00:00
objcutil.pas
ogbase.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
ogcoff.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
ogelf.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
oglx.pas
ogmacho.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ogmap.pas
ognlm.pas
ogomf.pas + parse the IMPDEF record in TOmfObjInput.ReadImpDef 2019-07-09 12:31:11 +00:00
omfbase.pas * synchronised with trunk till r42256 2019-06-20 17:21:34 +00:00
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas * DFA now takes case-completeness into account (mantis #35598) 2019-05-18 12:01:41 +00:00
options.pas - remove unit info and related code again as that will be handled similar, but differently with dynamic packages 2019-07-12 22:05:47 +00:00
optloadmodifystore.pas
optloop.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
opttail.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
optutils.pas + support for verifying whether a case statements handles all possibilities 2019-05-12 14:29:11 +00:00
optvirt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
owar.pas
owbase.pas
owomflib.pas
parabase.pas * synchronised with trunk till r42049 2019-05-12 18:44:05 +00:00
paramgr.pas * disable regular array -> dynamic array type coversion support unless 2019-05-25 12:31:32 +00:00
parser.pas Fix compilation of compiler with -dPREPROCWRITE 2019-05-16 12:17:32 +00:00
pass_1.pas
pass_2.pas
pbase.pas * instead of declaring another type with a 'attribute' suffix, *search* for another type with a 'ATTRIBUTE' suffix (Delphi allows declaring both a TFoo and TFooAttribute in the same unit) 2019-07-12 22:05:18 +00:00
pcp.pas Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
pdecl.pas - remove code to create an attribute using a synthetic function 2019-07-12 22:07:28 +00:00
pdecobj.pas * trtti_attribute_list.bind already checks whether the dangling attribute list is assigned or not 2019-07-12 22:07:24 +00:00
pdecsub.pas * fix for Mantis #35670: when a unused dummy symbol is found for a non-generic procedure/function, hide that dummy symbol and create a new symbol for the procedure/function 2019-07-05 14:12:16 +00:00
pdecvar.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pexports.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pexpr.pas * instead of declaring another type with a 'attribute' suffix, *search* for another type with a 'ATTRIBUTE' suffix (Delphi allows declaring both a TFoo and TFooAttribute in the same unit) 2019-07-12 22:05:18 +00:00
pgentype.pas
pgenutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pinline.pas
pkgutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pmodules.pas * generate construction function for the attributes used in a unit using a more straight forward approach 2019-07-12 22:07:20 +00:00
pp.lpi * lazarus version update 2019-06-09 20:08:09 +00:00
pp.pas
pparautl.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppheap.pas
ppu.pas * Set ControllerSupport to false for sparc/sparc64 and x86_64 CPUs. 2019-07-04 15:24:49 +00:00
procdefutil.pas
procinfo.pas
psabiehpi.pas * write correct s/uleb types 2019-06-20 15:30:07 +00:00
pstatmnt.pas * change boolean parameters for try_consume_unitsym to a set 2019-07-12 22:05:05 +00:00
psub.pas - remove functionality to get the code block when parsing again (let's open this pandora's box only when really needed...) 2019-07-12 22:07:31 +00:00
psystem.pas * basic llvm metadata support 2019-05-02 19:45:26 +00:00
ptconst.pas
ptype.pas * change boolean parameters for try_consume_unitsym to a set 2019-07-12 22:05:05 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas * also register symbols referenced from assembler via asolutevarsyms 2019-06-29 16:27:10 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
scandir.pas + support for verifying whether a case statements handles all possibilities 2019-05-12 14:29:11 +00:00
scanner.pas Fix compilation of compiler with -dPREPROCWRITE 2019-05-16 12:17:32 +00:00
switches.pas
symbase.pas
symconst.pas - remove code to create an attribute using a synthetic function 2019-07-12 22:07:28 +00:00
symcreat.pas - remove code to create an attribute using a synthetic function 2019-07-12 22:07:28 +00:00
symdef.pas - symbolname field is no longer required 2019-07-12 22:07:34 +00:00
symsym.pas * considering that at least in theory every symbol and every def can carry RTTI attributes (Delphi only supports property and field symbols), move the rtti_attribute_list to tstoredsym/tstoreddef 2019-07-12 22:06:05 +00:00
symtable.pas - remove code to create an attribute using a synthetic function 2019-07-12 22:07:28 +00:00
symtype.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
symutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
syscinfo.pas
systems.inc * synchronised with trunk till r42256 2019-06-20 17:21:34 +00:00
systems.pas * on Mach-O, PECOFF and ELF platforms, write local symbols as hidden/ 2019-07-07 21:33:43 +00:00
tgobj.pas
tokens.pas
verbose.pas
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