fpc/compiler
marco 14b2977744 --- Merging r37118 into '.':
U    Makefile
U    Makefile.fpc
U    compiler/Makefile
U    compiler/Makefile.fpc
 U   .
--- Recording mergeinfo for merge of r37118 into '.':
 G   .
--- Merging r37119 into '.':
G    compiler/Makefile.fpc
G    compiler/Makefile
 G   .
--- Recording mergeinfo for merge of r37119 into '.':
 G   .
--- Merging r37120 into '.':
A    rtl/gba/rtl.cfg
--- Recording mergeinfo for merge of r37120 into '.':
 G   .

git-svn-id: tags/release_3_0_4@37121 -
2017-09-03 12:28:26 +00:00
..
aarch64 --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
alpha --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
arm --- Merging r35545 into '.': 2017-05-30 11:28:15 +00:00
avr --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
generic --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
html
i386 * fix from Florian, mantis #30334, relevant part of r33542 2016-12-31 15:17:21 +00:00
i8086 --- Merging r32541 into '.': 2016-04-02 16:54:40 +00:00
ia64 --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
jvm Merging r32904 2016-05-29 15:21:22 +00:00
m68k --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
mips --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
msg * update to v 3.0.4 2017-09-02 16:48:24 +00:00
powerpc --- Merging r34878 into '.': 2017-04-27 17:16:21 +00:00
powerpc64 --- Merging r34878 into '.': 2017-04-27 17:16:21 +00:00
ppcgen Merging r33630 2016-05-29 16:19:22 +00:00
sparc --- Merging r30757 into '.': 2016-04-02 14:47:24 +00:00
systems --- Merging r31003 into '.': 2017-01-14 15:54:46 +00:00
utils * update to v 3.0.4 2017-09-02 16:48:24 +00:00
vis + change always floating point divisions into multiplications if they are a power of two, 2014-11-16 20:47:38 +00:00
x86 Merged revision(s) 32020, 32036, 32536 from trunk (i386 PIC): 2016-04-07 13:51:04 +00:00
x86_64 --- Merging r32541 into '.': 2016-04-02 16:54:40 +00:00
aasmbase.pas --- Merging r29471 into '.': 2015-12-10 22:12:28 +00:00
aasmdata.pas - No longer insert BlockStart markers into asmlists. The presence of these markers disrupts peephole optimizations and require additional checks all over the place, causing various workarounds/hacks (like TAsmList.Create_without_marker) to start building up. 2014-09-22 21:33:50 +00:00
aasmsym.pas
aasmtai.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
aggas.pas Merged revision(s) 32020, 32036, 32536 from trunk (i386 PIC): 2016-04-07 13:51:04 +00:00
agjasmin.pas * fixed DFA warnings for JVM target 2014-08-20 15:48:42 +00:00
aopt.pas * honour -Oonopeephole 2014-03-11 23:18:58 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas * Modified FindRegAlloc() to skip branch delay slots in the same way it is done in GetNextInstruction(). This fixes processing sequences "dealloc reg; branch reg,label; NOP; alloc reg" in BuildLabelTableAndFixRegAlloc(), deallocation is now correctly moved after branch. Before this change, the last allocation was ignored, and deallocation was moved forward until another instruction using reg was encountered. 2014-10-21 20:56:37 +00:00
asmutils.pas
assemble.pas --- Merging r34878 into '.': 2017-04-27 17:16:21 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas # revisions: 32896,32897,32985,32988,32044,33061,33151,33170,33194,33206,33207,33220,33221,33226,33237,33241,33265 2016-05-22 15:53:13 +00:00
cfidwarf.pas
cfileutl.pas * first dragonfly patch (existing most). Mantis #27091 2014-12-07 20:27:02 +00:00
cg64f32.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
cgbase.pas + added tcgsize2str function 2014-04-03 16:50:50 +00:00
cghlcpu.pas
cgobj.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +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 merged/updated AROS/i386 target to trunk from AROS branch, to support Marcus Sackrow's work on AROS support which will hopefully benefit all Amiga-like targets (classic, MorphOS) on the long run. Compiler only, RTL comes in the next run. 2014-08-17 18:18:07 +00:00
compinnr.inc * made setstring() a compiler intrinsic so it can set the compile-time 2014-10-12 20:27:06 +00:00
comprsrc.pas --- Merging r30038 into '.': 2015-12-14 12:36:29 +00:00
constexp.pas
COPYING.txt --- Merging r34598 into '.': 2017-06-21 07:07:03 +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 --- Merging (from foreign repository) r31878 into '.': 2015-10-06 15:38:10 +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 --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
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 * merged support for changing the language set in the DWARF debug info to 2017-01-14 12:51:03 +00:00
dbgstabs.pas * stabn writing code simplified 2014-08-30 16:56:01 +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 * first dragonfly patch (existing most). Mantis #27091 2014-12-07 20:27:02 +00:00
finput.pas - Merging r29456 into '.': 2015-12-09 14:34:24 +00:00
fmodule.pas --- Merging r30038 into '.': 2015-12-14 12:36:29 +00:00
fpccrc.pas
fpcdefs.inc * m68k: Transform 32-bit div/mod nodes into helper calls during pass 1. This is consistent with the way other targets do it, and results in pretty much nicer code. 2014-06-28 13:28:01 +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 * $SUBARCH => $FPCSUBARCH 2014-12-23 20:48:35 +00:00
globstat.pas
globtype.pas * merged support for changing the language set in the DWARF debug info to 2017-01-14 12:51:03 +00:00
hlcg2ll.pas Avoid Internal Error 200310121 with -O3 for test/units/system/tabs.pp with ppcarm 2014-11-23 16:29:09 +00:00
hlcgobj.pas --- Merging r29583 into '.': 2015-02-01 16:25:34 +00:00
htypechk.pas --- Recording mergeinfo for merge of r31987 into '.': 2016-04-03 11:04:10 +00:00
impdef.pas merged/updated AROS/i386 target to trunk from AROS branch, to support Marcus Sackrow's work on AROS support which will hopefully benefit all Amiga-like targets (classic, MorphOS) on the long run. Compiler only, RTL comes in the next run. 2014-08-17 18:18:07 +00:00
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 --- Merging r37118 into '.': 2017-09-03 12:28:26 +00:00
Makefile.fpc --- Merging r37118 into '.': 2017-09-03 12:28:26 +00:00
MPWMake
msgidx.inc * merged support for changing the language set in the DWARF debug info to 2017-01-14 12:51:03 +00:00
msgtxt.inc Update msgtct.inc because copyright year 2017 2017-05-06 07:47:08 +00:00
nadd.pas --- Merging r34035 into '.': 2016-07-05 16:30:43 +00:00
nbas.pas * changed the "laststatement" parameter of internalstatements() from "var" 2014-07-18 09:09:16 +00:00
ncal.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +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 --- Recording mergeinfo for merge of r31987 into '.': 2016-04-03 11:04:10 +00:00
ncgcnv.pas * fixed optimisation from r25067 for the generic case where a signed value 2014-07-23 14:06:06 +00:00
ncgcon.pas * Inserted explicit typecasts in order to prevent range check errors at some places where signed and unsigned types are assigned to each other (mostly MIPS-specific, but one was necessary in generic code). 2014-08-10 21:26:14 +00:00
ncgflw.pas * handle the result of FPC_CATCHES via the high level code generator (which makes it i8086 far pointer safe) 2014-04-02 14:25:19 +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 Fix for Mantis #26177. Use the correct value for the method data when using a method pointer of a type or record helper. 2014-07-05 08:54:10 +00:00
ncgmat.pas * Moved handling of emulated floating point negation into new virtual method tcgunaryminusnode.second_float_emulated. Also changed it into simple flipping of the sign bit, which is how it is defined by IEEE 754, and already done for ARM targets. Relevant ARM-specific parts can now be removed, and m68k code gets significantly better without further efforts. 2014-08-27 21:16:30 +00:00
ncgmem.pas Merging -c 29493,29826,31916,32447,33176:33180,33190 2016-05-29 16:15:44 +00:00
ncgnstld.pas Merging -c 29493,29826,31916,32447,33176:33180,33190 2016-05-29 16:15:44 +00:00
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 * added missing alignment in dynamic array RTTI for platforms that 2016-07-22 14:36:58 +00:00
ncgset.pas --- Merging r31191 into '.': 2015-12-16 15:28:03 +00:00
ncgutil.pas --- Merging r30164 into '.': 2015-03-17 17:07:00 +00:00
ncgvmt.pas * patch from Sven equal to r31911 backported to 3.0.x 2016-05-30 09:28:56 +00:00
ncnv.pas Merging r32904 2016-05-29 15:21:22 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas Merging -c 29493,29826,31916,32447,33176:33180,33190 2016-05-29 16:15:44 +00:00
ngenutil.pas Fix for Mantis #27185. 2014-12-21 14:01:32 +00:00
ngtcon.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
ninl.pas * set nf_internal for if nodes generated by assert, prevent warning for assert(true); resolves #26467 2014-12-14 19:41:22 +00:00
nld.pas Merging -c 29493,29826,31916,32447,33176:33180,33190 2016-05-29 16:15:44 +00:00
nmat.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
nmem.pas --- Merging r32602 into '.': 2016-07-03 15:31:29 +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 --- Merging r31191 into '.': 2015-12-16 15:28:03 +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 --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
ogbase.pas * ELF linker: track relocation style (REL or RELA) of each input section and use it instead of global default on MIPS targets. This fixes internal linking of tests/test/units/system/tres*.pp. 2014-11-13 22:10:53 +00:00
ogcoff.pas * ogcoff.pas: when encountering symbol of unsupported type in input object file, give a meaningful error message instead of internal error. Mantis #27020. 2014-11-11 21:29:10 +00:00
ogelf.pas * first dragonfly patch (existing most). Mantis #27091 2014-12-07 20:27:02 +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 --- Merging r31191 into '.': 2015-12-16 15:28:03 +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 - Merging r29456 into '.': 2015-12-09 14:34:24 +00:00
options.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
optloop.pas * fixes several issues with loop unrolling 2014-12-31 15:45:06 +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
paramgr.pas --- Merging r31191 into '.': 2015-12-16 15:28:03 +00:00
parser.pas merged/updated AROS/i386 target to trunk from AROS branch, to support Marcus Sackrow's work on AROS support which will hopefully benefit all Amiga-like targets (classic, MorphOS) on the long run. Compiler only, RTL comes in the next run. 2014-08-17 18:18:07 +00:00
pass_1.pas
pass_2.pas
pbase.pas Fix for Mantis #26278. 2014-06-13 21:36:55 +00:00
pdecl.pas + write name of missing feature in error message 2014-12-07 18:20:56 +00:00
pdecobj.pas --- Merging r30164 into '.': 2015-03-17 17:07:00 +00:00
pdecsub.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +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 --- Merging r32845 into '.': 2016-05-31 07:23:52 +00:00
pgenutil.pas --- Merging r29537 into '.': 2015-06-14 20:35:18 +00:00
pinline.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
pmodules.pas * manually merged r36194, fixes a regression introduced by 3.0.0 on Win64 (due to SEH). 2017-06-22 09:00:12 +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 --- Merging r29821 into '.': 2016-04-30 21:02:02 +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 adapted commit rev 32474: avoid range check error in geasizeint method. 2017-05-07 21:57:01 +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 --- Merging r30038 into '.': 2015-12-14 12:36:29 +00:00
psystem.pas * made setstring() a compiler intrinsic so it can set the compile-time 2014-10-12 20:27:06 +00:00
ptconst.pas * Don't place symbols with vo_force_finalize flag into read-only sections, resolves #26691. 2014-09-08 19:41:24 +00:00
ptype.pas --- Merging r31910 into '.': 2015-10-09 16:38:40 +00:00
raatt.pas - removed unused type and variable 2014-12-25 10:25:21 +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 --- Merging r29537 into '.': 2015-06-14 20:35:18 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas + m68k: initial implementation of do_spill_replace (supports only MOVE instructions for now). Tested with qemu for Coldfire target. 2014-07-30 01:20:59 +00:00
scandir.pas --- Merging r31831 into '.': 2015-10-09 18:47:20 +00:00
scanner.pas --- Merging r31831 into '.': 2015-10-09 18:47:20 +00:00
script.pas --- Merging r34878 into '.': 2017-04-27 17:16:21 +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
symconst.pas --- Merging r30757 into '.': 2016-04-02 14:47:24 +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 Merging -c 29493,29826,31916,32447,33176:33180,33190 2016-05-29 16:15:44 +00:00
symsym.pas Merging -c 29493,29826,31916,32447,33176:33180,33190 2016-05-29 16:15:44 +00:00
symtable.pas --- Merging r34059 into '.': 2016-07-13 15:12:46 +00:00
symtype.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
symutil.pas
systems.inc * merged the fixes_3_0-relevant parts of r31808, r31830, r31879: add support 2015-10-01 20:40:08 +00:00
systems.pas --- Merging r29821 into '.': 2016-04-30 21:02:02 +00:00
tgobj.pas * changed forcesize parameter of tgobj.gethltemp() from aint into asizeint, 2014-08-18 22:36:43 +00:00
tokens.pas + added parser support for huge pointer declarations 2014-06-27 10:44:02 +00:00
verbose.pas
version.pas * update to v 3.0.4 2017-09-02 16:48:24 +00:00
widestr.pas --- Merging r32202 into '.': 2015-11-06 20:13:22 +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