fpc/compiler
2014-09-22 16:18:16 +00:00
..
aarch64 Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
alpha Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
arm * ARM: instructions do modify the base register of pre/postindexed references. Report this fact in spilling_get_operation_type_ref and RegModifiedByInstruction functions. 2014-09-22 16:18:16 +00:00
avr * fixed DFA warnings for MIPS and AVR 2014-08-20 15:05:43 +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 * Provide initialization of all variables, fixes cycling with OPT="-dTEST_WIN32_SEH -OoDFA". 2014-09-08 18:08:12 +00:00
i8086 * fixed DFA warnings for i8086 2014-08-20 15:49:27 +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 * fixed DFA warnings for JVM target 2014-08-20 15:48:42 +00:00
m68k m68k: added the byterev and ff1 CF ISAA+/ISAC instructions, also added byterev as a CPU capability 2014-09-16 01:39:02 +00:00
mips * compiler/mips/cpuinfo.pas: removed "FPU_" prefixes from FPU names, not necessary because compiler inserts one itself. 2014-09-15 18:24:23 +00:00
msg 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
powerpc PowerPC: in MorphOS syscalls the explicit paraloc size should always be OS_ADDR 2014-09-18 10:25:28 +00:00
powerpc64 * Moved procedures calculating "magic" numbers for division by constants from powerpc64/cgcpu.pas to cgutils.pas, so they can be reused for all targets. 2014-06-07 00:00:53 +00:00
ppcgen - removed ppc-specific a_load_const_cgpara: not necessary, and in fact wrong 2014-07-23 14:06:03 +00:00
sparc * fix GetResFlags DFA optimizer warning on Sparc and AVR too 2014-08-20 13:52:28 +00:00
systems * fix warnings when compiling the compiler with DFA optimizer enabled on PowerPC 2014-08-20 14:31:36 +00:00
utils AROS: regenerated Makefiles to support i386-aros 2014-08-17 23:16:47 +00:00
vis + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
x86 * merged new changes to avx2 branch (AVX2 vectory-memory support) by Torsten Grundke 2014-08-27 21:06:23 +00:00
x86_64 * reimplemented r28329 in a different way, as suggested by Jonas 2014-08-07 19:36:52 +00:00
aasmbase.pas + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
aasmdata.pas
aasmsym.pas
aasmtai.pas
aggas.pas * create a thumb_func directive before .globl directives in assembler to prevent accidental changes of asm mode 2014-08-31 15:01:55 +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 * when updating registers in RegUsedAfterInstruction, new reg. allocs should be ignored 2014-05-01 19:20:32 +00:00
asmutils.pas
assemble.pas + internal assembler: early check for empty asmlists. 2014-09-08 23:26:20 +00:00
browcol.pas
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 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
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 * Dummy implementations of a_bit_scan_reg_reg and g_stackpointer_alloc in tcg, removes the need to override these methods in every descendant code generator solely to avoid "constructing a class with abstract method" warning. 2014-07-06 11:34:04 +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 + 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
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cstreams.pas
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 * Do not use sym.realname but sym.name in the mangledname for the Dwarf-3 debuginfo. This makes it possible to mix Dwarf-2 and Dwarf-3 debug info into one executable. 2014-09-01 16:55:10 +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
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 * reimplemented r28329 in a different way, as suggested by Jonas 2014-08-07 19:36:52 +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 + added heapmax support to the $M directive on i8086-msdos. It is currently 2014-06-23 20:17:17 +00:00
globstat.pas
globtype.pas + added directive {$HUGEPOINTERARITHMETICNORMALIZATION} to control the 2014-07-04 14:43:46 +00:00
hlcg2ll.pas * Load double-precision locations from integer registers directly into cgpara if sizes match and destination has a single location. 2014-06-30 17:50:34 +00:00
hlcgobj.pas - rm the ifdef cpu16bitalu and cpu64bitalu from thlcgobj.a_load_ref_cgpara, 2014-04-26 13:46:36 +00:00
htypechk.pas Fix for Mantis #26615. 2014-09-01 07:18:02 +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 AROS: regenerated Makefiles to support i386-aros 2014-08-17 23:16:47 +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 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
msgtxt.inc 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
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
ncgbas.pas
ncgcal.pas * tcgcallnode.pass_generate_code: pass the correct vmt pointer type parameter to 2014-08-22 23:17:46 +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 * Fixed type of parameter passed to FPC_CHECKPOINTER after r23325, must be the pointer itself, not what it points to. Was causing IE 200306031 when compiling for i386 with -gc. 2014-09-12 18:50:09 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * fixed writing of dynarray rtti in the i8086 far data memory models 2014-09-22 16:12:11 +00:00
ncgset.pas + 8-bit ALU support in tcgcasenode.genlinearcmplist 2014-04-26 12:41:58 +00:00
ncgutil.pas - Removed superfluous tai_align, the new_section procedure creates one itself. 2014-06-21 22:36:17 +00:00
ncgvmt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
ncnv.pas * fixed tbs/tb0607 for 64 bit targets: there the nf_internal flag isn't set 2014-06-15 15:26:56 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas * tarraydef.create_from_pointer changed to require the actual pointerdef as a 2014-07-26 10:39:18 +00:00
ngenutil.pas Fix for Mantis #26271: Don't trash local variables that are used for the Default() intrinsic. 2014-06-06 13:59:52 +00:00
ngtcon.pas * don't free node before using its resultdef in an error message 2014-09-20 23:08:22 +00:00
ninl.pas * On 64-bit targets, handle abs(int64) internally, using the same code as for abs(longint), i.e. without branching. Both generic and x86-specific pass 2 code is already suitable for different operand sizes, only type checking needs removal of excessive conversions to 32 bits. 2014-06-17 18:45:11 +00:00
nld.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nmat.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
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
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
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
optconstprop.pas
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
optdfa.pas
options.pas * Set default CPU type to cpu_pic32mx and FPU type to fpu_soft when compiling for mipsel-embedded, patch from Michael Ring. 2014-09-19 15:58:56 +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
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 m68k: support loading of refs to data registers, also when explicit paraloc is set and it's a register, use that directly, this fixes several syscall-related corner cases on Amiga 2014-09-02 17:38:34 +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 + added parser support for huge pointer declarations 2014-06-27 10:44:02 +00:00
pdecobj.pas Fix for Mantis #26123. 2014-06-06 15:19:45 +00:00
pdecsub.pas * removed unnecessary "as" expressions 2014-08-19 20:11:52 +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 #26749 . 2014-09-21 19:15:37 +00:00
pinline.pas
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 * bumped PPU version because r28596 breaks compatibility on Amiga/68k and MorphOS 2014-09-05 02:39:35 +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 - Delete all position markers from assembler code before optimization. Markers of this kind are not used by optimizer and are expected to be ignored, but ignoring them requires numerous checks in all target-specific optimizers and currently isn't done correctly. In turn, failure to ignore markers prevents optimization of procedure prologues and epilogues. 2014-09-12 23:15:23 +00:00
psystem.pas * fixed 'cannot convert type' error when comparing two voidhugepointers with 2014-07-04 23:54:47 +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 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 * aint -> asizeint (immediate operand vs offset size) 2014-08-18 23:00:17 +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 + 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
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 * 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 * fixed copy/paste error that caused all warnings to be disabled after 2014-08-18 23:03:54 +00:00
symnot.pas
symsym.pas * changed explicit paraloc handling to use ppuload/ppuwrite functions in paraloc instead of directly writing the data. this hopefully fixes some endian issues when using crosscompiled-on-littleendian PPUs with explicit paralocs on bigendian systems (this means Amiga/68k and MorphOS) 2014-09-04 23:09:05 +00:00
symtable.pas Fix for Mantis #26456. 2014-07-20 13:40:01 +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 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
systems.pas * partially merged the mips-embedded branch of Michael Ring: 2014-03-19 21:25:38 +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
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