fpc/compiler
Jonas Maebe 344acef9b5 * separate tracking the def of a temp and whether or not it needs to be
finalised (for llvm, we always keep track of the def)

git-svn-id: branches/hlcgllvm@28485 -
2014-08-19 20:22:34 +00:00
..
aarch64 * grouped all tai_real* types into a single tai_realconst type, 2014-07-01 16:29:58 +00:00
alpha * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
arm * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
avr * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
generic Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
html
i386 * moved all g_exception_*() methods to hlcgobj and cleaned them up (no more 2014-08-19 20:22:24 +00:00
i8086 * separate tracking the def of a temp and whether or not it needs to be 2014-08-19 20:22:34 +00:00
ia64 Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
jvm * separate tracking the def of a temp and whether or not it needs to be 2014-08-19 20:22:34 +00:00
llvm * separate tracking the def of a temp and whether or not it needs to be 2014-08-19 20:22:34 +00:00
m68k * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
mips * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
msg * added description for option @ and missing bracket at the end of list for -P 2014-07-08 22:33:00 +00:00
powerpc * synchronised with r28168 of trunk 2014-07-05 21:30:28 +00:00
powerpc64 * synchronised with r28168 of trunk 2014-07-05 21:30:28 +00:00
ppcgen * channged gettemptyped() into gethltemp() call, as gettemptyped() is only 2014-08-19 20:22:29 +00:00
sparc * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
systems * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
utils + added an i8086 specific boolean property is_huge to the tarraydef. For now it 2014-07-26 13:27:46 +00:00
vis + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
x86 * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
x86_64 * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
aasmbase.pas * synchronised with r28168 of trunk 2014-07-05 21:30:28 +00:00
aasmcnst.pas - removed tck_simple_procvar2proc, instead use 2014-08-19 20:22:11 +00:00
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 * null-terminate tai_strings loaded from ppus 2014-07-02 17:24:53 +00:00
aggas.pas * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
agjasmin.pas * grouped all tai_real* types into a single tai_realconst type, 2014-07-01 16:29:58 +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 * when updating registers in RegUsedAfterInstruction, new reg. allocs should be ignored 2014-05-01 19:20:32 +00:00
assemble.pas + basic support infrastructure in the llvm assembler writer to write out 2014-07-01 16:30:19 +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 * reimplemented r28329 in a different way, as suggested by Jonas 2014-08-07 19:36:52 +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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
cghlcpu.pas * give an internalerror when calling cg.makeregsize() for a high level 2014-08-12 18:59:16 +00:00
cgobj.pas * moved all g_exception_*() methods to hlcgobj and cleaned them up (no more 2014-08-19 20:22:24 +00:00
cgutils.pas * calc_divconst_magic_unsigned: explicitly limit the shift amount to number of bits of target platform. This happens implicitly only on x86, on other 32-bit targets shifting by more than 31 bits calculates as zero. 2014-06-16 17:05:01 +00:00
cmsgs.pas
comphook.pas
compiler.pas + basic llvm bitcode (textual format) writer: 2013-11-11 11:16:25 +00:00
compinnr.inc + support for FMA intrinsic: if there is no hardware support, the compiler throws an error. 2014-04-13 19:21:54 +00:00
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 * migrated the handling of ansi/unicodestring constants to the high level 2014-08-06 18:04:40 +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 * don't generate debug info for class fields in generic types 2014-06-10 19:05:10 +00:00
dbgdwarf.pas * grouped all tai_real* types into a single tai_realconst type, 2014-07-01 16:29:58 +00:00
dbgstabs.pas Do not consider ansi/wide/unicode strings as taggable for stabs 2014-04-22 22:32:14 +00:00
dbgstabx.pas Do not consider ansi/wide/unicode strings as taggable for stabs 2014-04-22 22:32:14 +00:00
defcmp.pas Added support for partial specialization. This should fix a few problems with generics, the tests for which will be added in the next days after I've verified them. 2014-06-05 20:05:05 +00:00
defutil.pas * is_farpointer and is_hugepointer moved from defutil to symcpu 2014-08-06 20:32:41 +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 * don't hard-code size of linebuf entries 2014-05-15 09:08:05 +00:00
fmodule.pas * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
fpccrc.pas
fpcdefs.inc * synchronised with r28168 of trunk 2014-07-05 21:30:28 +00:00
fppu.pas * i8086 small and tiny memory model ppus made incompatible. Rationale: 2014-04-10 16:31:06 +00:00
gendef.pas
globals.pas - removed get_jumpbuf_size/align, use rec_jmp_buf instead 2014-08-10 19:40:16 +00:00
globstat.pas
globtype.pas + added directive {$HUGEPOINTERARITHMETICNORMALIZATION} to control the 2014-07-04 14:43:46 +00:00
hlcg2ll.pas * moved all g_exception_*() methods to hlcgobj and cleaned them up (no more 2014-08-19 20:22:24 +00:00
hlcgobj.pas * separate tracking the def of a temp and whether or not it needs to be 2014-08-19 20:22:34 +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 - m68k: removed "-dNOOPT" at build time, enabling the branch optimizer. Not tested thoroughly, but it does not change compiler behavior unless "-O1" or higher is supplied at command line. 2014-06-25 09:03:48 +00:00
Makefile.fpc - m68k: removed "-dNOOPT" at build time, enabling the branch optimizer. Not tested thoroughly, but it does not change compiler behavior unless "-O1" or higher is supplied at command line. 2014-06-25 09:03:48 +00:00
MPWMake
msgidx.inc * added description for option @ and missing bracket at the end of list for -P 2014-07-08 22:33:18 +00:00
msgtxt.inc * added description for option @ and missing bracket at the end of list for -P 2014-07-08 22:33:18 +00:00
nadd.pas + automatically insert fma inlines into floating point code if possible and fastmath is activated 2014-08-11 20:50:21 +00:00
nbas.pas * changed the "laststatement" parameter of internalstatements() from "var" 2014-07-18 09:09:16 +00:00
ncal.pas + added support for nested procvars in the i8086 far data memory models 2014-05-22 23:44:09 +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 * renamed (hl)gettemptyped() to (hl)gettempmanaged() to better indicate the 2014-08-19 20:22:32 +00:00
ncgcal.pas * factored out the code for loading a procvar address, and fixed all used 2014-08-19 20:22:08 +00:00
ncgcnv.pas * use the correct destination def for loading a simple proc2procvar 2014-08-19 20:22:19 +00:00
ncgcon.pas * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
ncgflw.pas * converted tcgtryexceptnode.pass_generate_code() and 2014-08-19 20:22:27 +00:00
ncghlmat.pas * moved tjvmnotnode implementation to generic ncghlmat unit, and also use it 2014-08-10 19:39:55 +00:00
ncginl.pas * fixed the resultdef of length() intrinsic: it's ossinttype rather than 2014-08-12 18:59:13 +00:00
ncgld.pas * disable cg64/cg128 special cases for high level targets 2014-08-10 19:40:00 +00:00
ncgmat.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncgmem.pas * synchronised with r28168 of trunk 2014-07-05 21:30:28 +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 * Write RTTI for function arguments as children of function RTTI, resolves #24540,#25002,#25128 (bugs are basically duplicate, so adding only first of them to the testsuite). 2014-05-16 20:09:32 +00:00
ncgset.pas * simplified in_smallset() and removed some old cruft (there's no need 2014-08-12 23:17:45 +00:00
ncgutil.pas * moved all g_exception_*() methods to hlcgobj and cleaned them up (no more 2014-08-19 20:22:24 +00:00
ncgvmt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
ncnv.pas * integrate the functionality to create an address-only procvardef from a 2014-08-19 20:22:06 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
ngenutil.pas * synchronised with r28168 of trunk 2014-07-05 21:30:28 +00:00
ngtcon.pas * migrated the handling of ansi/unicodestring constants to the high level 2014-08-06 18:04:40 +00:00
ninl.pas * fixed the resultdef of length() intrinsic: it's ossinttype rather than 2014-08-12 18:59:13 +00:00
nld.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nmat.pas + Implemented target-independent optimization of signed "mod 2**N" as 2014-06-07 22:19:10 +00:00
nmem.pas * moved the pass_1 handling of vecnodes for arraydefs to a new virtual method 2014-07-26 16:18:57 +00:00
nobj.pas * TVMTBuilder.intf_allocate_vtbls: fixed the Ioffset calculation in i8086 far 2014-05-03 17:05:50 +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
nset.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nstate.pas
nutils.pas * better complexity estimation for some inline nodes 2014-04-27 14:28:01 +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 + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
ogcoff.pas + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
ogelf.pas + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
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 + apply cse to more inline nodes 2014-04-27 14:28:17 +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 * synchronised with trunk up till r28402 2014-08-13 16:04:30 +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 * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
owar.pas
owbase.pas
parabase.pas * reworked and fixed llvm procdef handling (except for variadic C functions): 2014-03-06 21:42:00 +00:00
paramgr.pas - rm bogus ifdef cpu16bitalu from tparamanager.allocparaloc and .freecgpara 2014-04-26 13:37:53 +00:00
parser.pas + added heapmax support to the $M directive on i8086-msdos. It is currently 2014-06-23 20:17:17 +00:00
pass_1.pas * indention and new line fixes 2013-11-06 21:10:28 +00:00
pass_2.pas
pbase.pas Fix for Mantis #26278. 2014-06-13 21:36:55 +00:00
pdecl.pas * split off the texceptaddr declaration into rtl/inc/excepth.inc, so it can 2014-08-10 19:40:29 +00:00
pdecobj.pas Fix for Mantis #26123. 2014-06-06 15:19:45 +00:00
pdecsub.pas * synchronised with r28168 of trunk 2014-07-05 21:30:28 +00:00
pdecvar.pas * check for read/write after a newly declared property (mantis #26011) 2014-06-15 10:59:47 +00:00
pexports.pas
pexpr.pas Add a new warning message that is generated if an instance of an abstract class is created. This message is disabled by default, but can be switched on by using {$warn 4122 on} or {$warn 4122 error}. 2014-07-01 20:41:05 +00:00
pgenutil.pas Fix for Mantis #26482. 2014-07-20 15:47:18 +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 * Moved method check_hints from tmodule to tused_unit and modified it so warning messages are output with position info from associated unitsym. Resolves #25057. 2014-05-15 21:16:36 +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 + generate the stack segment for i8086 far data memory models from within fpc 2014-05-27 23:29:50 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas + added an i8086 specific boolean property is_huge to the tarraydef. For now it 2014-07-26 13:27:46 +00:00
ppx86_64.lpi
procinfo.pas * Added virtual method tprocinfo.postprocess_code and moved target-specific processing from base class into target-specific descendant classes (ARM and AVR, other targets still to do). 2014-04-02 13:14:06 +00:00
pstatmnt.pas * allow the "then" part of an if-statement to be terminated by any endtoken, 2014-04-30 19:25:06 +00:00
psub.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
psystem.pas * synchronised with r28168 of trunk 2014-07-05 21:30:28 +00:00
ptconst.pas * converted most of the asmlist-based typed const parsing to use the new 2014-07-01 16:30:40 +00:00
ptype.pas Fix for Mantis #26288. Types declared inside a generic must have the df_generic flag set. Period. 2014-06-06 14:22:17 +00:00
raatt.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
rabase.pas
rasm.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
rautils.pas * grouped all tai_real* types into a single tai_realconst type, 2014-07-01 16:29:58 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
scandir.pas + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
scanner.pas * switch to asmmode_i8086_intel instead of asmmode_i386_intel on i8086 when tp 2014-06-25 22:02:03 +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 + added the $F switch to the turbo and macSwitchTable, as that takes precedence 2014-04-13 15:14:43 +00:00
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 * fixed finish_copied_procdef() in case newstruct is nil after support for 2014-07-18 09:09:03 +00:00
symdef.pas * integrate the functionality to create an address-only procvardef from a 2014-08-19 20:22:06 +00:00
symnot.pas
symsym.pas * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
symtable.pas * synchronised with trunk up till r28402 2014-08-13 16:04:30 +00:00
symtype.pas * support for raising the visibility of inherited properties on the JVM 2014-06-12 11:08:44 +00:00
symutil.pas
systems.inc * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
systems.pas * allocate datastructures with new() instead of getmem() so that they get 2014-08-19 20:22:00 +00:00
tgobj.pas * separate tracking the def of a temp and whether or not it needs to be 2014-08-19 20:22:34 +00:00
tokens.pas + added parser support for huge pointer declarations 2014-06-27 10:44:02 +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 * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
wpoinfo.pas * call "message" rather than "cgmessage" when throwing fatal errors, because 2014-07-18 09:09:21 +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