fpc/compiler
florian 0a7b795744 * fix for the regressions caused by r27417
git-svn-id: trunk@27433 -
2014-04-01 19:34:21 +00:00
..
aarch64 + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
alpha + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
arm * ARM: Implemented floating-point negation and abs() for softfloat using integer instructions. Fixes webtbs/tw4534.pp, and also yields much faster code than existing implementation. 2014-03-31 15:03:15 +00:00
avr + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
generic + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
html
i386 * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
i8086 + proper i8086 Seg() implementation (i.e. support segments other than DS) 2014-04-01 19:11:39 +00:00
ia64 + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
jvm + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
m68k + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
mips + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
msg * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
powerpc + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
powerpc64 + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
ppcgen * completed thlcgobj.location_force_fpureg(), use it everywhere and removed 2014-03-10 09:01:05 +00:00
sparc + added class reference types of the architecture-specific t*def/t*sym 2014-03-30 21:04:32 +00:00
systems * add 'option quiet' to wlink to suppress its info messages 2014-03-24 18:13:29 +00:00
utils * move fpcsubst to utils/ because it uses classes 2014-03-30 11:45:51 +00:00
vis + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
x86 + symx86 unit, forgot to commit (part of r27397) 2014-03-30 22:03:55 +00:00
x86_64 * Win64 apparently expects records with single field of floating-point type to be passed the same way as that only field, i.e. in xmm register. Fixes tests/cg/tcalext6.pp. 2014-04-01 17:04:47 +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 + Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386. 2014-02-26 14:54:47 +00:00
aggas.pas * partially merged the mips-embedded branch of Michael Ring: 2014-03-19 21:25:38 +00:00
agjasmin.pas * moved jvm tprocdef name mangling to jvm-specific descendant class 2014-03-30 21:04:29 +00:00
aopt.pas * honour -Oonopeephole 2014-03-11 23:18:58 +00:00
aoptbase.pas * simplified RegInInstruction() and fixed range errors 2013-11-06 10:46:22 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas Rerun peephole optimizers on the whole block 2014-01-31 23:21:52 +00:00
asmutils.pas
assemble.pas include exec on Amiga only in the implementation part 2014-03-09 23:05:13 +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 * eliminate classes unit from the compiler by copying an array of string based 2014-03-30 12:03:10 +00:00
cfidwarf.pas
cfileutl.pas Print out command line before running it with -vx option 2014-01-12 23:06:19 +00:00
cg64f32.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
cgbase.pas * x86: Cleaned out addr_far,addr_far_ref used to encode far calls/jumps. NASM (and FPC x86 assembler based on it) already have opsize=S_FAR for this purpose. 2014-03-08 22:54:43 +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 * moved joinreg64 from cg64f32 to cgobj (joinreg128 is also declared 2014-03-16 11:24:36 +00:00
cgutils.pas * moved jvm-specific tarrayreftype from cgutils to jvm/cpubase 2014-03-16 11:24:21 +00:00
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 * updated address of FSF (mantis #24646, patch by Alexey Svistunov) 2013-06-27 14:04:34 +00:00
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 compiler: remove RST writer 2014-01-19 04:40:41 +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 * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
defutil.pas * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
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 * Enabled safecall for mips. 2014-02-07 14:12:33 +00:00
fppu.pas * remove stale uses strutils; 2014-03-27 18:18:39 +00:00
gendef.pas
globals.pas * partially merged the mips-embedded branch of Michael Ring: 2014-03-19 21:25:38 +00:00
globstat.pas
globtype.pas Fix mipsel compilation by reinstalling rev27188 commit reverted in 27200 2014-03-28 13:51:47 +00:00
hlcg2ll.pas * avoid internal error if an empty record is assigned to a function result, resolves #25895 2014-03-21 16:31:57 +00:00
hlcgobj.pas + added method reference_reset_base with support for different pointer types to 2014-03-28 00:01:18 +00:00
htypechk.pas * Modified behavior of CExtended type in overload selection: it is made more compatible to Extended than to Double and Single. Also an Extended parameter selects a CExtended overload (if available) instead of Double. 2014-03-30 07:31:58 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * pass the -b option to wlib to avoid creating .bak files 2014-03-24 17:35:11 +00:00
macho.pas
machoutils.pas
Makefile * mipsel-android: Regenerated makefiles. From now the mipsel-android target can be built and used. 2014-02-07 12:37:17 +00:00
Makefile.fpc + OPTNEW Makefile parameter: when running a native cycle, this allows to pass a parameter only to the new generated compiler 2014-01-18 10:19:16 +00:00
MPWMake
msgidx.inc * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
msgtxt.inc * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
nadd.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nbas.pas * take care of dyn. arrays in cse 2014-02-08 21:47:46 +00:00
ncal.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +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 * 16-bit and 8-bit ALU fixes in tcgtempdeletenode.pass_generate_code 2013-12-23 14:09:28 +00:00
ncgcal.pas * moved ncgutil.maybechangeloadnodereg() to hlcg.maybe_change_load_node_reg() 2014-03-16 11:24:40 +00:00
ncgcnv.pas * fix for the regressions caused by r27417 2014-04-01 19:34:21 +00:00
ncgcon.pas * fixed tcgstringconstnode.pass_generate_code for i8086 far data memory models 2014-03-28 22:34:30 +00:00
ncgflw.pas * moved ncgutil.maybechangeloadnodereg() to hlcg.maybe_change_load_node_reg() 2014-03-16 11:24:40 +00:00
ncginl.pas * fixed tcginlinenode.second_SizeOfTypeOf for i8086 far data memory models by 2014-03-28 00:07:39 +00:00
ncgld.pas * fixed the handling of const resourcestrings in the i8086 far data memory models 2014-03-30 16:30:51 +00:00
ncgmat.pas do not generate zero divisor checks if a divisor is a constant 2014-03-10 18:16:17 +00:00
ncgmem.pas * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +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 * i8086 far data memory model fix for except_buf_size 2014-03-30 12:00:20 +00:00
ncgvmt.pas * removed ifdef jvm from ncgvmt 2014-03-16 11:24:44 +00:00
ncnv.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
ngenutil.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
ngtcon.pas * set the code page of rawbytestring typed constants to the same value as 2014-01-05 18:26:10 +00:00
ninl.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nld.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nmat.pas * properly simplify not(<const. cbool>), resolves #25255 2014-02-16 20:20:58 +00:00
nmem.pas * isolated segment-related functionality of tabsolutevarsym into i386/i8086- 2014-03-30 15:42:53 +00:00
nobj.pas * moved jvm tprocdef name mangling to jvm-specific descendant class 2014-03-30 21:04:29 +00:00
nobjc.pas
node.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
nopt.pas * when concatenating ansistrings, do not map CP_NONE (rawbytestring) to 2013-07-19 16:33:14 +00:00
nset.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +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 * changed some random data label names to match the label names outputted by 2013-12-31 00:28:46 +00:00
objcutil.pas
ogbase.pas + Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386. 2014-02-26 14:54:47 +00:00
ogcoff.pas * x86_64-win64: fixed handling of RELOC_RELATIVE_1..RELOC_RELATIVE_5 COFF relocations, they were off by 4 bytes, causing failure in tests/test/tcalext.pp. 2014-04-01 16:26:56 +00:00
ogelf.pas + Write 'non-executable stack' marker to object files also on FreeBSD (verified for version 9.0 for i386). 2014-02-10 05:46:46 +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 * propagate constants into the header of a for loop 2013-12-31 13:16:09 +00:00
optcse.pas * do cse on all const. intregable expressions 2014-03-23 20:11:15 +00:00
optdead.pas * eliminate classes unit from the compiler by copying an array of string based 2014-03-30 12:03:10 +00:00
optdeadstore.pas * be more careful when removing dead stores 2013-12-28 20:19:42 +00:00
optdfa.pas * take care of tempinitcode when creating def information for tempcreatenodes 2014-01-25 09:40:51 +00:00
options.pas * partially merged the mips-embedded branch of Michael Ring: 2014-03-19 21:25:38 +00:00
optloop.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
opttail.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
optutils.pas * set successor node for load nodes as well, they can be generated when inlining 2013-12-28 20:19:38 +00:00
optvirt.pas + support for nested classes in the WPO devirtualisation and VMT 2014-03-16 19:46:17 +00:00
owar.pas
owbase.pas
parabase.pas
paramgr.pas * use voidpointer.size instead of sizeof(pint) in tparamanager.push_size in 2014-03-02 22:51:37 +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 * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
pdecobj.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pdecsub.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pdecvar.pas * isolated segment-related functionality of tabsolutevarsym into i386/i8086- 2014-03-30 15:42:53 +00:00
pexports.pas
pexpr.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pgenutil.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +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 + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pp.lpi + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pp.pas
pparautl.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
ppc68k.lpi
ppc8086.lpi + symx86.pas added to ppc8086.lpi 2014-03-31 09:24:55 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * moved po_has_inlininginfo from procoptions to procimploptions so that 2014-03-19 21:53:10 +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 + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
psub.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
psystem.pas * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +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 + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +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 * never alias/coalesce cpu registers that are not usable by the register 2014-03-11 23:18:45 +00:00
scandir.pas * also check for targets not supporting -gc/checkpointer functionality in 2014-03-13 20:42:18 +00:00
scanner.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +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 * moved po_has_inlininginfo from procoptions to procimploptions so that 2014-03-19 21:53:10 +00:00
symcreat.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
symdef.pas * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
symnot.pas
symsym.pas * moved all jvm-specific code from symsym to jvm/symcpu 2014-03-30 16:55:09 +00:00
symtable.pas * instantiate the cpu-specific version of all defs/syms when loading them 2014-03-30 16:55:06 +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 * partially merged the mips-embedded branch of Michael Ring: 2014-03-19 21:25:38 +00:00
systems.pas * partially merged the mips-embedded branch of Michael Ring: 2014-03-19 21:25:38 +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 * add support for Latin-2 character sets (ISO & IBM) 2014-03-27 22:48:13 +00:00
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