fpc/compiler
Jonas Maebe 9420a5d7a7 * also check for targets not supporting -gc/checkpointer functionality in
compiler directives, not just on the command line (mantis #25862)

git-svn-id: trunk@27128 -
2014-03-13 20:42:18 +00:00
..
aarch64 Implement support for saving and restoring address registers. 2013-10-05 21:43:42 +00:00
alpha
arm * cleaned up do_spill_replace() 2014-03-11 23:19:01 +00:00
avr Disabled a_adjust_sp optimized steps for now. 2014-03-05 19:17:46 +00:00
generic
html
i386 + Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386. 2014-02-26 14:54:47 +00:00
i8086 * x86: Cleaned out addr_far,addr_far_ref used to encode far calls/jumps. NASM (and FPC x86 assembler based on it) already have opsize=S_FAR for this purpose. 2014-03-08 22:54:43 +00:00
ia64
jvm * set imaginary register start for JVM at register number 2, since there 2014-03-04 19:42:43 +00:00
m68k disable the new n68kmem node for now, it needs more fixing 2014-03-13 02:08:15 +00:00
mips * MIPS and SPARC: determine whether case expression is in range using a single unsigned comparison (like it is done on other targets). 2014-03-10 23:02:05 +00:00
msg * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
powerpc * use spilling_operation_type() instead of a big table to determine whether 2014-02-02 15:32:54 +00:00
powerpc64 * 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
ppcgen * completed thlcgobj.location_force_fpureg(), use it everywhere and removed 2014-03-10 09:01:05 +00:00
sparc * MIPS and SPARC: determine whether case expression is in range using a single unsigned comparison (like it is done on other targets). 2014-03-10 23:02:05 +00:00
systems * make windres the default resource compiler on x86_64-win64 2014-03-09 10:52:10 +00:00
utils Added AVR support to fpc and root Makefile. 2014-03-04 08:02:10 +00:00
vis
x86 * completed thlcgobj.location_force_fpureg(), use it everywhere and removed 2014-03-10 09:01:05 +00:00
x86_64 - i386, x86_64, SPARC: removed paramanager.getintparaloc overrides, it is handled by generic implementation since r24716. 2014-02-24 16:01:14 +00:00
aasmbase.pas * indention fixes 2013-05-03 20:41:55 +00:00
aasmdata.pas * Removed tasmdata.realname (it is not used anywhere) and changed tasmdata.name to pshortstring. The name string is owned by tmodule and referenced by tasmdata. This removes 80-char limit on tasmdata.name, Mantis #25009. 2013-09-19 10:06:43 +00:00
aasmsym.pas
aasmtai.pas + Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386. 2014-02-26 14:54:47 +00:00
aggas.pas Replace forbidden chars in more places in the GAS assembler writer. 2014-03-04 08:01:23 +00:00
agjasmin.pas pass new asm extra opt using -ao option 2014-01-21 00:16:53 +00:00
aopt.pas * honour -Oonopeephole 2014-03-11 23:18:58 +00:00
aoptbase.pas * simplified RegInInstruction() and fixed range errors 2013-11-06 10:46:22 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas Rerun peephole optimizers on the whole block 2014-01-31 23:21:52 +00:00
asmutils.pas
assemble.pas include exec on Amiga only in the implementation part 2014-03-09 23:05:13 +00:00
browcol.pas Avoid infinite recursion on generic classes for IDE browser 2013-11-12 16:39:20 +00:00
bsdcompile
catch.pas
ccharset.pas
cclasses.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
cfidwarf.pas
cfileutl.pas Print out command line before running it with -vx option 2014-01-12 23:06:19 +00:00
cg64f32.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
cgbase.pas * x86: Cleaned out addr_far,addr_far_ref used to encode far calls/jumps. NASM (and FPC x86 assembler based on it) already have opsize=S_FAR for this purpose. 2014-03-08 22:54:43 +00:00
cghlcpu.pas + override g_save_registers() and g_restore_registers() with do-nothing versions 2013-11-10 21:33:38 +00:00
cgobj.pas * a_call_ref functionality cannot be implemented efficiently at code generator level, because references need specific preparations at earlier points. Moved this support to tcgcallnode and its x86 descendants, and got rid of all ifdef's around. 2014-02-03 13:28:56 +00:00
cgutils.pas no longer define a segment field for m68k 2014-01-15 02:06:10 +00:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc
comprsrc.pas
constexp.pas * make use of the noreturn directive for internalerror 2013-11-10 09:01:03 +00:00
COPYING.txt * updated address of FSF (mantis #24646, patch by Alexey Svistunov) 2013-06-27 14:04:34 +00:00
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 + added min and max functions for Tconstexprint 2013-04-01 20:23:14 +00:00
cwindirs.pp
dbgbase.pas
dbgdwarf.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
dbgstabs.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
dbgstabx.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
defcmp.pas Fix for Mantis #25132 2013-10-25 19:50:56 +00:00
defutil.pas + added is_farpointer(tdef) and is_hugepointer(tdef) helper functions to defutil 2013-06-10 20:50:05 +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 + Added values for DT_FLAGS and DT_FLAGS_1 dynamic tags. 2013-03-29 14:46:44 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas * Removed tasmdata.realname (it is not used anywhere) and changed tasmdata.name to pshortstring. The name string is owned by tmodule and referenced by tasmdata. This removes 80-char limit on tasmdata.name, Mantis #25009. 2013-09-19 10:06:43 +00:00
fpccrc.pas
fpcdefs.inc * Enabled safecall for mips. 2014-02-07 14:12:33 +00:00
fppu.pas + added i8086 memory model flags to the ppu flags and added a check that prevents the using of units compiled for different memory models 2013-08-25 16:45:04 +00:00
gendef.pas
globals.pas Add new global asmextraopt variable 2014-01-21 00:14:49 +00:00
globstat.pas
globtype.pas + UNICODESTRINGS feature flag 2014-03-07 21:25:38 +00:00
hlcg2ll.pas * completed thlcgobj.location_force_fpureg(), use it everywhere and removed 2014-03-10 09:01:05 +00:00
hlcgobj.pas * completed thlcgobj.location_force_fpureg(), use it everywhere and removed 2014-03-10 09:01:05 +00:00
htypechk.pas * take care of dyn. arrays in cse 2014-02-08 21:47:46 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas Use new static library not supproted message 2014-01-27 22:29:07 +00:00
macho.pas
machoutils.pas
Makefile * mipsel-android: Regenerated makefiles. From now the mipsel-android target can be built and used. 2014-02-07 12:37:17 +00:00
Makefile.fpc + OPTNEW Makefile parameter: when running a native cycle, this allows to pass a parameter only to the new generated compiler 2014-01-18 10:19:16 +00:00
MPWMake
msgidx.inc * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
msgtxt.inc * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
nadd.pas * fixed the type conversions of the 'and' operator to be Delphi compatible. Fixes Mantis #25179 2014-02-25 18:06:29 +00:00
nbas.pas * take care of dyn. arrays in cse 2014-02-08 21:47:46 +00:00
ncal.pas * Fixed cloning of varargs parameters in tcallnode.dogetcopy, resolves #23981. 2014-02-13 01:12:58 +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 * 16-bit and 8-bit ALU fixes in tcgtempdeletenode.pass_generate_code 2013-12-23 14:09:28 +00:00
ncgcal.pas * a_call_ref functionality cannot be implemented efficiently at code generator level, because references need specific preparations at earlier points. Moved this support to tcgcallnode and its x86 descendants, and got rid of all ifdef's around. 2014-02-03 13:28:56 +00:00
ncgcnv.pas * completed thlcgobj.location_force_fpureg(), use it everywhere and removed 2014-03-10 09:01:05 +00:00
ncgcon.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
ncgflw.pas * Fix code generation of for-loops. Keeping a copy of to-value in register during pass 2 is basically a hack, because register may be destroyed if an exception is raised and handled in loop body. This went unnoticed because generic setjmp-based exception handling is restoring registers to the state at entry to try block, and Win64 SEH also has some register-preserving features. However, for Win32 SEH it is not true. 2013-12-07 09:18:18 +00:00
ncginl.pas * fixed inc/dec with constant truncating the high parts of the constant on 2014-03-01 10:33:14 +00:00
ncgld.pas * fixed the conversion and assignment to the 64-bit boolean types on the i8086 2013-12-31 17:18:20 +00:00
ncgmat.pas do not generate zero divisor checks if a divisor is a constant 2014-03-10 18:16:17 +00:00
ncgmem.pas + added type parentfpvoidpointertype, which is a void pointer with the same size 2014-03-02 22:55:52 +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 * 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
ncgset.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
ncgutil.pas * completed thlcgobj.location_force_fpureg(), use it everywhere and removed 2014-03-10 09:01:05 +00:00
ncgvmt.pas * Generate interface wrappers together with data structures of class they belong to, and place everything into single assembler slice (since all wrappers are always referenced by VPTR, attempting to smartlink them is useless). This removes separate iteration pass over symtables and reduces amount of smartlink files. 2014-02-24 15:33:15 +00:00
ncnv.pas * optimize type conversions away if bits has been masked by a previous and operation 2014-02-16 18:40:35 +00:00
ncon.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
nflw.pas * handle for ... in on arrays of constant correctly, resolves also #25838 2014-03-09 09:03:22 +00:00
ngenutil.pas * changed TResStrInitTable.Count and TWStrInitTablesTable.Count to nativeint 2014-03-02 13:27:59 +00:00
ngtcon.pas * set the code page of rawbytestring typed constants to the same value as 2014-01-05 18:26:10 +00:00
ninl.pas * skip dec/inc type checking in unspecialized generic methods, resolves #25603 2014-02-22 09:20:57 +00:00
nld.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
nmat.pas * properly simplify not(<const. cbool>), resolves #25255 2014-02-16 20:20:58 +00:00
nmem.pas + added type parentfpvoidpointertype, which is a void pointer with the same size 2014-03-02 22:55:52 +00:00
nobj.pas * Moved all code responsible for writing VMTs and interface wrappers (nobj.TVMTWriter, ncgutil.gen_intf_wrappers, ptype.write_persistent_type_info) into a new unit ncgvmt.pas. 2013-04-19 13:31:27 +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 * when concatenating ansistrings, do not map CP_NONE (rawbytestring) to 2013-07-19 16:33:14 +00:00
nset.pas Fix cycling after addition of the new case simplification. 2014-02-21 22:49:19 +00:00
nstate.pas
nutils.pas Implement cross unit type overloading of generics. This fixes the regression introduced with revision 25498. 2013-09-18 14:28:46 +00:00
objcdef.pas
objcgutl.pas * changed some random data label names to match the label names outputted by 2013-12-31 00:28:46 +00:00
objcutil.pas
ogbase.pas + Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386. 2014-02-26 14:54:47 +00:00
ogcoff.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
ogelf.pas + Write 'non-executable stack' marker to object files also on FreeBSD (verified for version 9.0 for i386). 2014-02-10 05:46:46 +00:00
oglx.pas
ogmacho.pas
ogmap.pas + Property TObjSymbol.ObjData, allows to access owning TObjData for external/common symbols, i.e. ones with ObjSection=nil. 2013-07-30 09:23:48 +00:00
ognlm.pas * Replaced oso_disabled flag by TExeSection.Disabled boolean property. Makes code a bit nicer to read. 2013-04-28 20:29:49 +00:00
optbase.pas * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
optconstprop.pas * propagate constants into the header of a for loop 2013-12-31 13:16:09 +00:00
optcse.pas * do not store references to dyn. arrays 2014-02-09 08:41:51 +00:00
optdead.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
optdeadstore.pas * be more careful when removing dead stores 2013-12-28 20:19:42 +00:00
optdfa.pas * take care of tempinitcode when creating def information for tempcreatenodes 2014-01-25 09:40:51 +00:00
options.pas * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
optloop.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
opttail.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
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 Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
owar.pas
owbase.pas
parabase.pas * add a tdef to each parameter location and set it for all target 2013-06-02 10:24:02 +00:00
paramgr.pas * use voidpointer.size instead of sizeof(pint) in tparamanager.push_size in 2014-03-02 22:51:37 +00:00
parser.pas
pass_1.pas * indention and new line fixes 2013-11-06 21:10:28 +00:00
pass_2.pas
pbase.pas compiler: 2013-10-08 04:56:42 +00:00
pdecl.pas compiler: fix error message (was error message about resourcestring for property) 2014-01-05 07:12:41 +00:00
pdecobj.pas Add a modeswitch for type helpers as discussed in core on 24th October 2013. It is disabled by default in all modes (afterall type helper support in Delphi started only beginning with XE3) 2014-02-16 12:58:24 +00:00
pdecsub.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
pdecvar.pas * use a 16-bit integer for property indexes on 16- and 8-bit targets 2014-03-09 21:25:31 +00:00
pexports.pas
pexpr.pas * fixed formatting 2014-01-28 20:14:10 +00:00
pgenutil.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
pinline.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
pmodules.pas * fixed setting up the global switch for main programs without a "program" 2014-03-06 18:41:03 +00:00
pp.lpi * project file updated for newer lazarus versions 2013-10-06 13:13:53 +00:00
pp.pas
pparautl.pas + added type parentfpvoidpointertype, which is a void pointer with the same size 2014-03-02 22:55:52 +00:00
ppc68k.lpi
ppc8086.lpi + i8086/n8086cnv.pas added to lazarus project 2013-06-10 01:19:22 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi * jvm lazarus project file properly named 2013-04-28 08:39:20 +00:00
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas Add a modeswitch for type helpers as discussed in core on 24th October 2013. It is disabled by default in all modes (afterall type helper support in Delphi started only beginning with XE3) 2014-02-16 12:58:24 +00:00
ppx86_64.lpi
procinfo.pas compiler: fix calling class methods from a nested routine of a static class method (mantis #0024865) 2013-08-17 04:44:19 +00:00
pstatmnt.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
psub.pas * Changed passing of hidden parameters to constructors of class-style objects: VMT is always passed in the first ('self') parameter, and the second one ('vmt', although this name is now misleading) contains flag specifying the constructor behavior and meaning of 'self'. Together with r26656 this removes methodpointer sharing between two parameter node trees, it becomes possible not to put methodpointer into temp, but use node tree below 'self' parameter to do virtual calls. This also matches behavior of Delphi. 2014-02-06 12:26:47 +00:00
psystem.pas * moved creation of voidpointertype, so that voidpointertype.size is available 2014-03-04 14:10:02 +00:00
ptconst.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
ptype.pas Add a modeswitch for type helpers as discussed in core on 24th October 2013. It is disabled by default in all modes (afterall type helper support in Delphi started only beginning with XE3) 2014-02-16 12:58:24 +00:00
raatt.pas Add support in ARM assembler reader for ldr reg, =literal syntax 2013-07-21 16:06:57 +00:00
rabase.pas
rasm.pas
rautils.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
README.txt
regvars.pas
rescmn.pas * add a -dfpc define to the resource compiler commandlines, which allows to make FPC specific exceptions in resource scripts. Mantis #24044 2013-05-04 21:25:36 +00:00
rgbase.pas
rgobj.pas * never alias/coalesce cpu registers that are not usable by the register 2014-03-11 23:18:45 +00:00
scandir.pas * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
scanner.pas * some minor formatting fixes 2014-01-29 19:26:17 +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
symbase.pas compiler: have unit interface symtable in stack while parsing implementation uses list (fixes issue #10477) 2013-09-17 08:53:37 +00:00
symconst.pas + noreturn directive 2013-11-10 09:00:59 +00:00
symcreat.pas
symdef.pas include libsym handling for m68k as well, Amiga needs it 2014-03-10 00:32:57 +00:00
symnot.pas
symsym.pas * moved comments in from of fields for better readability 2014-01-12 20:17:56 +00:00
symtable.pas * don't crash when searching for a type helper in an anonymous array (or 2014-01-14 19:52:20 +00:00
symtype.pas Extract tdef.is_related plus its overrides in tobjectdef, trecorddef and tstringdef into a new function def_is_related in unit defcmp. 2013-10-25 19:44:27 +00:00
symutil.pas
systems.inc + Added compiler support for mipsel-android target. 2014-02-06 17:02:43 +00:00
systems.pas * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
tgobj.pas * prevent previously freed temp blocks from getting lost occasionally (can 2013-03-27 17:16:34 +00:00
tokens.pas + noreturn directive 2013-11-10 09:00:59 +00:00
verbose.pas * make use of the noreturn directive for internalerror 2013-11-10 09:01:03 +00:00
version.pas
widestr.pas compiler: remove big codepage maps from the compiler executable - they will be loaded from -FM path when needed 2014-01-05 06:06:18 +00:00
wpo.pas
wpobase.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
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