fpc/compiler
sergei 179586f589 + SEH support for Win32. Enable by cycling with OPT=-dTEST_WIN32_SEH.
Although basic things work (no regressions in test suite, also with TEST_OPT=-O2), there are some secondary issues/TODOs:
- Exception frame around PASCALMAIN is not properly removed in DLLs
- No stack traces yet
- Stack overallocated in finalizer procedures, their entry/exit code needs cleanup
- Signals unit is probably completely broken.

git-svn-id: trunk@26225 -
2013-12-12 12:43:46 +00:00
..
aarch64 Implement support for saving and restoring address registers. 2013-10-05 21:43:42 +00:00
alpha
arm Changed debug information to dwarf for ARM_embedded, and set local minimum alignment to 4. 2013-12-08 16:50:15 +00:00
avr * 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
generic
html
i386 + SEH support for Win32. Enable by cycling with OPT=-dTEST_WIN32_SEH. 2013-12-12 12:43:46 +00:00
i8086 + enabled the use of the DIV/IDIV instruction for 16-bit div/mod on i8086 2013-11-11 22:34:41 +00:00
ia64
jvm * 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
m68k enabled hardware mul reg, reg codepath for ColdFire too, accelerates tfloattostr test (thus some of the SoftFPU code) by a magnitude... 2013-10-13 21:36:24 +00:00
mips * MIPS: emit PIC-friendly instruction sequences instead of "J" when fixing up branches outside of 128K range. Resolves #25399. 2013-12-11 10:56:07 +00:00
msg compiler: 2013-10-08 04:56:42 +00:00
powerpc * 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
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 * 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
sparc * 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
systems Changed debug information to dwarf for ARM_embedded, and set local minimum alignment to 4. 2013-12-08 16:50:15 +00:00
utils * ppudump: Output the "default" option for properties. 2013-12-03 14:31:33 +00:00
vis
x86 + SEH support for Win32. Enable by cycling with OPT=-dTEST_WIN32_SEH. 2013-12-12 12:43:46 +00:00
x86_64 * Changed function create_pd into method of ttryfinallynode, so it can be reused for Win32 SEH and, in the future, for DWARF-based exception handling on other targets. 2013-12-12 08:38:06 +00:00
aasmbase.pas
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 * fixed indentation 2013-11-10 21:25:34 +00:00
aggas.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
agjasmin.pas
aopt.pas
aoptbase.pas * simplified RegInInstruction() and fixed range errors 2013-11-06 10:46:22 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas * check if the pointer is really assigned when trying to remove unneeded jumps 2013-10-27 16:47:34 +00:00
asmutils.pas
assemble.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
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 * 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
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 * fold mov/lea/mov as well if possible 2013-11-01 19:01:29 +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 * specify AT_DATA in all references to the tobjectdef.vmt_mangledname symbol. 2013-10-15 18:56:27 +00:00
cgutils.pas
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
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 * i8086 medium model fixes in Tresourcestrings.CreateResourceStringData 2013-08-18 21:18:22 +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
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
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
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 * disable 32 bit operation optimization for powerpc64 2013-11-06 21:11:08 +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 * 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
globstat.pas
globtype.pas * enable node dfa for life information with -O3: 2013-12-01 17:02:19 +00:00
hlcg2ll.pas - removed duplicate thlcg2ll a_label method (it's declared the same in 2013-11-10 21:32:39 +00:00
hlcgobj.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
htypechk.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
impdef.pas
import.pas
ldscript.pas
link.pas * Changed linking infrastructure to look like assembler one: 2013-08-18 12:01:21 +00:00
macho.pas
machoutils.pas
Makefile * regenerated fpcmake makefiles after r25642 2013-10-05 10:11:27 +00:00
Makefile.fpc * make insdatx86 now also refereshes the i8086 ins files 2013-09-28 21:08:21 +00:00
MPWMake
msgidx.inc compiler: 2013-10-08 04:56:42 +00:00
msgtxt.inc compiler: 2013-10-08 04:56:42 +00:00
nadd.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
nbas.pas * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
ncal.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
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 * 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
ncgcal.pas Implement volatile address registers. Fixes quite some tests, but also breaks others... (overall more are fixed than are broken :) ) 2013-10-03 20:33:11 +00:00
ncgcnv.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
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 * 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
ncgld.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
ncgmat.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
ncgmem.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
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 * Factored reusable (SEH-related) piece of code into separate procedure. 2013-12-01 11:47:12 +00:00
ncgvmt.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
ncnv.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
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 * Changed function create_pd into method of ttryfinallynode, so it can be reused for Win32 SEH and, in the future, for DWARF-based exception handling on other targets. 2013-12-12 08:38:06 +00:00
ngenutil.pas + -CTinitlocals switch for the JVM that initialises all local variables 2013-08-29 22:21:23 +00:00
ngtcon.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
ninl.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
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 * tmoddivnode.firstoptimize improvements/fixes: 2013-10-28 15:55:13 +00:00
nmem.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
nobj.pas
nobjc.pas
node.pas * mark the node which is the entry of the user code with a flag 2013-11-10 20:20:27 +00:00
nopt.pas * when concatenating ansistrings, do not map CP_NONE (rawbytestring) to 2013-07-19 16:33:14 +00:00
nset.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
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 * 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
objcutil.pas
ogbase.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
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 * 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
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
optbase.pas * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
optconstprop.pas + constant propagation, based on a patch by Jeppe Johansen 2013-11-06 21:10:15 +00:00
optcse.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
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 + dead store elimination, based on a patch by Jeppe Johansen 2013-11-06 21:10:26 +00:00
optdfa.pas * as nodes can appear directly in statements for checking of type conversions 2013-12-08 09:05:28 +00:00
options.pas + SEH support for Win32. Enable by cycling with OPT=-dTEST_WIN32_SEH. 2013-12-12 12:43:46 +00:00
optloop.pas * make use of the noreturn directive for internalerror 2013-11-10 09:01:03 +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 * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +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
paramgr.pas * Return dynamic arrays in parameter, this was the only managed type still returned in register. Returning managed types in registers requires catching and re-raising exceptions at callee side in order to finalize result and avoid memory leaks. While such behavior makes little difference with generic setjmp-based exception handling, it becomes very inefficient as SEH-styled exception handling is being introduced. 2013-12-04 13:43:22 +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 * 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
pdecobj.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
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 * 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
pexports.pas
pexpr.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
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 * 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
pp.lpi * project file updated for newer lazarus versions 2013-10-06 13:13:53 +00:00
pp.pas
pparautl.pas * add $parentfp as a first parameter on i8086, instead of last. This makes 2013-10-18 21:37:06 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.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
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 * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
psystem.pas * also load the methodpointer type for managed VM types. It's required 2013-09-24 23:57:21 +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 * 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
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
rgbase.pas
rgobj.pas Print aX or aregX for address registers if DEBUG_REGISTERLIFE is defined. 2013-10-05 21:48:28 +00:00
scandir.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
scanner.pas * fixed compilation with -Oodfa on big endian systems 2013-12-02 13:42:48 +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 * 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
symnot.pas
symsym.pas * fixed some bugs in the camelCase conversion performed on the JVM target by 2013-10-23 22:44:45 +00:00
symtable.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
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 * restores atari support/rtl partially 2013-10-06 19:36:59 +00:00
systems.pas * Use mips everywhere for big endian mips target 2013-11-07 21:38:43 +00:00
tgobj.pas
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
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