fpc/compiler
Jonas Maebe ac43eb9b70 + generic implementation of ReplaceForbiddenAsmSymbolChars() instead
of the AVR-specific ifdef'ed variant
   o since the only special character we use in mangled names on all platforms
     is $, added a new field to tasminfo called "dollarsign" that holds the
     character $'s should be replaced with (if it doesn't have to be replaced,
     leave it at $)

git-svn-id: trunk@20801 -
2012-04-11 18:01:57 +00:00
..
alpha * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
arm + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
avr + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
generic * Remove triple sources 2011-07-08 15:37:23 +00:00
html
i386 * fixed the offset of memory parameters allocated via getintparaloc(): 2012-03-10 18:01:22 +00:00
ia64 Fix ia64 compilation problems 2012-01-20 14:17:56 +00:00
m68k + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
mips + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
msg * fixed inconsistent license files references 2012-04-08 20:00:45 +00:00
powerpc + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
powerpc64 * initialize dirhint field of created tasmconds 2012-04-11 18:01:49 +00:00
ppcgen + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
sparc + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
systems + AIX target definition and info for the compiler and ppudump 2012-04-11 18:00:29 +00:00
utils + AIX target definition and info for the compiler and ppudump 2012-04-11 18:00:29 +00:00
vis - removed no more used constants 2011-08-13 20:54:01 +00:00
x86 + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
x86_64 * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aasmbase.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
aasmdata.pas compiler: 2011-09-28 01:18:43 +00:00
aasmsym.pas
aasmtai.pas * converted tai directive string from pshortstring to ansistring (some 2012-04-11 18:01:41 +00:00
aggas.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
aopt.pas + first version of ldr instruction scheduler on arm 2012-03-11 19:10:58 +00:00
aoptbase.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aoptcs.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
aoptda.pas
aoptobj.pas * RefsHaveIndexReg -> cpurefshaveindexreg 2012-03-10 19:43:52 +00:00
asmutils.pas compiler: move ansistring codepage number replacement code from the asm generator to one level up. output both 0 and CP_NONE ansistring constants as constants with codepage 0. codepage 0 means CP_ACP and it will be properly understood of RTL routines while codepage CP_NONE means no codepage. For delphi unicode mode output them in compiler codepage as before. 2011-10-11 07:22:49 +00:00
assemble.pas * converted tai directive string from pshortstring to ansistring (some 2012-04-11 18:01:41 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas * make compiler compilable with 2.4.4 rtl 2011-09-28 18:54:32 +00:00
cclasses.pas * Added a lower limit on tdynamicarray block size. Certain values less than dynamicblockbasesize+alignment, e.g. 8 on x86_64, cause grow() to enter an infinite loop. Such values come e.g. from cloning tdataconstnode, which abuses blocksize argument as data size. Mantis #20929. 2011-12-18 22:34:56 +00:00
cfidwarf.pas
cfileutl.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
cg64f32.pas
cgbase.pas
cgobj.pas + LOC_(C)LOC_SUBSETREF/G support for tcg.a_loadmm_loc_reg() 2012-03-29 20:54:42 +00:00
cgutils.pas
cmsgs.pas compiler: 2011-11-02 09:20:59 +00:00
comphook.pas Display source position with timestamps also 2012-03-28 14:08:01 +00:00
compiler.pas + AIX target definition and info for the compiler and ppudump 2012-04-11 18:00:29 +00:00
compinnr.inc Add support for Default() intrinsic. For now this is only (fully) supported 2012-03-25 16:02:27 +00:00
comprsrc.pas + when compiling for Darwin/ARM, pass the subarchitecture to the linker. 2011-08-02 20:41:39 +00:00
constexp.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
COPYING.txt
cp437.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp850.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp866.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp1251.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp1252.pp * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp8859_1.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cp8859_5.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
cpid.pas merge r14347 from cpstrnew branch by florian: 2011-09-17 12:00:06 +00:00
crefs.pas
cresstr.pas compiler: 2011-10-19 02:45:52 +00:00
cstreams.pas * typo fixed 2011-12-31 16:25:19 +00:00
cutils.pas + -WM<X> and -WP<x> command line parameters to specify the minimally required 2012-03-10 19:31:57 +00:00
cwindirs.pp + added cwindirs for the time being to the compiler dir till a release with windirs in the rtl is released 2011-03-19 22:48:56 +00:00
dbgbase.pas * Avoid having current_debuginfo pointing to freed memory 2012-03-21 10:17:43 +00:00
dbgdwarf.pas * Use DW_TAG_class_type for classes instead of DW_TAG_structure_type 2011-10-13 16:21:49 +00:00
dbgstabs.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
defcmp.pas compiler: change overload search for char constants (for delphi compatibility): 2012-02-14 06:52:33 +00:00
defutil.pas * also show the valid bounds in most cases when signalling a range check 2012-03-10 21:53:36 +00:00
export.pas
expunix.pas
finput.pas * adjust the name of the external debug and map file when the name of 2012-03-09 15:24:46 +00:00
fmodule.pas * Avoid having current_debuginfo pointing to freed memory 2012-03-21 10:17:43 +00:00
fpccrc.pas
fpcdefs.inc + support for the ARM hard float EABI on Linux (patch by Peter Green): 2012-03-29 20:50:09 +00:00
fppu.pas * Fix bug #21607 2012-04-03 07:27:55 +00:00
gendef.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
globals.pas + -WM<X> and -WP<x> command line parameters to specify the minimally required 2012-03-10 19:31:57 +00:00
globtype.pas + first version of ldr instruction scheduler on arm 2012-03-11 19:10:58 +00:00
htypechk.pas + in_generic for testing if currently a generic declaration/definition is parsed/record 2012-04-03 19:29:09 +00:00
impdef.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
import.pas
link.pas + TExternalLinker.CatFileContent method and tf_no_backquote_support tsystemflags enum value 2011-11-18 21:32:25 +00:00
macho.pas
machoutils.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
Makefile Add x86_64-openbsd target in Makefiles 2012-04-06 16:49:08 +00:00
Makefile.fpc + Add sparc register includes generation rule 2012-03-30 15:45:38 +00:00
MPWMake
msgidx.inc * message include files regenerated 2012-04-08 20:02:12 +00:00
msgtxt.inc * message include files regenerated 2012-04-08 20:02:12 +00:00
nadd.pas * don't replace "expr1 or expr1" or "expr1 and expr1" with just "expr1" 2012-03-09 20:26:32 +00:00
nbas.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
ncal.pas * don't create a temp. for a dereferenced pointer which is passed to a var parameter of an inline procedure 2012-03-07 21:17:09 +00:00
ncgadd.pas * fixed generic code for subtracting one set from another if both are 2011-08-20 20:36:13 +00:00
ncgbas.pas
ncgcal.pas Values of managed variables are never ever used after decrementing reference on the variable, so there is no point of having a 'decrement reference' as a separate operation. We can always do 'finalize', i.e. clear the contents after decref. 2012-01-19 23:11:09 +00:00
ncgcnv.pas o patch by Alexander Shishkin, resolves #20409 2011-10-05 20:11:09 +00:00
ncgcon.pas * tcgguidconstnode: create a new object section before emitting data, otherwise data ends up in arbitrary section, causing e.g. IE 200602289 if it happens to be .bss. 2011-11-16 02:21:10 +00:00
ncgflw.pas * Safecall handling: forgot to free cgpara before doing the call, fixed. 2012-01-05 19:12:56 +00:00
ncginl.pas merge r13489 from cpstrnew branch by florian: 2011-09-17 11:21:00 +00:00
ncgld.pas - removed cg.g_indirect_sym_load() calls from pass_generate_code; this 2012-04-11 18:00:21 +00:00
ncgmat.pas
ncgmem.pas - removed cg.g_indirect_sym_load() calls from pass_generate_code; this 2012-04-11 18:00:21 +00:00
ncgobjc.pas compiler: 2011-09-28 01:18:43 +00:00
ncgopt.pas
ncgrtti.pas * don't try to write rtti for fields in Pascal records/classes/objects/... 2011-12-17 11:43:13 +00:00
ncgset.pas
ncgutil.pas * just like Darwin and Classic Mac OS, AIX uses the system crt* files and 2012-04-11 18:00:43 +00:00
ncnv.pas compiler: 2011-11-03 00:39:22 +00:00
ncon.pas * don't replace "expr1 or expr1" or "expr1 and expr1" with just "expr1" 2012-03-09 20:26:32 +00:00
nflw.pas * Set pi_uses_exceptions flag when creating/firstpassing ttryexceptnode or ttryfinallynode, not when parsing try statements. It ensures that procedures with exception handling nodes created by compiler (constructors in the first place, but also for..in loops with TObject iterators, etc.) are handled the same way as ones containing exception nodes from user code. 2011-11-22 11:59:44 +00:00
ninl.pas Add support for Default() intrinsic. For now this is only (fully) supported 2012-03-25 16:02:27 +00:00
nld.pas * fully compare typenodes and rttinodes in their docompare() methods 2012-03-25 16:52:34 +00:00
nmat.pas Avoid internal error 2002042430 and check overloading before calling simplify method 2012-03-26 15:44:47 +00:00
nmem.pas * hardcode offset of the ISA field in Objective-C (meta)classes to be 2012-03-25 12:55:18 +00:00
nobj.pas * nobj.pas, finished refactoring VMT generation code, now all child structures except RTTI are written to same data section with VMT itself and their labels are local (since child structures are accessible only through VMT, smartlinking them into different sections is useless). 2012-02-13 18:49:48 +00:00
nobjc.pas
node.pas * part of r20140, forgot to commit 2012-01-21 21:16:47 +00:00
nopt.pas compiler: 2011-10-20 09:25:51 +00:00
nset.pas + initial support for pascal booleans with sizes 2, 4 and 8 2011-06-26 15:02:37 +00:00
nstate.pas
nutils.pas Values of managed variables are never ever used after decrementing reference on the variable, so there is no point of having a 'decrement reference' as a separate operation. We can always do 'finalize', i.e. clear the contents after decref. 2012-01-19 23:11:09 +00:00
objcdef.pas
objcgutl.pas * objcprotocol symbols have to be weak in the non-fragile abi to prevent 2011-12-17 12:43:42 +00:00
objcutil.pas * don't generate a classClass call for objc loadvmtaddrnodes generated 2012-03-29 20:54:47 +00:00
ogbase.pas * don't pass property as var-parameter to val() 2012-01-21 16:54:57 +00:00
ogcoff.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
ogelf.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
oglx.pas
ogmacho.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
ogmap.pas
ognlm.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
optbase.pas
optcse.pas * Avoid pointer typecast warning 2011-06-29 09:54:46 +00:00
optdead.pas * only try to use objdump to extract symbol liveness information if the 2012-04-07 11:11:48 +00:00
optdfa.pas * handle for-loops correctly if the limits contain the counter variable 2011-12-30 10:54:08 +00:00
options.pas + define CPUX86 on i386 and CPUX64 on x86-64, resolves #21670 2012-04-06 21:05:09 +00:00
optloop.pas
opttail.pas * factored load node flags out of node flags to gain space 2011-10-30 15:14:21 +00:00
optutils.pas
optvirt.pas
owar.pas * patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740 2011-04-05 20:10:09 +00:00
owbase.pas * write error code if an object file cannot be created 2012-01-15 10:59:10 +00:00
parabase.pas
paramgr.pas * An open array/array of const parameter passed by value and requiring a local copy on heap (currently all targets except non-Darwin i386 ones) should not be placed into register and should force procedure to have an implicit finally block. 2011-12-06 19:44:24 +00:00
parser.pas compiler: remove unused variable 2011-09-20 13:44:53 +00:00
pass_1.pas
pass_2.pas + tcgexitnode,tcgbreaknode,tcgcontinuenode: added possibility to generate specialized code for leaving unwind-protected regions. 2011-11-14 22:47:37 +00:00
pbase.pas reintegrate paul/namespaces branch into trunk: 2011-08-30 01:10:24 +00:00
pdecl.pas + in_generic for testing if currently a generic declaration/definition is parsed/record 2012-04-03 19:29:09 +00:00
pdecobj.pas * pdecobj.pas, object_dec: 2012-01-28 18:09:40 +00:00
pdecsub.pas * inline is only a hint to the compiler which might be ignored so throw only a hint and not a warning if subroutine cannot be inlined 2012-03-25 14:19:45 +00:00
pdecvar.pas * AIX-specific struct alignment rules 2012-04-11 18:00:37 +00:00
pexports.pas * also show the valid bounds in most cases when signalling a range check 2012-03-10 21:53:36 +00:00
pexpr.pas * formatting 2012-04-03 16:14:15 +00:00
pgenutil.pas * pgenutil.pas, generate_specialization: 2012-02-04 16:26:47 +00:00
pinline.pas * unified formatting 2012-04-03 19:30:04 +00:00
pmodules.pas * just like Darwin and Classic Mac OS, AIX uses the system crt* files and 2012-04-11 18:00:43 +00:00
pp.lpi * proper title value 2012-04-04 19:42:31 +00:00
pp.pas + support for the ARM hard float EABI on Linux (patch by Peter Green): 2012-03-29 20:50:09 +00:00
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * update of project file 2012-03-25 14:23:57 +00:00
ppcavr.lpi * version update 2011-09-04 18:53:12 +00:00
ppcmips.lpi * fix some mips compiler issues, system unit compilation is getting forward 2012-02-04 22:53:52 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas Add support for Default() intrinsic. For now this is only (fully) supported 2012-03-25 16:02:27 +00:00
ppx86_64.lpi * proper title value 2012-04-04 19:42:31 +00:00
procinfo.pas * use r7 instead of r11 as frame pointer on Darwin/iOS, and make sure r7 2012-03-29 20:54:33 +00:00
pstatmnt.pas * Set pi_uses_exceptions flag when creating/firstpassing ttryexceptnode or ttryfinallynode, not when parsing try statements. It ensures that procedures with exception handling nodes created by compiler (constructors in the first place, but also for..in loops with TObject iterators, etc.) are handled the same way as ones containing exception nodes from user code. 2011-11-22 11:59:44 +00:00
psub.pas Add support for Default() intrinsic. For now this is only (fully) supported 2012-03-25 16:02:27 +00:00
psystem.pas Add support for Default() intrinsic. For now this is only (fully) supported 2012-03-25 16:02:27 +00:00
ptconst.pas * handle currency constants correctly on non i386 platforms if they are given as integer constant, resolves #21091 2012-04-06 22:13:48 +00:00
ptype.pas * create and push array def before the array range is parsed, this allows generic parameters to be used in the range definition, resolves #21592 2012-04-06 20:35:18 +00:00
raatt.pas + New virtual method TATTReader.HandleDollar, useful for MIPS reader 2012-02-02 23:45:22 +00:00
rabase.pas
rasm.pas
rautils.pas * Define MAX_OPER_X to avoid warnings about array index past maximum value 2011-11-03 10:12:31 +00:00
README.txt
regvars.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
rescmn.pas
rgbase.pas
rgobj.pas * write variable locations of 64 bit integer values on 32 bit targets correctly 2011-09-03 19:43:50 +00:00
scandir.pas compiler: 2011-11-03 00:39:22 +00:00
scanner.pas * Give debug information once for each conditional directive 2012-03-28 14:09:04 +00:00
script.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +00:00
switches.pas * Fix double WARN infinite loop 2011-06-29 09:52:03 +00:00
symbase.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
symconst.pas Add support for Default() intrinsic. For now this is only (fully) supported 2012-03-25 16:02:27 +00:00
symdef.pas * records containing managed types are not "regable", resolves #21674 2012-04-07 20:19:48 +00:00
symnot.pas
symsym.pas * don't ever mark the function result as vs_initialised, also not when 2012-02-17 16:25:50 +00:00
symtable.pas * AIX-specific struct alignment rules 2012-04-11 18:00:37 +00:00
symtype.pas compiler: add owner hierarchy prefix for mangled name of parameter def to prevent asm symbols collision (issue #0020940) 2012-01-24 08:27:51 +00:00
symutil.pas
systems.inc + AIX target definition and info for the compiler and ppudump 2012-04-11 18:00:29 +00:00
systems.pas + generic implementation of ReplaceForbiddenAsmSymbolChars() instead 2012-04-11 18:01:57 +00:00
tgobj.pas
tokens.pas merge r17552 from cpstrnew branch by inoussa: 2011-09-17 13:52:09 +00:00
verbose.pas * Fix ChangeMessageVerbosity by adingd a recordpendingmessagestate call 2011-11-02 22:08:14 +00:00
version.pas Add mips and mipsel source_cpu_string 2012-02-13 00:12:15 +00:00
widestr.pas * fixes bootstrapping with 2.6.0 2011-10-15 12:42:33 +00:00
wpo.pas
wpobase.pas * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346 2011-09-27 20:22:40 +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