fpc/compiler
Jonas Maebe dd759ba906 * avoid some more "movq %xmm0, %xmm0" instructions by setting the subreg
of function results to R_SUBMMWHOLE (default was R_SUBMMNONE, which didn't
    match registers allocated later)

git-svn-id: trunk@15384 -
2010-06-04 22:28:50 +00:00
..
alpha * merged armthum branch 2009-10-04 09:03:44 +00:00
arm * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
avr * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
html
i386 * fixed ABI compliance for parameter passing and function returning on all 2010-06-03 20:08:50 +00:00
ia64 * enable node cse for all cpus as level 2 optimization 2010-01-17 12:28:28 +00:00
m68k * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
mips * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
msg * give a compile-time error when trying to define a short/ansistring typed constant 2010-05-08 10:57:39 +00:00
powerpc * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
powerpc64 * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
ppcgen * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
sparc * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
systems * set maxCrecordalign to 16 for all x86_64 platforms that follow the 2010-06-03 20:02:06 +00:00
utils * Write a warning to stderr that this utility is deprecated 2010-05-03 14:02:22 +00:00
vis * small typo corrections by Adriaan Van Os (mantis #15652) 2010-02-02 10:41:38 +00:00
x86 + several internalerrors in case things go wrong 2010-06-03 19:09:27 +00:00
x86_64 * avoid some more "movq %xmm0, %xmm0" instructions by setting the subreg 2010-06-04 22:28:50 +00:00
aasmbase.pas * initial version of internal Mach-O/i386 assembler by Dmitry Boyarintsev 2010-01-12 19:52:55 +00:00
aasmdata.pas o patch by Sergei Gorelkin which basically resolves #14308 (still misses some tests): 2009-12-13 10:03:30 +00:00
aasmsym.pas
aasmtai.pas + support for array of widechar typed constants (based on patch by 2010-03-30 19:45:50 +00:00
aggas.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
aopt.pas * fixed range errors in label bookkeeping that caused too much memory to be 2009-12-23 21:08:05 +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 * moved field definitions before method/property definitions (see mantis 2009-06-27 11:27:31 +00:00
aoptobj.pas * fixed range errors in label bookkeeping that caused too much memory to be 2009-12-23 21:08:05 +00:00
asmutils.pas o patch by Sergei Gorelkin which basically resolves #14308 (still misses some tests): 2009-12-13 10:03:30 +00:00
assemble.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
browcol.pas compiler: 2010-03-25 05:46:53 +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 compiler: revert r14244 2009-11-23 01:43:42 +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 * fixed 255 max path length assumptions left over from when the paths were 2010-03-09 19:44:07 +00:00
cg64f32.pas * renamed a_param_* to a_load_*_cgpara 2010-05-22 09:07:21 +00:00
cgbase.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
cgobj.pas * fixed ABI compliance for parameter passing and function returning on all 2010-06-03 20:08:50 +00:00
cgutils.pas * started to integrate the code of David Zhang's MIPS code from fpc-mips on sf into fpc trunk 2009-11-19 22:07:10 +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 + patch by Sven Barth to add native NT rtl support to the compiler, resolves #14886 2010-01-07 17:42:11 +00:00
compinnr.inc + support of compiler intrinsic sar* using a patch by Benjamin Rosseaux, resolves #15606 2010-01-31 16:47:01 +00:00
comprsrc.pas compiler, utils: pass tlb resources to fpcres 2010-03-11 03:01:24 +00:00
constexp.pas * fixed evaluation of "mod" operator for tconstexprint with signed operands 2010-01-01 22:50:35 +00:00
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 * more properties fixed 2009-11-12 18:11:10 +00:00
cresstr.pas o patch by Sergei Gorelkin which basically resolves #14308 (still misses some tests): 2009-12-13 10:03:30 +00:00
cstreams.pas
cutils.pas Merged revisions 13458-13596 via svnmerge from 2009-08-25 19:47:36 +00:00
dbgbase.pas Attempt to fix missing stabs definitions problem 2010-05-06 22:53:26 +00:00
dbgdwarf.pas * do not generate DW_AT_allocated info for dynarrays/ansi/unicodestrings 2010-05-16 21:39:41 +00:00
dbgstabs.pas Attempt to fix missing stabs definitions problem 2010-05-06 22:53:26 +00:00
defcmp.pas compiler: 2010-03-25 05:46:53 +00:00
defutil.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +00:00
export.pas + support for exporting Objective-C classes from dynamic libraries. It works 2009-09-27 15:40:52 +00:00
expunix.pas * handle i386/x86_64 solaris pic as for linux 2009-12-10 12:47:40 +00:00
finput.pas * changed InputFileBufSize from 32kb to 32kb+1byte, because the last 2009-08-22 20:20:11 +00:00
fmodule.pas compiler: allow hint modifier for 'unit' keyword (reason - delphi compatibility) + test 2010-01-22 07:15:09 +00:00
fpccrc.pas
fpcdefs.inc * several mips/mipsel related stuff fixed 2009-11-27 15:10:56 +00:00
fppu.pas compiler: allow hint modifier for 'unit' keyword (reason - delphi compatibility) + test 2010-01-22 07:15:09 +00:00
gendef.pas * enabled version and description directive for all windows 2009-07-25 22:06:37 +00:00
globals.pas * if *alignmin is set to a value > *alignmax, also increase *alignmax 2010-02-02 10:30:05 +00:00
globtype.pas compiler: 2010-03-25 05:46:53 +00:00
htypechk.pas * also give a "potential range error" hint with -CO in case the sizes 2010-03-24 21:21:19 +00:00
impdef.pas
import.pas
link.pas * moved field definitions before method/property definitions (see mantis 2009-06-27 11:27:31 +00:00
macho.pas * initial version of internal Mach-O/i386 assembler by Dmitry Boyarintsev 2010-01-12 19:52:55 +00:00
machoutils.pas * initial version of internal Mach-O/i386 assembler by Dmitry Boyarintsev 2010-01-12 19:52:55 +00:00
Makefile + mips(el) support in the compiler makefile 2009-12-08 19:57:16 +00:00
Makefile.fpc + mips(el) support in the compiler makefile 2009-12-08 19:57:16 +00:00
MPWMake
msgidx.inc * give a compile-time error when trying to define a short/ansistring typed constant 2010-05-08 10:57:39 +00:00
msgtxt.inc * give a compile-time error when trying to define a short/ansistring typed constant 2010-05-08 10:57:39 +00:00
nadd.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
nbas.pas * renamed is_refcounted_type() into is_managed_type(), because it also 2010-05-22 20:51:50 +00:00
ncal.pas * made internalerror unique 2010-06-03 18:38:43 +00:00
ncgadd.pas * enabled pushing (x87) fpu registers in case too few might be available 2009-12-05 22:53:27 +00:00
ncgbas.pas * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
ncgcal.pas * fixed checking validity of temporary parameter location that triggered 2010-06-04 15:20:30 +00:00
ncgcnv.pas * insert proper type conversions when optimising logical operations and 2010-02-12 18:13:08 +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 * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
ncginl.pas * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
ncgld.pas * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
ncgmat.pas * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
ncgmem.pas * fixed ABI compliance for parameter passing and function returning on all 2010-06-03 20:08:50 +00:00
ncgobjc.pas compiler: cleanup - remove unused variables 2009-12-29 06:14:52 +00:00
ncgopt.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
ncgrtti.pas compiler: start implementation of class constructors/destructors: parsing is ready but at the moment neither class constructors nor destructors are called - this is to be implemented 2010-04-03 09:14:12 +00:00
ncgset.pas * fixed in-code for big endian systems and smallsets < 4 bytes 2009-11-17 22:05:12 +00:00
ncgutil.pas * fixed ABI compliance for parameter passing and function returning on all 2010-06-03 20:08:50 +00:00
ncnv.pas * renamed is_refcounted_type() into is_managed_type(), because it also 2010-05-22 20:51:50 +00:00
ncon.pas * fixed storing/loading widestring constant nodes into/from ppu files 2010-03-14 13:27:00 +00:00
nflw.pas compiler: add class constructors, class destructors to the initfinal table as regular initialization/finalization sections (class constructors is still not striped away with the class) 2010-04-15 07:37:41 +00:00
ninl.pas compiler: 2010-03-25 05:46:53 +00:00
nld.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +00:00
nmat.pas * unified names of system_*/systems_* sets 2010-01-07 18:16:20 +00:00
nmem.pas * handle usage of generics type as class type correctly, resolves #16065 2010-04-21 20:19:18 +00:00
nobj.pas + support for "univ" in macpas mode: a parameter modifier that allows 2010-03-13 22:13:20 +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 * add type symbol names to -vp output (patch by Adriaan van Os, mantis 2010-02-13 16:47:37 +00:00
nopt.pas
nset.pas * handle multiple string labels in one case branch correctly, resolves #16130 2010-05-02 21:44:24 +00:00
nstate.pas
nutils.pas * also handle statement nodes in has_no_code() 2010-02-13 20:48:38 +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 * allow any kind of fields in Object Pascal classes that are passed to 2010-01-31 21:13:41 +00:00
objcutil.pas * allow any kind of fields in Object Pascal classes that are passed to 2010-01-31 21:13:41 +00:00
ogbase.pas * initial version of internal Mach-O/i386 assembler by Dmitry Boyarintsev 2010-01-12 19:52:55 +00:00
ogcoff.pas * unified names of system_*/systems_* sets 2010-01-07 18:16:20 +00:00
ogelf.pas * unified names of system_*/systems_* sets 2010-01-07 18:16:20 +00:00
oglx.pas
ogmacho.pas compiler: remove unused variables (reduce hints) 2010-03-30 04:30:41 +00:00
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 * handle short boolean evaluation correctly when doing node cse 2010-01-17 10:08:37 +00:00
optcse.pas * don't try to create cse on void resultdefs, resolves #16488 2010-06-03 16:10:02 +00:00
optdead.pas * first search for gnm and only then for nm 2008-12-12 13:03:27 +00:00
optdfa.pas * dfa fixes by Sergei Gorelkin, resolve #15402 2009-12-20 21:02:11 +00:00
options.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
optloop.pas * handle unrolling of for ... downto ... correctly, resolves #15668 2010-02-10 21:08:54 +00:00
opttail.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +00:00
optutils.pas + strength reduction for array accesses inside for loops 2008-09-26 18:23:31 +00:00
optvirt.pas * extra typecasts to more easily catch errors with -CR if some defs are 2010-01-11 20:17:26 +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 + extra sanity checks in TCGPara.ppuwrite() 2010-05-31 20:48:35 +00:00
paramgr.pas * when determining whether a temporary paraloc can be in a LOC_REGISTER, 2010-06-03 18:43:42 +00:00
parser.pas * support string constants > 255 chars 2010-01-24 09:28:46 +00:00
pass_1.pas * improved code generation by reducing the usage of unneeded temps due to incorrect 2009-09-22 19:24:25 +00:00
pass_2.pas * fix compilation with -dEXTDEBUG 2009-11-15 18:26:50 +00:00
pbase.pas * support string constants > 255 chars 2010-01-24 09:28:46 +00:00
pdecl.pas compiler: fix parsing and handling of typed constants declared inside classes/objects + tests 2010-03-30 07:09:44 +00:00
pdecobj.pas compiler: add class constructors, class destructors to the initfinal table as regular initialization/finalization sections (class constructors is still not striped away with the class) 2010-04-15 07:37:41 +00:00
pdecsub.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +00:00
pdecvar.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +00:00
pexports.pas * support string constants > 255 chars 2010-01-24 09:28:46 +00:00
pexpr.pas compiler: fix nested type typecast (issue #0016222) 2010-04-09 17:10:52 +00:00
pinline.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +00:00
pmodules.pas compiler: add class constructors, class destructors to the initfinal table as regular initialization/finalization sections (class constructors is still not striped away with the class) 2010-04-15 07:37:41 +00:00
pp.lpi + support of compiler intrinsic sar* using a patch by Benjamin Rosseaux, resolves #15606 2010-01-31 16:47:01 +00:00
pp.pas + FPC_ARMEB and CPUARMEB similiar to FPC_ARMEL and CPUARMEL 2009-03-17 13:43:24 +00:00
ppc68k.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppc.cfg
ppc.conf
ppc.dof
ppcarm.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcavr.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcmipsel.lpi Adds mipsel lazarus project 2009-12-07 13:04:05 +00:00
ppcppc.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppcsparc.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
ppheap.pas
ppu.pas * fixed ABI compliance for parameter passing and function returning on all 2010-06-03 20:08:50 +00:00
ppx86_64.lpi * lpi version increased 2009-07-19 18:12:57 +00:00
procinfo.pas * the compiler now explicitly keeps track of the minimally guaranteed 2009-02-08 13:00:24 +00:00
pstatmnt.pas * make nested comment warning go away 2010-05-02 19:24:15 +00:00
psub.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +00:00
psystem.pas + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +00:00
ptconst.pas * fixed comment 2010-05-13 18:18:33 +00:00
ptype.pas * removed "and not is_class()" condition from is_managed_type(), because 2010-05-22 21:28:24 +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 + "CExtended" type that is the same as "extended", but conforming to the 2010-02-14 13:45:58 +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 o added ARM VPFv2/VFPv3 support: 2009-12-03 22:46:30 +00:00
scandir.pas compiler: 2010-03-25 05:46:53 +00:00
scanner.pas compiler: remove unused variables (reduce hints) 2010-03-30 04:30:41 +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 fpc: compiler: 2010-01-27 06:59:58 +00:00
symbase.pas --WARNING: start build process with FPC 2.2.4; won't work when 2009-07-09 20:48:28 +00:00
symconst.pas compiler: start implementation of class constructors/destructors: parsing is ready but at the moment neither class constructors nor destructors are called - this is to be implemented 2010-04-03 09:14:12 +00:00
symdef.pas * changed tprocdef.funcretloc[] from a tlocation into a tcgpara so it can 2010-05-30 21:12:57 +00:00
symnot.pas
symsym.pas compiler: 2010-03-25 05:46:53 +00:00
symtable.pas * fixed ABI compliance for parameter passing and function returning on all 2010-06-03 20:08:50 +00:00
symtype.pas compiler: add enumsymtable case to FindUnitSymtable helper 2010-03-28 21:54:33 +00:00
symutil.pas
systems.pas * initial version of internal Mach-O/i386 assembler by Dmitry Boyarintsev 2010-01-12 19:52:55 +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 + Objective-C category support (old and new ABI, both external and 2009-11-16 00:12:08 +00:00
verbose.pas * force always printing absolute paths when using -vb (mantis #15783) 2010-03-10 10:04:51 +00:00
version.pas * version 2.5.1 2009-08-13 21:16:05 +00:00
widestr.pas * fixed storing/loading widestring constant nodes into/from ppu files 2010-03-14 13:27:00 +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 * also recompile a unit if class/object definitions in indirectly used 2009-12-30 14:03:31 +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