fpc/compiler
Jonas Maebe e18e98b540 * changed the type of the forcesize parameter of gethltemp() and friends
from aint to asizeint (fixes range check warning/error when compiling
    the AVR backend)

git-svn-id: branches/hlcgllvm@28147 -
2014-07-03 22:28:43 +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 + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
avr + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +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 + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
i8086 + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +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 * changed the type of the forcesize parameter of gethltemp() and friends 2014-07-03 22:28:43 +00:00
llvm * changed the type of the forcesize parameter of gethltemp() and friends 2014-07-03 22:28:43 +00:00
m68k + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
mips + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
msg + show an error message 'procedure must be far' if an attempt is made to convert 2014-04-13 19:29:28 +00:00
powerpc + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
powerpc64 + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
ppcgen * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
sparc + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
systems * added llvmdatalayout for mipsel-android 2014-07-01 16:29:54 +00:00
utils Fix remaining failure for make testppudump at compiler level 2014-04-13 19:31:55 +00:00
vis + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
x86 * grouped all tai_real* types into a single tai_realconst type, 2014-07-01 16:29:58 +00:00
x86_64 + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +00:00
aasmbase.pas * reworked handling of defined/declared symbols in llvm: we now automatically 2014-03-06 21:42:03 +00:00
aasmcnst.pas * converted emitting pwidechar typed constants to the typed constant builder 2014-07-03 22:28:25 +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 * grouped all tai_real* types into a single tai_realconst type, 2014-07-01 16:29:58 +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
asmutils.pas * moved get_string_symofs() to a virtual class method of 2014-07-03 22:28:21 +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 * 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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +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 + 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 * 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 Try to avoid problems with generic types for stabs/stabx 2014-04-22 21:28:45 +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 * 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 * reworked and fixed llvm procdef handling (except for variadic C functions): 2014-03-06 21:42:00 +00:00
fpccrc.pas
fpcdefs.inc * synchronized with trunk up to r27758 2014-05-12 16:12:34 +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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
globstat.pas
globtype.pas + added support for units with code larger than 64kb in the far code i8086 2014-04-20 19:03:14 +00:00
hlcg2ll.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
hlcgobj.pas + new chlcgobj class reference variable that can be used to call thlcg* 2014-07-03 22:28:31 +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 + show an error message 'procedure must be far' if an attempt is made to convert 2014-04-13 19:29:28 +00:00
msgtxt.inc + show an error message 'procedure must be far' if an attempt is made to convert 2014-04-13 19:29:28 +00:00
nadd.pas * Fixed floating-point comparisons for softfloat targets (part of Mantis #9362). 2014-04-15 23:36:21 +00:00
nbas.pas * take care of dyn. arrays in cse 2014-02-08 21:47:46 +00:00
ncal.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncgcnv.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncgcon.pas * moved get_string_symofs() to a virtual class method of 2014-07-03 22:28:21 +00:00
ncgflw.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncginl.pas * fixed length(ansistring/widestring/dynarray) in i8086 far data memory models 2014-04-27 02:26:35 +00:00
ncgld.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncgmat.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncgmem.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +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 + 8-bit ALU support in tcgcasenode.genlinearcmplist 2014-04-26 12:41:58 +00:00
ncgutil.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncgvmt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
ncnv.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas + support for simplifying empty try-except statements 2014-05-10 12:47:28 +00:00
ngenutil.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
ngtcon.pas * converted emitting pwidechar typed constants to the typed constant builder 2014-07-03 22:28:25 +00:00
ninl.pas + support for FMA intrinsic: if there is no hardware support, the compiler throws an error. 2014-04-13 19:21:54 +00:00
nld.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nmat.pas * unified the 8-bit and 16-bit alu handling in tshlshrnode.pass_typecheck 2014-04-23 12:53:31 +00:00
nmem.pas * the ifdef i8086 in taddrnode.pass_typecheck removed via using tabstractprocdef.address_type 2014-04-12 14:49:54 +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 * 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 * 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 + 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 * Fixed linking of non-PIC code to indirect functions in shared objects. 2014-04-06 23:04:57 +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 * Replaced oso_disabled flag by TExeSection.Disabled boolean property. Makes code a bit nicer to read. 2013-04-28 20:29:49 +00:00
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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +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
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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +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 Fix for Mantis #25915. 2014-04-04 15:48:06 +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 + set ref.segment to NR_SS for all temps/localvars on i8086. This allows the 2014-05-01 21:18:47 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi * jvm lazarus project file properly named 2013-04-28 08:39:20 +00:00
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * i8086 small and tiny memory model ppus made incompatible. Rationale: 2014-04-10 16:31:06 +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 * grouped all tai_real* types into a single tai_realconst type, 2014-07-01 16:29:58 +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 #25600. 2014-04-11 14:57:23 +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 * add a -dfpc define to the resource compiler commandlines, which allows to make FPC specific exceptions in resource scripts. Mantis #24044 2013-05-04 21:25:36 +00:00
rgbase.pas
rgobj.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
scandir.pas + added support for units with code larger than 64kb in the far code i8086 2014-04-20 19:03:14 +00:00
scanner.pas * do not crash with an ie on illegal boolean expressions in conditional compilation directives, resolves #25951 2014-04-27 15:50:37 +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 Fix for Mantis #19697. For this we need to have the internal static var symbol know that it came from a static field var symbol so that we can check that for generic or not. 2014-04-04 16:15:41 +00:00
symdef.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
symnot.pas
symsym.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
symtable.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +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 * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
systems.pas * synchronized with trunk up to r27758 2014-05-12 16:12:34 +00:00
tgobj.pas * changed the type of the forcesize parameter of gethltemp() and friends 2014-07-03 22:28:43 +00:00
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 * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
wpoinfo.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +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