fpc/compiler
Jonas Maebe 1e227f78fe * factored out the check for whether we have to generate dotted function
names, and disabled them for ppc64 ELFv2
  * disabling those also disables the function descriptors, so use the
    _CALL_ELF compiler variable to check whether there is in fact a
    function descriptor

git-svn-id: trunk@30196 -
2015-03-14 18:35:25 +00:00
..
aarch64 * force constants into a registers in the 32x32->64 optimized case 2015-02-28 22:31:03 +00:00
alpha - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
arm Fixed internal error in GOT related code for ARM internal assembler. 2015-03-14 16:03:16 +00:00
avr - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
generic - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
html
i386 Merged from trunk 2015-03-08 12:33:46 +00:00
i8086 * corrects change flags for VSQRTSD 2015-02-28 22:42:25 +00:00
ia64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
jvm * moved x86-specific requirements from the generic bsr/bsf code to the 2015-02-23 22:57:18 +00:00
m68k m68k: in do_spill_replace, exclude the case where the source register would be an address and the destination is a reference 2015-03-14 17:19:14 +00:00
mips Merged from trunk 2015-03-08 12:33:46 +00:00
msg * fix typo (space instead of underscore resulting in broken help display) 2015-02-28 23:30:24 +00:00
powerpc * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
powerpc64 * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
ppcgen * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
sparc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
systems * set the correct dynamic linker for the ppc64 ELFv2 abi 2015-03-14 18:35:19 +00:00
utils Merged from trunk 2015-03-08 12:33:46 +00:00
vis - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
x86 * corrects change flags for VSQRTSD 2015-02-28 22:42:25 +00:00
x86_64 Merged from trunk 2015-03-08 12:33:46 +00:00
aasmbase.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aasmdata.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aasmsym.pas
aasmtai.pas Fixed internal error in GOT related code for ARM internal assembler. 2015-03-14 16:03:16 +00:00
aggas.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
agjasmin.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aopt.pas * honour -Oonopeephole 2014-03-11 23:18:58 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas * support for AArch64 branch forwarding 2015-02-23 22:53:26 +00:00
asmutils.pas
assemble.pas Fixed internal error in GOT related code for ARM internal assembler. 2015-03-14 16:03:16 +00:00
blockutl.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cfidwarf.pas
cfileutl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cg64f32.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
cgbase.pas + support for @page and @pageoffs addressing on AArch64: these are PIC 2015-02-23 22:53:43 +00:00
cghlcpu.pas * moved x86-specific requirements from the generic bsr/bsf code to the 2015-02-23 22:57:18 +00:00
cgobj.pas * moved x86-specific requirements from the generic bsr/bsf code to the 2015-02-23 22:57:18 +00:00
cgutils.pas Avoid line longer than 255 characters, to be able to edit inside FP IDE 2015-03-10 07:56:18 +00:00
cmsgs.pas
comphook.pas
compiler.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
compinnr.inc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
comprsrc.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cresstr.pas compiler: remove RST writer 2014-01-19 04:40:41 +00:00
cstreams.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cutils.pas
cwindirs.pp
dbgbase.pas * don't generate debug info for class fields in generic types 2014-06-10 19:05:10 +00:00
dbgdwarf.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
dbgstabs.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
dbgstabx.pas Do not consider ansi/wide/unicode strings as taggable for stabs 2014-04-22 22:32:14 +00:00
defcmp.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
defutil.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
dirparse.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
elfbase.pas
export.pas
expunix.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
finput.pas * return false, if tdosinputfile.fileopen cannot open a file for reading 2015-02-22 15:52:54 +00:00
fmodule.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
fpccrc.pas
fpcdefs.inc * switched to using the stack pointer as base register for the temp allocator 2015-02-23 22:54:03 +00:00
fppu.pas + commented directive for easier enabling 2015-02-23 22:11:26 +00:00
gendef.pas
globals.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
globstat.pas
globtype.pas + optimization setting level4 2015-02-08 11:24:30 +00:00
hlcg2ll.pas * moved x86-specific requirements from the generic bsr/bsf code to the 2015-02-23 22:57:18 +00:00
hlcgobj.pas Merged from trunk 2015-03-08 12:33:46 +00:00
htypechk.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
impdef.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
import.pas
ldscript.pas
link.pas do not include outputexedir in linker resname. it causes the path to be double-included when cross-compiling with -st and -FE on Liunuxes. also, be consistent between linking on host and target. 2015-02-18 14:09:15 +00:00
macho.pas
machoutils.pas
Makefile Makefile regenerated after previous commit: Fix fullinstall for win64 and disable 8086 and i386 compiler for win64 os source only for fullcycle and fullinstall 2015-03-11 22:03:52 +00:00
Makefile.fpc Fix fullinstall for win64 and disable 8086 and i386 compiler for win64 os source only for fullcycle and fullinstall 2015-03-11 21:57:47 +00:00
MPWMake
msgidx.inc + report when compilation of a unit is stopped because it has been already compiled during the recursive search in uses clauses 2015-02-24 21:46:09 +00:00
msgtxt.inc + report when compilation of a unit is stopped because it has been already compiled during the recursive search in uses clauses 2015-02-24 21:46:09 +00:00
nadd.pas * also allow 64 bit platforms have have a 32x32->64 bit multiplication to 2015-02-28 22:31:06 +00:00
nbas.pas * Improved handling of registers used in assembler blocks. Assembler nodes no longer have lists of used registers attached to them. Instead, each specified register creates an allocation/deallocation pair and an additional tai_regalloc.markused item directly in the asmlist. This way, register lists are no longer limited to integer registers, and parsing no longer depends on paramanager to know which registers are volatile. 2015-02-25 21:53:15 +00:00
ncal.pas * keep track of the reason why a loadparentfpnode has been created: to 2015-02-23 22:53:59 +00:00
ncgadd.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgbas.pas * Improved handling of registers used in assembler blocks. Assembler nodes no longer have lists of used registers attached to them. Instead, each specified register creates an allocation/deallocation pair and an additional tai_regalloc.markused item directly in the asmlist. This way, register lists are no longer limited to integer registers, and parsing no longer depends on paramanager to know which registers are volatile. 2015-02-25 21:53:15 +00:00
ncgcal.pas * allocate a temp addressreg instead of a temp intreg in callnode. improves code generation on m68k for these cases 2015-03-02 22:21:53 +00:00
ncgcnv.pas * fixed some ancient code behind cpu_uses_separate_address_registers define to at least compile again, for some m68k experiment 2015-03-07 22:11:43 +00:00
ncgcon.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgflw.pas * handle the result of FPC_CATCHES via the high level code generator (which makes it i8086 far pointer safe) 2014-04-02 14:25:19 +00:00
ncginl.pas * moved x86-specific requirements from the generic bsr/bsf code to the 2015-02-23 22:57:18 +00:00
ncgld.pas * fixed assigning one float loc_reference to another of a different size if a 2015-02-23 22:47:47 +00:00
ncgmat.pas * fixed tcgshlshrnode.pass_generate_code for 64 bit targets 2015-01-30 19:31:15 +00:00
ncgmem.pas * fixed some ancient code behind cpu_uses_separate_address_registers define to at least compile again, for some m68k experiment 2015-03-07 22:11:43 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgrtti.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgset.pas * avoid unnecessary sign/zero-extensions in genlinearlist() when generating 2015-02-28 16:46:54 +00:00
ncgutil.pas * fixed the allocation of R12 on ppc32/ppc64 when used to hold the value of 2015-03-11 17:49:44 +00:00
ncgvmt.pas * applying const_align when generating structures accessed by the rtl is not a good idea because their 2015-02-28 22:44:58 +00:00
ncnv.pas * check whether we are explicitly typecasting untypedpointer^ before other 2015-02-23 22:47:44 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ngenutil.pas * align compiler generated constants according to constant aligment settings 2015-02-08 11:23:01 +00:00
ngtcon.pas * read array initializations in generic subroutines without fixed limits, resolves #25602 2015-02-01 17:09:00 +00:00
ninl.pas * add explicit check that argument of sizeof(x) is a simple load node (this 2015-02-23 22:47:35 +00:00
nld.pas * keep track of the reason why a loadparentfpnode has been created: to 2015-02-23 22:53:59 +00:00
nmat.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
nmem.pas * use Object_getClass(obj) instead of obj._class to get the class of an 2015-02-26 21:49:08 +00:00
nobj.pas * TVMTBuilder.intf_allocate_vtbls: fixed the Ioffset calculation in i8086 far 2014-05-03 17:05:50 +00:00
nobjc.pas
node.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
nopt.pas
nset.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nstate.pas
nutils.pas * properly firstpass nodes when inc(...) is converted into ...:=...+x, resolves #27471 2015-02-17 21:14:45 +00:00
objcdef.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
objcgutl.pas * AArch64 also uses the non-fragile Objective-C ABI 2015-02-23 22:51:31 +00:00
objcutil.pas * we cannot directly load the ISA pointer on AArch64, we have to call the 2015-02-23 22:54:18 +00:00
ogbase.pas Fixed internal error in GOT related code for ARM internal assembler. 2015-03-14 16:03:16 +00:00
ogcoff.pas + Missing part of internal ARM assembler, Mantis #26588. I'm not setting it as default for arm-wince yet, because testing reveals several points in generic code that need adjustments. 2015-01-30 22:45:05 +00:00
ogelf.pas Rebase to trunk revision 2015-02-15 16:08:18 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas
optconstprop.pas * propagate constants into the header of a for loop 2013-12-31 13:16:09 +00:00
optcse.pas * do not switch around node subtrees if they have different resultdefs, e.g. 2015-02-28 22:31:00 +00:00
optdead.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
optdeadstore.pas * be more careful when removing dead stores 2013-12-28 20:19:42 +00:00
optdfa.pas * handle raise nodes in dfa on jvm, resolves #27416 2015-02-07 18:11:02 +00:00
options.pas * define _CALL_ELF=1 or _CALL_ELF=2 symbol when targeting ppc(64) 2015-03-14 18:35:22 +00:00
optloop.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
opttail.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
optutils.pas * set successor node for load nodes as well, they can be generated when inlining 2013-12-28 20:19:38 +00:00
optvirt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
owar.pas
owbase.pas
parabase.pas
paramgr.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
parser.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pass_1.pas
pass_2.pas
pbase.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
pdecl.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
pdecobj.pas * fixed detection of an objcprotocols descending from a forward-defined 2015-03-12 19:37:43 +00:00
pdecsub.pas Specialize the correct generic if it has the same name as another generic that is located at another place of the type hierarchy. 2015-02-20 16:28:44 +00:00
pdecvar.pas * check for read/write after a newly declared property (mantis #26011) 2014-06-15 10:59:47 +00:00
pexports.pas
pexpr.pas * don't crash when "return exitvalue" is used in a procedure 2015-03-13 08:35:26 +00:00
pgenutil.pas Specialize the correct generic if it has the same name as another generic that is located at another place of the type hierarchy. 2015-02-20 16:28:44 +00:00
pinline.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pmodules.pas + report when compilation of a unit is stopped because it has been already compiled during the recursive search in uses clauses 2015-02-24 21:46:09 +00:00
pp.lpi + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
pp.pas
pparautl.pas * copy arrays passed by value to cdecl routines on the callee side even on 2015-02-23 22:50:29 +00:00
ppc68k.lpi
ppc8086.lpi + generate the stack segment for i8086 far data memory models from within fpc 2014-05-27 23:29:50 +00:00
ppcaarch64.lpi
ppcarm.lpi Rebase to trunk revision 2015-02-15 16:08:18 +00:00
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * keep track of the reason why a loadparentfpnode has been created: to 2015-02-23 22:53:59 +00:00
ppx86_64.lpi
procinfo.pas * Added virtual method tprocinfo.postprocess_code and moved target-specific processing from base class into target-specific descendant classes (ARM and AVR, other targets still to do). 2014-04-02 13:14:06 +00:00
pstatmnt.pas fixed a warning with DFA 2015-02-26 09:36:03 +00:00
psub.pas * do not warn about internally generated parameters, resolves #25914 2015-02-06 20:44:24 +00:00
psystem.pas Merged from trunk 2015-03-08 12:33:46 +00:00
ptconst.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ptype.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
raatt.pas Merged from trunk 2015-03-08 12:33:46 +00:00
rabase.pas
rasm.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
rautils.pas + condition and shifterop operands for AArch64 assembler reader 2015-02-23 22:51:38 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas + New subtype of tai_regalloc, "ra_markused". It marks a physical register as used in procedure, triggering saving/restoring that register if it is non-volatile. 2015-02-25 21:38:23 +00:00
scandir.pas + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
scanner.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
script.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
switches.pas + added the $F switch to the turbo and macSwitchTable, as that takes precedence 2014-04-13 15:14:43 +00:00
symbase.pas * prevent new definitions being added to a global unit symtable after compilation of the implementation part started 2015-02-23 22:10:46 +00:00
symconst.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
symcreat.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
symdef.pas * abstractrecorddef.contains_float_field should search recursively, resolves #27580 2015-03-11 22:05:14 +00:00
symnot.pas
symsym.pas * limit initialization to register variables which really need to be initialized 2015-01-27 21:51:29 +00:00
symtable.pas Avoid warning for function not set if noreturn modifier is used 2015-02-15 18:01:22 +00:00
symtype.pas * support for raising the visibility of inherited properties on the JVM 2014-06-12 11:08:44 +00:00
symutil.pas
systems.inc + "ELFv2" abi identifier for ppc64 2015-03-14 18:35:13 +00:00
systems.pas + "ELFv2" abi identifier for ppc64 2015-03-14 18:35:13 +00:00
tgobj.pas * switched to using the stack pointer as base register for the temp allocator 2015-02-23 22:54:03 +00:00
tokens.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
verbose.pas
version.pas + initial AArch64 support in systemh.inc, options.pas, version.pas and 2015-02-23 22:52:04 +00:00
widestr.pas * converted widestr.charlength() to use system.Utf8CodePointLen() 2015-03-01 17:12:27 +00:00
wpo.pas
wpobase.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
wpoinfo.pas * call "message" rather than "cgmessage" when throwing fatal errors, because 2014-07-18 09:09:21 +00:00

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