fpc/compiler
paul 915c412ae3 compiler: generate debug info for record methods:
- extended write_symtable_procdefs to handle record definitions
  - fix stabs info generator to use prefixed symbol names for record methods, also handle records static symbols the same way as for object types
  - fix dwarf info record generation: add visibility info and write methods, also prefix record members the same way as object members

git-svn-id: branches/paul/extended_records@16570 -
2010-12-16 06:12:05 +00:00
..
alpha
arm compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
avr * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
html
i386 compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
ia64 * enable node cse for all cpus as level 2 optimization 2010-01-17 12:28:28 +00:00
m68k compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
mips compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
msg compiler: partly revert r16560 and disable (at least temporary) constructors in records 2010-12-16 03:37:16 +00:00
powerpc * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
powerpc64 * another compilation failure due to cleanup of changes to r16272 2010-10-31 18:37:49 +00:00
ppcgen compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
sparc compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
systems * reverted the rtl patches from r14184, because they cause an endless 2010-11-24 15:33:29 +00:00
utils compiler: move objectoptions to tabstractrecorddef because it will be needed for records too 2010-12-11 06:48:08 +00:00
vis * small typo corrections by Adriaan Van Os (mantis #15652) 2010-02-02 10:41:38 +00:00
x86 * don't overwrite register variables when evaluating <=/>= expressions with 2010-11-22 12:58:08 +00:00
x86_64 compiler: fix compilation problems caused by tprocdef._class -> tprocdef.struct rename which was found by make fullcycle 2010-12-10 06:50:58 +00:00
aasmbase.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
aasmdata.pas * changed r16080 so that global debug labels are only created on linux 2010-10-10 13:39:46 +00:00
aasmsym.pas
aasmtai.pas * moved the initialisation of the nodetree and tai class reference constants 2010-10-09 18:52:22 +00:00
aggas.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
aopt.pas
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas
asmutils.pas
assemble.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
browcol.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
bsdcompile
catch.pas
ccharset.pas
cclasses.pas * fixed growing a tbitset when adding an element whose index equals the 2010-07-18 21:58:47 +00:00
cfidwarf.pas * fix error in cfidwarf rev 16062 for non-windows systems 2010-09-30 07:41:19 +00:00
cfileutl.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
cg64f32.pas * renamed a_param_* to a_load_*_cgpara 2010-05-22 09:07:21 +00:00
cgbase.pas + TSubRegisterSet definition forgotten to commit in r15952 2010-09-09 08:48:02 +00:00
cgobj.pas * implementation of bit scan intrinsics by Richard Vida, resolves #17592 2010-10-16 15:03:30 +00:00
cgutils.pas * moved use_fixed_stack from cgutils to a method in paramgr so it can 2010-09-26 21:24:14 +00:00
cmsgs.pas compiler: remove unused variables (reduce hints) 2010-03-30 04:30:41 +00:00
comphook.pas fpc: compiler: 2010-01-27 06:59:58 +00:00
compiler.pas
compinnr.inc * implementation of bit scan intrinsics by Richard Vida, resolves #17592 2010-10-16 15:03:30 +00:00
comprsrc.pas compiler, utils: pass tlb resources to fpcres 2010-03-11 03:01:24 +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
cutils.pas
dbgbase.pas compiler: generate debug info for record methods: 2010-12-16 06:12:05 +00:00
dbgdwarf.pas compiler: generate debug info for record methods: 2010-12-16 06:12:05 +00:00
dbgstabs.pas compiler: generate debug info for record methods: 2010-12-16 06:12:05 +00:00
defcmp.pas * finer grained convert levels for strings, prefers widestring<->unicodestring over other conversions, resolves #18075 2010-11-28 10:05:09 +00:00
defutil.pas * defutil.pas: added UnicodeString to automatable types, fixes compilation of webtbs/tw2649.pp after r16360. However it requires RTL support similar to one for AnsiString to be complete. 2010-11-21 18:10:11 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas compiler: change find_module_from_symtable to support not only unit symtables but also other symtables with valid moduleid (fixes bug #0016090) 2010-12-01 04:33:47 +00:00
fpccrc.pas
fpcdefs.inc
fppu.pas * fixed searching for the 8-character variant of already compiled 2010-11-12 12:10:41 +00:00
gendef.pas
globals.pas compiler: 2010-12-13 07:03:53 +00:00
globtype.pas compiler: 2010-12-13 07:03:53 +00:00
htypechk.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
impdef.pas
import.pas
link.pas
macho.pas
machoutils.pas
Makefile + i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and 2010-09-29 21:56:47 +00:00
Makefile.fpc * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
MPWMake
msgidx.inc compiler: partly revert r16560 and disable (at least temporary) constructors in records 2010-12-16 03:37:16 +00:00
msgtxt.inc compiler: partly revert r16560 and disable (at least temporary) constructors in records 2010-12-16 03:37:16 +00:00
nadd.pas * moved the initialisation of the nodetree and tai class reference constants 2010-10-09 18:52:22 +00:00
nbas.pas * moved the initialisation of the nodetree and tai class reference constants 2010-10-09 18:52:22 +00:00
ncal.pas compiler: partly revert r16560 and disable (at least temporary) constructors in records 2010-12-16 03:37:16 +00:00
ncgadd.pas
ncgbas.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
ncgcal.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
ncgcnv.pas * convert LOC_FLAGS/LOC_JUMP to cbool value in bool_to_bool conversion, 2010-08-16 17:54:39 +00:00
ncgcon.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
ncgflw.pas * Safecall on linux/i386 now behaves like cdecl plus hidden exception support. 2010-08-27 19:07:22 +00:00
ncginl.pas * implementation of bit scan intrinsics by Richard Vida, resolves #17592 2010-10-16 15:03:30 +00:00
ncgld.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
ncgmat.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
ncgmem.pas * Safecall on linux/i386 now behaves like cdecl plus hidden exception support. 2010-08-27 19:07:22 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
ncgset.pas
ncgutil.pas - Revert micro-exe mode for now. 2010-10-15 16:49:48 +00:00
ncnv.pas * patches from Aleksa Todorovic for #15480 to improve error reporting, does not resolve #15480 2010-11-01 20:24:01 +00:00
ncon.pas * Improvements to Dispatch call handling: 2010-11-18 16:17:50 +00:00
nflw.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
ninl.pas * don't convert second argument of inc/dec to sinttype when inc/dec are compiled with r+ or q+, fixes code generation for inc(<int64>,<int64>); on 32 bit targets 2010-11-01 21:30:14 +00:00
nld.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
nmat.pas * moved the initialisation of the nodetree and tai class reference constants 2010-10-09 18:52:22 +00:00
nmem.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
nobj.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
nobjc.pas * do not crash but give a fatal error when using Objective-Pascal code 2010-04-24 12:49:16 +00:00
node.pas * when simplifying ordinal expressions during inlining, keep the resultdef 2010-10-07 15:08:52 +00:00
nopt.pas
nset.pas * moved the initialisation of the nodetree and tai class reference constants 2010-10-09 18:52:22 +00:00
nstate.pas
nutils.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
objcdef.pas * allow any kind of fields in Object Pascal classes that are passed to 2010-01-31 21:13:41 +00:00
objcgutl.pas * put the RTTI for optional protocol methods in the correct section for 2010-06-21 15:07:29 +00:00
objcutil.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
ogbase.pas * Partial fix for i386 linux PIC code generation 2010-10-05 08:07:15 +00:00
ogcoff.pas * ogcoff.pas: 2010-11-26 23:46:49 +00:00
ogelf.pas * i386 _GLOBAL_OFFSET_TABLE_ label special treatment moved to taicpu.pass2 2010-10-07 14:14:25 +00:00
oglx.pas
ogmacho.pas + i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and 2010-09-29 21:56:47 +00:00
ogmap.pas
optbase.pas
optcse.pas + apply cse on load parent frame pointer nodes 2010-09-27 20:54:34 +00:00
optdead.pas
optdfa.pas
options.pas o patch by Graeme Geldenhuys 2010-11-01 20:41:56 +00:00
optloop.pas * handle unrolling of for ... downto ... correctly, resolves #15668 2010-02-10 21:08:54 +00:00
opttail.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
optutils.pas
optvirt.pas - removed tstoreddef.reset() and overrides, and the associated 2010-06-30 19:00:40 +00:00
owar.pas
owbase.pas
parabase.pas + Workaround for IE2010053115 internal errors while writing PPU with explicitparaloc functions. 2010-10-13 19:58:44 +00:00
paramgr.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
parser.pas * patch by Aleksa Todorovic which adds the ability to reference current generic class. Each reference to current generic class is "translated" to appropriate specialization of that generic class. There are two tests as part of the patch to test that it works. The patch, also, rejects declaring generic inside another generic. 0010479 is easy to implement with this patch applied, resolves #11777 2010-11-24 21:57:41 +00:00
pass_1.pas * when simplifying ordinal expressions during inlining, keep the resultdef 2010-10-07 15:08:52 +00:00
pass_2.pas
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 compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pdecobj.pas compiler: implement properties in records: 2010-12-11 08:42:26 +00:00
pdecsub.pas compiler: partly revert r16560 and disable (at least temporary) constructors in records 2010-12-16 03:37:16 +00:00
pdecvar.pas compiler: 2010-12-13 07:03:53 +00:00
pexports.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pexpr.pas compiler: implement properties in records: 2010-12-11 08:42:26 +00:00
pinline.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
pmodules.pas compiler: start parsing of record constructors and destructors: 2010-12-11 07:31:27 +00:00
pp.lpi - NaN floating point constants do not anymore cause an error when $Q or $R is active (resolves #16315 and #14757) 2010-08-10 19:05:13 +00:00
pp.pas
ppc68k.lpi
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi
ppcavr.lpi
ppcmipsel.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas compiler: move objectoptions to tabstractrecorddef because it will be needed for records too 2010-12-11 06:48:08 +00:00
ppx86_64.lpi
procinfo.pas * moved use_fixed_stack from cgutils to a method in paramgr so it can 2010-09-26 21:24:14 +00:00
pstatmnt.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
psub.pas compiler: a trial to implement record constructor 2010-12-13 06:39:29 +00:00
psystem.pas compiler: 2010-12-08 06:58:48 +00:00
ptconst.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
ptype.pas compiler: partly revert r16560 and disable (at least temporary) constructors in records 2010-12-16 03:37:16 +00:00
raatt.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
rabase.pas
rasm.pas
rautils.pas compiler: implement record methods and class methods: 2010-12-09 02:24:46 +00:00
README.txt
regvars.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
rescmn.pas
rgbase.pas
rgobj.pas * Fixed spell error revealed by lintian. 2010-10-06 20:33:57 +00:00
scandir.pas - NaN floating point constants do not anymore cause an error when $Q or $R is active (resolves #16315 and #14757) 2010-08-10 19:05:13 +00:00
scanner.pas * reset lookahead char as well when resetting the scanner, resolves #17688 2010-10-24 21:26:30 +00:00
script.pas
switches.pas fpc: compiler: 2010-01-27 06:59:58 +00:00
symbase.pas
symconst.pas * fix bootstrapping with 2.4.2 2010-11-27 21:28:45 +00:00
symdef.pas compiler: start parsing of record constructors and destructors: 2010-12-11 07:31:27 +00:00
symnot.pas
symsym.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
symtable.pas compiler: remove unneeded checks and typecasting caused by move of objectoptions into tabstractrecorddef 2010-12-11 07:00:46 +00:00
symtype.pas compiler: add enumsymtable case to FindUnitSymtable helper 2010-03-28 21:54:33 +00:00
symutil.pas
systems.pas o patch by Graeme Geldenhuys 2010-11-01 20:41:56 +00:00
tgobj.pas
tokens.pas * Merged XPCom branch into trunk, added support for constref and changed 2010-10-17 20:58:22 +00:00
verbose.pas * force always printing absolute paths when using -vb (mantis #15783) 2010-03-10 10:04:51 +00:00
version.pas
widestr.pas * fixed storing/loading widestring constant nodes into/from ppu files 2010-03-14 13:27:00 +00:00
wpo.pas
wpobase.pas - removed tstoreddef.reset() and overrides, and the associated 2010-06-30 19:00: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