fpc/compiler
florian f53a14ec38 * fix regressions caused by r17496
git-svn-id: trunk@17499 -
2011-05-19 11:59:59 +00:00
..
alpha
arm * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
avr * fullcycle fixed 2011-05-15 19:13:49 +00:00
html
i386 * Fixed wrong ModRM byte in movq encoding, causing regression of test/cg/tcalext6 in r17490. 2011-05-18 14:55:26 +00:00
ia64
m68k * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
mips * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
msg x86 assembler fixes: 2011-05-16 20:18:03 +00:00
powerpc * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
powerpc64 * handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in 2010-12-28 23:52:25 +00:00
ppcgen * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
sparc * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
systems * don't quote the Darwin syslibroot path in link.res, it's not reinterpreted 2011-05-09 21:26:36 +00:00
utils * mkx86ins.pp: ot_signed flag must not be set by literal opcodes. Ignore 2- and 3-byte literal sequences, not just 1-byte ones. 2011-05-11 12:31:18 +00:00
vis
x86 * Fixed handling of 'movq' instruction by assembler reader, resolves #18205. 2011-05-19 06:44:24 +00:00
x86_64 * Fixed handling of 'movq' instruction by assembler reader, resolves #18205. 2011-05-19 06:44:24 +00:00
aasmbase.pas * merge user sections support branch 2011-04-10 18:08:59 +00:00
aasmdata.pas
aasmsym.pas
aasmtai.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
aggas.pas * rebase to trunk@17295 2011-04-10 19:20:48 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
asmutils.pas
assemble.pas * quote the path to the assembler if necessary when using popen(), since 2011-05-09 21:27:36 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
cfidwarf.pas
cfileutl.pas * don't look for helper executables (assembler, linker, resource compiler, 2011-01-02 20:25:41 +00:00
cg64f32.pas
cgbase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cgobj.pas * introduce usage of TCGInt in the code generator units 2011-05-14 17:58:23 +00:00
cgutils.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
cmsgs.pas o several strings changed into ansistrings, resolves #19318, no compilation speed degrations measurable 2011-05-15 14:53:31 +00:00
comphook.pas
compiler.pas o several strings changed into ansistrings, resolves #19318, no compilation speed degrations measurable 2011-05-15 14:53:31 +00:00
compinnr.inc
comprsrc.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
constexp.pas
COPYING.txt
cp437.pas
cp850.pas
cp866.pas
cp1251.pas
cp8859_1.pas
cp8859_5.pas
crefs.pas
cresstr.pas
cstreams.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
cutils.pas
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 compiler: generate debug info for record methods: 2010-12-16 06:12:05 +00:00
dbgdwarf.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
dbgstabs.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
defcmp.pas * prefer typecast currency->extended over currency->single/double because the former loses no precision while the latter might cause a loss of precision, resolves #19077 2011-04-10 19:40:18 +00:00
defutil.pas * renamed is_class_or_interface_or_dispinterface_or_objc() into 2010-12-30 15:19:54 +00:00
export.pas
expunix.pas
finput.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
fmodule.pas Rebase to revision 17236 2011-04-03 17:24:35 +00:00
fpccrc.pas
fpcdefs.inc Rebase to revision 17096 2011-03-09 16:29:47 +00:00
fppu.pas o several strings changed into ansistrings, resolves #19318, no compilation speed degrations measurable 2011-05-15 14:53:31 +00:00
gendef.pas
globals.pas + changes precedence of unary minus operator in mac and iso mode, resolves #17710 2011-05-17 19:53:55 +00:00
globtype.pas + changes precedence of unary minus operator in mac and iso mode, resolves #17710 2011-05-17 19:53:55 +00:00
htypechk.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
impdef.pas
import.pas
link.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
macho.pas * fixed comments for some comments, they were offset by one line (patch by 2010-12-24 15:58:41 +00:00
machoutils.pas
Makefile + added avr to full cycle 2011-05-14 17:44:49 +00:00
Makefile.fpc + added avr to full cycle 2011-05-14 17:44:49 +00:00
MPWMake
msgidx.inc x86 assembler fixes: 2011-05-16 20:18:03 +00:00
msgtxt.inc x86 assembler fixes: 2011-05-16 20:18:03 +00:00
nadd.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
nbas.pas
ncal.pas * fix formatting: mainly wrapped extremely long lines 2011-04-20 08:18:50 +00:00
ncgadd.pas * OS_INT => OS_32 2011-03-09 19:47:10 +00:00
ncgbas.pas
ncgcal.pas Rebase to revision 17236 2011-04-03 17:24:35 +00:00
ncgcnv.pas * fix building on powerpc/powerpc64/mips/mipsel 2011-04-20 09:02:29 +00:00
ncgcon.pas
ncgflw.pas * set line info markers properly, resolves #17803 2011-05-16 15:15:35 +00:00
ncginl.pas * corrected version of r16812: code generation is still handled specially 2011-01-26 14:50:18 +00:00
ncgld.pas * handle aligned assignments with size < sizeof(aint) properly, resolves #19355 2011-05-15 13:47:26 +00:00
ncgmat.pas + implementation of shifting operations for avr 2011-03-09 19:48:01 +00:00
ncgmem.pas * tcgvecnode, simplified range checking for strings. Removed FPC_*STR_CHECKZERO helpers, and changed FPC_*STR_CHECKRANGE so they accept the original left node. Now strings are checked the same way as dynamic arrays, and the compiler part is considerably simpler. 2011-03-13 15:52:02 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas compiler: write finished zero for enumeration rtti (this was broken since r14511 fixes bug #0019288) 2011-05-05 08:52:14 +00:00
ncgset.pas
ncgutil.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
ncnv.pas compiler: don't create set constants from arrays with high bound > 255 if elements of array are lower than 255 2011-04-26 00:17:14 +00:00
ncon.pas * Improvements to Dispatch call handling: 2010-11-18 16:17:50 +00:00
nflw.pas * nflw.pas: search for enumerators in helpers for records as well 2011-04-03 14:03:17 +00:00
ninl.pas Rebase to revision 16888 2011-02-07 20:30:48 +00:00
nld.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
nmat.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
nmem.pas * renamed is_class_or_interface_or_dispinterface_or_objc() into 2010-12-30 15:19:54 +00:00
nobj.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
nobjc.pas
node.pas compiler: add unary plus node, search for unary plus operator if a type cannot be handled by compiler, increase ppu version because of node types change 2010-12-26 12:19:28 +00:00
nopt.pas
nset.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
nstate.pas
nutils.pas compiler: handle dispinterfaces the same way as com interfaces because they are IDispatch descendants: increment/decrement they references in assignments and parameters passing by _AddRef, _Release 2011-01-13 03:38:45 +00:00
objcdef.pas Commit of a completely restructured helper implementation. Instead of changing objectdefs with odt_classhelper to odt_class, they'll have the odt_helper type assigned to and this will be kept. This also implies that the parent of a helper is its true parent while the extended type is set to a field in tobjectdef (extendeddef). 2011-02-20 11:41:55 +00:00
objcgutl.pas
objcutil.pas * renamed objcdef.addencodedtype to objcaddencodedtype for consistency 2010-12-19 19:37:47 +00:00
ogbase.pas * merge user sections support branch 2011-04-10 18:08:59 +00:00
ogcoff.pas + user section type 2011-03-20 15:42:28 +00:00
ogelf.pas + user section type 2011-03-20 15:42:28 +00:00
oglx.pas
ogmacho.pas + user section type 2011-03-20 15:42:28 +00:00
ogmap.pas
ognlm.pas added a segment table containing segments for symbols defined by linker script (needed for relocs) 2011-04-07 19:38:25 +00:00
optbase.pas
optcse.pas Rebase to revision 16888 2011-02-07 20:30:48 +00:00
optdead.pas
optdfa.pas
options.pas + -Sy on the command line is now equal to $T+, resolves #16160 2011-05-16 15:36:16 +00:00
optloop.pas
opttail.pas
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 * 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
parabase.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
paramgr.pas * improvement to r16050 for non-fixed stack targets: they never have to use 2011-03-18 18:32:02 +00:00
parser.pas Removed old search algorithm 2011-04-03 19:29:31 +00:00
pass_1.pas
pass_2.pas compiler: add unary plus node, search for unary plus operator if a type cannot be handled by compiler, increase ppu version because of node types change 2010-12-26 12:19:28 +00:00
pbase.pas compiler: change check for current in try_consume_unitsym - don't use current_unit in check because specialize code does not replace this variable (fixes bug #0015591) 2010-12-01 08:18:51 +00:00
pdecl.pas Rebase to revision 17236 2011-04-03 17:24:35 +00:00
pdecobj.pas compiler: allow class declarations inside records (1 part of issue #0019099) 2011-04-18 03:26:46 +00:00
pdecsub.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
pdecvar.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
pexports.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pexpr.pas + changes precedence of unary minus operator in mac and iso mode, resolves #17710 2011-05-17 19:53:55 +00:00
pinline.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
pmodules.pas * Reverted r17386 because object file is used for debugging on Darwin, bug #19322 2011-05-14 10:55:26 +00:00
pp.lpi Rebase to revision 17096 2011-03-09 16:29:47 +00:00
pp.pas
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcavr.lpi Rebase to revision 17096 2011-03-09 16:29:47 +00:00
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
ppx86_64.lpi
procinfo.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
pstatmnt.pas * don't omit stackframe on avr for assembler routines 2011-02-26 21:02:50 +00:00
psub.pas * fix regressions caused by r17496 2011-05-19 11:59:59 +00:00
psystem.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
ptconst.pas Rebase to revision 17096 2011-03-09 16:29:47 +00:00
ptype.pas compiler: reduce amount of hints and warnings 2011-04-20 02:58:52 +00:00
raatt.pas o patch by Jeppe Johansen to fix mantis #17472: 2010-12-24 15:54:39 +00:00
rabase.pas
rasm.pas
rautils.pas Several adjustments because virtual methods in helpers are just normal methods and a VMT isn't generated for them either. 2011-03-20 10:41:45 +00:00
README.txt
regvars.pas * Improvements of tprocinfo class: 2011-03-27 17:21:48 +00:00
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas compiler: replace MODESWTICH POINTERARITHMETICS with $POINTERMATH directive, disable pointer arithmetic in delphi mode by default (compatible with delphi), enable pointer arithmetic in fpc/objfpc modes as they had it enabled by default before, add has_pointer_math field to tpointerdef to allow pointer arithmetic with such pointer even if pointer math mode is off (delphi compatible) + tests 2010-12-29 03:24:28 +00:00
scanner.pas o several strings changed into ansistrings, resolves #19318, no compilation speed degrations measurable 2011-05-15 14:53:31 +00:00
script.pas
switches.pas
symbase.pas * symconst.pas: 2011-03-20 11:27:27 +00:00
symconst.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
symdef.pas compiler: copy extendeddef in tobjectdef.getcopy by Sven Barth 2011-04-25 02:06:04 +00:00
symnot.pas
symsym.pas Removing "current_syssym" again 2011-04-12 07:15:32 +00:00
symtable.pas * fixed crash when trying to index a record without a default property 2011-05-17 13:13:59 +00:00
symtype.pas * rebase to trunk@17295 2011-04-10 19:20:48 +00:00
symutil.pas
systems.pas + patch by Jeppe Johansen to support automatic interrupt table generation by using the interrupt directive with an offset. Not activated yet because it requires to change also the startup code of the different mcus. 2011-04-10 15:59:06 +00:00
tgobj.pas * avr stackframe generation improved 2011-02-27 21:11:40 +00:00
tokens.pas Rebase to revision 17306 2011-04-13 10:04:14 +00:00
verbose.pas o several strings changed into ansistrings, resolves #19318, no compilation speed degrations measurable 2011-05-15 14:53:31 +00:00
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