fpc/compiler
florian e0041a8244 * compilation of x86 and PowerPC fixed
git-svn-id: trunk@43158 -
2019-10-09 19:26:59 +00:00
..
aarch64 * fix for "ldr label" support in AArch64 assembler reader (r42988) 2019-09-15 17:26:25 +00:00
arm + support for arm attributes 2019-10-09 17:45:40 +00:00
armgen Systematically include fpcdefs.inc at sart of all units used by compiler 2019-07-03 13:35:05 +00:00
avr * (modified/re-formatted) patch by Christo Crause: AVR: Optimizing code generation for shift with compile time constant 2019-10-05 20:48:33 +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 + dwarf support for tls threadvars 2019-10-05 20:48:31 +00:00
i8086 * be able to set an AT_* for datablocks 2019-09-25 21:19:07 +00:00
jvm - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
llvm * add "readonly" attribute for constant pointer parameters on LLVM 2019-09-29 10:29:57 +00:00
m68k m68k: also handle OS_64 register sizes in cgsize2subreg 2019-09-20 13:48:30 +00:00
mips somehow committing went wrong, second part of last commit: 2019-09-03 21:07:33 +00:00
msg + command line switch -CV to select the threadvar model for section threadvars 2019-09-25 21:19:04 +00:00
powerpc * compilation of x86 and PowerPC fixed 2019-10-09 19:26:59 +00:00
powerpc64 somehow committing went wrong, second part of last commit: 2019-09-03 21:07:33 +00:00
ppcgen * compilation of x86 and PowerPC fixed 2019-10-09 19:26:59 +00:00
riscv + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
riscv32 somehow committing went wrong, second part of last commit: 2019-09-03 21:07:33 +00:00
riscv64 somehow committing went wrong, second part of last commit: 2019-09-03 21:07:33 +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 somehow committing went wrong, second part of last commit: 2019-09-03 21:07:33 +00:00
systems * several linux targets switches from stabs to dwarf 2019-10-05 20:48:32 +00:00
utils + support pi_needs_tls 2019-10-05 20:48:22 +00:00
x86 * compilation of x86 and PowerPC fixed 2019-10-09 19:26:59 +00:00
x86_64 + dwarf support for tls threadvars 2019-10-05 20:48:31 +00:00
aasmbase.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
aasmcfi.pas + support for generating Dwarf CFI using .cfi_* directives 2019-03-03 17:15:03 +00:00
aasmcnst.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +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 + support for arm attributes 2019-10-09 17:45:40 +00:00
aggas.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
aopt.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
aoptbase.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
aoptda.pas
aoptobj.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
aoptutils.pas o overhaul-base.patch by J. Gareth Moreton, base for further patches 2019-08-17 16:14:22 +00:00
assemble.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
blockutl.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
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 * finally implement tdynamicarray.equal so that exact match comdat sections work as well 2019-10-05 09:42:49 +00:00
cfidwarf.pas * some runtime errors fixed, if compiled with -CrR 2019-07-21 12:25:55 +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 + support for the gnu2 general-dynamic tls model on arm, use it instead of the gnu one as the gnu2 one can be relaxed (access optimizations by the linker) 2019-10-05 20:48:26 +00:00
cgexcept.pas * place exception handling code in the correct asmlist 2019-06-08 20:17:06 +00:00
cghlcpu.pas
cgobj.pas + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
cgutils.pas
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +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 * cutils.pas (size_2_align): Move to.. 2019-09-16 14:50:43 +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 + dwarf support for tls threadvars 2019-10-05 20:48:31 +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 * support unique copies of currencies which are handles by torddef, resolves #36013 2019-08-26 19:31:48 +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 + support for arm attributes 2019-10-09 17:45:40 +00:00
entfile.pas Fix change_endian code to read double and single float data 2019-08-08 06:24:47 +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 * disable the use of C-operators inside the compiler's sources 2019-10-05 09:42:52 +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 * cutils.pas (size_2_align): Move to.. 2019-09-16 14:50:43 +00:00
globstat.pas
globtype.pas * general-dynamic -> global-dynamic 2019-10-05 20:48:29 +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 * use a process unique name for link.res, so multiple FPCs can be run in parallel in one directory 2019-08-11 15:58:36 +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 Update all trunk/fpcsrc Makefile's after commit 42749 2019-08-20 15:58:10 +00:00
Makefile.fpc Revert wrong part in commit 42580: reinstate 'override FPC=' for cycle targets 2019-08-05 13:33:12 +00:00
MPWMake
msgidx.inc + command line switch -CV to select the threadvar model for section threadvars 2019-09-25 21:19:04 +00:00
msgtxt.inc + command line switch -CV to select the threadvar model for section threadvars 2019-09-25 21:19:04 +00:00
nadd.pas Check that inserttypeconv really change node type to ttypeconvnode before setting convtype field (should fix taddbool.pp bytebool failure on powerpc) 2019-08-14 23:00:35 +00:00
nbas.pas * maybereplacewithtemp/maybereplacewithtempref: also create a temp in case 2019-07-07 21:33:36 +00:00
ncal.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
ncgadd.pas * factored out the conditions under which add nodes need to perform 2019-08-03 12:19:50 +00:00
ncgbas.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgcal.pas * try to avoid to use pic based calls 2019-09-22 15:27:50 +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 * section thread vars need to be access with the symbol type AT_TLS 2019-09-25 21:19:05 +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 * fix potential crash with copied goto nodes on nestedparentfp platforms 2019-09-14 17:22:23 +00:00
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 * use the size of the generated anonymous record instead of the manual tracked size so that any padding is picked up as well 2019-07-28 19:50:30 +00:00
ncgset.pas Avoid range check error for avr/i8086 CPU by changing local variable dist type to asizeuint 2019-08-19 20:22:22 +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 + add "thunk" attribute for stubs/thunks and emit it for LLVM 2019-09-15 20:43:12 +00:00
ncnv.pas * ensure that aprocdef is initialized to Nil to catch problems with compare_defs_ext() easier 2019-08-15 14:32:57 +00:00
ncon.pas * fix writing of floating point attribute parameters 2019-07-24 20:32:17 +00:00
nflw.pas * document how tgotonode/tlabelnode copying works 2019-09-13 19:06:34 +00:00
ngenutil.pas * be able to set an AT_* for datablocks 2019-09-25 21:19:07 +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 - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
nld.pas * fixed loading the address of a copied labelnode in a loadnode 2019-09-13 19:06:40 +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 - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +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 * an incomplete case statement is not an error in ISO Pascal (mantis #35910) 2019-08-03 13:47:27 +00:00
nutils.pas * factored out inlinenode check whether it may have a side effect 2019-08-18 15:55:03 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas - removed maxcrecordalign parameter/field from recordsymtables, as this value 2019-07-14 19:24:32 +00:00
objcutil.pas
ogbase.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
ogcoff.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
ogelf.pas + support for arm attributes 2019-10-09 17:45:40 +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 + introduced TExeSection.MemPosStr - a virtual method for converting the 2019-08-02 16:05:37 +00:00
ognlm.pas
ogomf.pas + added a getter for the NewExeSegmentFlags property, that returns the 2019-08-20 13:49:43 +00:00
omfbase.pas * compilation of x86 and PowerPC fixed 2019-10-09 19:26:59 +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 * general-dynamic -> global-dynamic 2019-10-05 20:48:29 +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 * changed resulttype and firstpass processing from recursion into loop, based 2019-09-15 16:18:14 +00:00
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 - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
pdecobj.pas * get rid of the scanner message for attributes for real this time (sometimes I *really* hate Git -.-) 2019-07-13 09:37:44 +00:00
pdecsub.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
pdecvar.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +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 - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
pgentype.pas
pgenutil.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +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 - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
pp.lpi -- Rückwärtiges Zusammenführen von r39680 in ».«: 2019-08-11 16:31:48 +00:00
pp.pas * mention LLVM define 2019-09-14 17:31:11 +00:00
pparautl.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +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 Synchronized with trunk, part 1 (only make cycle tested, make all is broken, avx-512 support not yet tested 2019-08-10 13:53:20 +00:00
ppcx64llvm.lpi
ppheap.pas
ppu.pas Try to fix ppudump for generic/inline. 2019-07-29 16:40:58 +00:00
procdefutil.pas
procinfo.pas + software handling of exceptions on arm 2019-07-28 21:06:36 +00:00
psabiehpi.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
pstatmnt.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
psub.pas * it must be decided in allocate_tls_register if a tls register is allocated 2019-10-05 20:48:28 +00:00
psystem.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
ptconst.pas
ptype.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
raatt.pas + support for arm attributes 2019-10-09 17:45:40 +00:00
rabase.pas
rasm.pas
rautils.pas * support taking the address of labels defined in assembler blocks in the 2019-09-09 18:33:33 +00:00
README.txt
rescmn.pas
rgbase.pas somehow committing went wrong, second part of last commit: 2019-09-03 21:07:33 +00:00
rgobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
scandir.pas * limit the heapsize to 65520 bytes on win16 (the $M directive in win16 only 2019-08-12 14:24:01 +00:00
scanner.pas * fix for Mantis #36121: define FPC_ISO and FPC_EXTENDEDPASCAL for modes ISO and EXTENDEDPASCAL respectively 2019-10-03 12:34:36 +00:00
switches.pas
symbase.pas
symconst.pas + add "thunk" attribute for stubs/thunks and emit it for LLVM 2019-09-15 20:43:12 +00:00
symcreat.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
symdef.pas - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +00:00
symsym.pas * fix for Mantis #36114: when converting a static class field to a global variable the varspez of the field needs to be respected 2019-10-03 16:39:40 +00:00
symtable.pas Avoid possible warning about uninitialized srsym variable 2019-08-27 12:15:03 +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 - remmoved doregister parameter from t*sym constructors, as the registration 2019-09-14 17:30:45 +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