fpc/compiler
Jonas Maebe 80864ebf31 * made TDebugInfoDwarf3 inherit from TDebugInfoDwarf2 instead of from
TDebugInfoDwarf, so DWARFv2 and DWARFv3 generators can share protected
    methods.
  * fixed the debug info for sets whose language-level lower bound is not
    equal to the actual set base used when storing the data (e.g., a "set
    of 1..5" is actually stored as a "set of 0..7" or "set of 0..31")
    (mantis #13984)
  + interactive test for the above

git-svn-id: trunk@13302 -
2009-06-20 10:45:04 +00:00
..
alpha
arm + added some AT91SAM7 controllers 2009-06-18 21:55:12 +00:00
avr * less code commented 2009-02-25 19:41:30 +00:00
html
i386 * make references PIC-safe before pushing them as parameter (mantis #13829) 2009-05-26 16:22:41 +00:00
ia64
m68k * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
mips * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
msg * stabs -> Stabs 2009-06-18 09:10:35 +00:00
powerpc + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
powerpc64 * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ppcgen * fixed ppc/ppc64 compilation after r12719 2009-02-09 09:47:02 +00:00
sparc * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
systems + set stack through linker script 2009-06-20 07:33:25 +00:00
utils * Use ExeSearch instead of FileSearch to find compiler executable 2009-03-22 10:03:03 +00:00
vis
x86 * Fixed dead code warning. 2009-05-13 11:27:48 +00:00
x86_64 * Added missing override directive in trgcpu.add_constraints method for x86_64 CPU. It was missing for years and I am not sure that this code is really needed. Please review. 2009-05-13 11:37:09 +00:00
aasmbase.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
aasmdata.pas * enabled generation of dwarf frames for non x64 targets when dwarf debug info is requested 2009-03-16 23:43:26 +00:00
aasmsym.pas
aasmtai.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
aggas.pas * replaced old DWARF CFI section notation for Darwin with new one (more 2009-03-19 14:22:26 +00:00
aopt.pas * more aint() type casts replaced by int64() type casts 2008-11-13 19:44:30 +00:00
aoptbase.pas * use labelCanBeSkipped as used by i386 in generic optimizer code too 2009-02-27 13:03:12 +00:00
aoptcs.pas
aoptda.pas * Fixed level 2 comment warnings. 2008-07-23 10:08:48 +00:00
aoptobj.pas * fixed wrongly fix of r11444 in r12049 2008-11-12 20:55:06 +00:00
assemble.pas * Fixed internal assembler writer to handle offset calculations with forward symbols involved. Internal assembler can handle dwarf debug info now. 2009-05-04 11:19:48 +00:00
browcol.pas * fixed warnings and removed unused "Current_moduleIndex" global variable 2009-04-30 15:32:28 +00:00
bsdcompile
catch.pas - disabled installation of SIGINT signal handler for Darwin, because 2009-02-28 18:07:21 +00:00
ccharset.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cclasses.pas + keep track of called virtual methods per unit. -Owoptvtms will now replace 2009-06-06 08:24:36 +00:00
cfidwarf.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
cfileutl.pas + Made a single Amiga/MorphOS-specific PathConv import to cfileutl.pas, instead of importing it every single place it is needed. 2009-01-03 14:34:59 +00:00
cg64f32.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
cgbase.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
cgobj.pas * insert register allocation/deallocation information for the exception 2009-05-06 19:11:54 +00:00
cgutils.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
cmsgs.pas + -vq parameter to show message numbers 2008-10-12 12:19:41 +00:00
comphook.pas + -vq parameter to show message numbers 2008-10-12 12:19:41 +00:00
compiler.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
compinnr.inc + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
comprsrc.pas * fixed calling windres: don't create short names with forward slashes for output file name, becaause it fails, if the output file does not yet exist. Short names are only required for parameters that windres pass on to the preprocessor. 2009-01-15 22:35:17 +00:00
constexp.pas
COPYING.txt * added .txt extensions to all README, TODO and COPYING files 2009-02-28 17:34:08 +00:00
cp437.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp850.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp866.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp1251.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp8859_1.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
cp8859_5.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
crefs.pas * Fixed warnings about hiding inherited method. 2008-07-23 11:51:19 +00:00
cresstr.pas
cstreams.pas
cutils.pas * Removed unused local vars. 2009-03-01 11:44:15 +00:00
dbgbase.pas * split tvisibility from tsymoptions 2008-11-11 09:05:39 +00:00
dbgdwarf.pas * made TDebugInfoDwarf3 inherit from TDebugInfoDwarf2 instead of from 2009-06-20 10:45:04 +00:00
dbgstabs.pas * made TDebugInfoDwarf3 inherit from TDebugInfoDwarf2 instead of from 2009-06-20 10:45:04 +00:00
defcmp.pas + test conversion from class to differently sized enum and to differently 2009-05-16 11:07:09 +00:00
defutil.pas * fixed missing reference counting in case a refcounted type was implicitly 2009-05-25 19:41:14 +00:00
export.pas
expunix.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
finput.pas * prefix for import libraries now configurable rather than hardcoded, plus fixed issue with name of OS/2 import libraries 2009-02-09 00:01:15 +00:00
fmodule.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
fpccrc.pas
fpcdefs.inc + FPC_ARMEB and CPUARMEB similiar to FPC_ARMEL and CPUARMEL 2009-03-17 13:43:24 +00:00
fppu.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
gendef.pas
globals.pas * fixed compilation with -Cr after r13147 2009-05-17 10:07:54 +00:00
globtype.pas * don't emit "include file search paths" for stabs since they don't exist 2009-03-20 18:35:17 +00:00
htypechk.pas * accept overloaded operators that return any shortstring type when needing 2009-01-24 15:12:19 +00:00
impdef.pas
import.pas
link.pas * only store debug link file name in .gnu_debuglink section 2009-03-14 14:03:38 +00:00
Makefile * replaced PATHSEP by / for instruction and register table generation 2009-02-24 19:57:40 +00:00
Makefile.fpc * replaced PATHSEP by / for instruction and register table generation 2009-02-24 19:57:40 +00:00
MPWMake
msgidx.inc * regenerated 2009-06-11 16:16:05 +00:00
msgtxt.inc * regenerated 2009-06-11 16:16:05 +00:00
nadd.pas * forbid "nil +/- ordinal" expressions (Delphi-compatible, and the 2009-05-27 17:50:55 +00:00
nbas.pas * fix writing of goto node to ppu 2008-09-03 20:46:04 +00:00
ncal.pas * small indentation fix 2009-05-16 10:31:35 +00:00
ncgadd.pas
ncgbas.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgcal.pas * part of r13238, forgot to commit 2009-06-06 09:07:07 +00:00
ncgcnv.pas * set size of nil constants casted to method pointers correctly, first part of resolving #10684 2009-02-28 20:01:58 +00:00
ncgcon.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgflw.pas * insert register allocation/deallocation information for the exception 2009-05-06 19:11:54 +00:00
ncginl.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgld.pas * when optimizing temp assignments by simply replacing one temp with 2009-06-10 19:14:40 +00:00
ncgmat.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
ncgmem.pas * don't call FPC_CHECKPOINTER for references built from a LOC_CONSTANT 2009-04-24 13:08:39 +00:00
ncgobjc.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
ncgopt.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgrtti.pas + keep track of called virtual methods per unit. -Owoptvtms will now replace 2009-06-06 08:24:36 +00:00
ncgset.pas * Fixed 'mixed signed/unsigned' and pointer conversion warnings. 2008-07-23 09:36:07 +00:00
ncgutil.pas * insert register allocation/deallocation information for the exception 2009-05-06 19:11:54 +00:00
ncnv.pas * don't mark classes used in "is"- or "as"-expressions as potentially 2009-05-31 13:52:40 +00:00
ncon.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
nflw.pas + strength reduction for array accesses inside for loops 2008-09-26 18:23:31 +00:00
ninl.pas * give an error when the typeinfo() function is called for an enumeration 2009-03-22 20:54:49 +00:00
nld.pas * typos fixed 2008-07-11 19:03:16 +00:00
nmat.pas * changed "Mixing signed expressions and longwords gives a 64bit result" 2008-11-13 19:49:46 +00:00
nmem.pas * don't mark classes used in "is"- or "as"-expressions as potentially 2009-05-31 13:52:40 +00:00
nobj.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
nobjc.pas * fixed check for objc-methods passed to selector() 2009-03-09 08:40:55 +00:00
node.pas * don't mark classes used in "is"- or "as"-expressions as potentially 2009-05-31 13:52:40 +00:00
nopt.pas
nset.pas * fix writing of goto node to ppu 2008-09-03 20:46:04 +00:00
nstate.pas
nutils.pas * set the node complexity of realconstn to 1 instead of the default (maximum) 2009-03-19 14:20:51 +00:00
ogbase.pas * More proper check for executable image size limits. 2009-05-06 18:07:07 +00:00
ogcoff.pas * Replaced some ifdef x86_64 by ifdef cpu64bitaddr, since it is more correct. 2009-05-17 12:43:58 +00:00
ogelf.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
oglx.pas
ogmap.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
optbase.pas * various optimizations by Dave Richards (mantis #12440) 2009-05-27 17:26:50 +00:00
optcse.pas
optdead.pas * first search for gnm and only then for nm 2008-12-12 13:03:27 +00:00
optdfa.pas * set result of ResetDFA, resolves #12757 2008-12-12 21:47:21 +00:00
options.pas * Fixed setting of image base using {$IMAGEBASE X} directive. 2009-05-15 23:12:02 +00:00
optloop.pas * compilation fixed 2008-11-12 20:42:21 +00:00
opttail.pas
optutils.pas + strength reduction for array accesses inside for loops 2008-09-26 18:23:31 +00:00
optvirt.pas + keep track of called virtual methods per unit. -Owoptvtms will now replace 2009-06-06 08:24:36 +00:00
owar.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
owbase.pas * Use unsigned integers for sizes and positions to break 2GB limit in tdynamicarray, object writer, internal linker, coff and PE headers. 2008-07-28 20:29:25 +00:00
parabase.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
paramgr.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
parser.pas * store scanner directive stack when starting compilation of another module 2009-06-17 21:24:26 +00:00
pass_1.pas * delay verbosity changes just like localswitches changes 2008-11-03 21:18:27 +00:00
pass_2.pas * patch by Sergei Gorelkin: fixes compilation with -dEXTDEBUG 2009-04-25 20:02:08 +00:00
pbase.pas
pdecl.pas * refactor the forward type declaration handling, remove 2008-11-09 22:07:36 +00:00
pdecobj.pas * accept only valid guid as iid for com and dispinterfaces, resolves #12030; I'am not sure though if this isn't a feature used by people already 2008-12-17 22:09:21 +00:00
pdecsub.pas * fixed compilation on x86_64 and ARM after r12891 2009-03-16 08:24:12 +00:00
pdecvar.pas * reject "absolute" variables referencing locations with implicit 2009-03-13 21:17:39 +00:00
pexports.pas * fixed invalid type cast in case of errors in a library's export section 2008-11-01 17:08:26 +00:00
pexpr.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
pinline.pas * fix from r13288 2009-06-18 09:34:04 +00:00
pmodules.pas * init wpo collectors before parsing the interface of units 2009-05-31 13:37:15 +00:00
pp.lpi * version got updated 2009-01-23 13:26:33 +00:00
pp.pas + FPC_ARMEB and CPUARMEB similiar to FPC_ARMEL and CPUARMEL 2009-03-17 13:43:24 +00:00
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * convert int64 properly to c-bools, resolves #12614 2008-11-16 13:27:59 +00:00
ppcavr.lpi * continued work on avr-embedded 2008-08-14 14:23:25 +00:00
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas + keep track of called virtual methods per unit. -Owoptvtms will now replace 2009-06-06 08:24:36 +00:00
ppx86_64.lpi
procinfo.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
pstatmnt.pas * always create a temp for MacPas objects in with-expressions (mantis 2009-02-19 22:43:59 +00:00
psub.pas * also check that nested procedures don't have any nested procedures 2009-04-22 15:12:42 +00:00
psystem.pas + added {$modeswitch objectivec1}/-Mobjectivec1 mode switch to enable 2009-03-08 18:40:32 +00:00
ptconst.pas * init wpo collectors before parsing the interface of units 2009-05-31 13:37:15 +00:00
ptype.pas * split tvisibility from tsymoptions 2008-11-11 09:05:39 +00:00
raatt.pas * undo accidently committed changes from r11398 2008-07-18 15:33:48 +00:00
rabase.pas
rasm.pas
rautils.pas * give an error when trying to use the offset of a non-byte-aligned field 2009-04-23 17:27:44 +00:00
README.txt * added .txt extensions to all README, TODO and COPYING files 2009-02-28 17:34:08 +00:00
regvars.pas * Replaced all user defined warnings by TODO comments to reduce compiler noise. 2008-07-23 11:00:03 +00:00
rescmn.pas
rgbase.pas
rgobj.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
scandir.pas * store scanner directive stack when starting compilation of another module 2009-06-17 21:24:26 +00:00
scanner.pas * support {$i *.ext} to include source files with the same base name, but 2009-05-17 14:33:20 +00:00
script.pas + Made a single Amiga/MorphOS-specific PathConv import to cfileutl.pas, instead of importing it every single place it is needed. 2009-01-03 14:34:59 +00:00
switches.pas * check validity of calling conventions specified using {$calling x} 2009-03-21 21:21:45 +00:00
symbase.pas * split tvisibility from tsymoptions 2008-11-11 09:05:39 +00:00
symconst.pas * removed any use of pushleftright_pocalls for non-i386 platforms, since 2009-03-15 10:38:40 +00:00
symdef.pas * fixed compiler crash when using a bitpacked array whose size was 2009-06-06 12:33:18 +00:00
symnot.pas
symsym.pas o fixed r13033: 2009-04-24 22:29:05 +00:00
symtable.pas * refactor is_visible_for_object 2008-11-17 21:41:40 +00:00
symtype.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
symutil.pas
systems.pas * prefix for import libraries now configurable rather than hardcoded, plus fixed issue with name of OS/2 import libraries 2009-02-09 00:01:15 +00:00
tgobj.pas * always specify an explicit alignment for tgobj.gettemp (so e.g. 2008-11-08 22:20:47 +00:00
tokens.pas + "weakexternal" support for imported procedures and variables. 2008-11-01 18:38:32 +00:00
verbose.pas * delay verbosity changes just like localswitches changes 2008-11-03 21:18:27 +00:00
version.pas
widestr.pas Merged revisions 11665-11738 via svnmerge from 2008-09-10 20:14:31 +00:00
wpo.pas Merged revisions 11878,11881-11882,11889,11891-11893,11895,11899-11902,11935,11938,12212,12304,12308-12310,12316,12330-12332,12334,12339-12340 via svnmerge from 2008-12-11 17:40:18 +00:00
wpobase.pas * give an error message when the specified wpo feedback input file 2009-06-06 12:39:09 +00:00
wpoinfo.pas * do not load wpo info from ppu files when we are not generating 2009-06-06 09:08:08 +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