fpc/compiler
Jonas Maebe 9914f02faa * always set the resultdef for variant array constructors correctly, so we
don't need to pull all kinds of special tricks pass_generate_code

git-svn-id: trunk@32233 -
2015-11-04 20:46:10 +00:00
..
aarch64 + added support for using Clang as an assembler, and make it the default 2015-09-25 18:31:54 +00:00
arm Most if not all instructions for thumb use only 2 operand rw forms. Changed get_oper_type to match that. It was previously creating bad spilling. 2015-10-20 03:45:22 +00:00
avr Fix bug in gen_load_cgpara_loc for 64bit registers on 8bit architectures. 2015-10-18 11:36:58 +00:00
generic Moved tcontrollerdatatype out into cpuinfo. 2015-09-07 20:36:54 +00:00
html
i386 * i386: Fixed detection of a peephole optimization using CMOV. 2015-10-21 15:59:12 +00:00
i8086 * optimizations for ofs() on i8086 to load only the offset (in a temporary 2015-10-30 21:27:35 +00:00
jvm * ensure that the tai is an instruction in PostPeepHoleOptsCpu before 2015-11-04 20:46:02 +00:00
llvm * handle variant record fields in 2015-10-31 14:25:50 +00:00
m68k * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
mips * mips: Fixed internal error 2014061703 when optimization are enabled. 2015-10-21 12:14:49 +00:00
msg Add new general_e_exception_raised Error 2015-09-23 16:39:23 +00:00
powerpc * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
powerpc64 Moved tcontrollerdatatype out into cpuinfo. 2015-09-07 20:36:54 +00:00
ppcgen * changed idtext of as_darwin to AS-DARWIN, so it can be explicitly 2015-09-24 06:49:29 +00:00
sparc * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
systems AROS: shortname in system description to uppercase (usual form) 2015-10-24 09:01:05 +00:00
utils * adapted ppudump to the changes in r32031 2015-10-14 16:44:05 +00:00
x86 Solaris assembler does not accept %st instead of %st(0), at least for some instructions 2015-10-30 11:20:10 +00:00
x86_64 * changed {$ifdef x86} code in defcmp into virtual methods 2015-10-28 18:06:27 +00:00
aasmbase.pas + tasmlabel.createstatic() constructor for creating static data labels 2015-03-27 21:25:40 +00:00
aasmcnst.pas - removed useless ansistring pointer def creation from r32209 2015-10-30 20:56:34 +00:00
aasmdata.pas * put the code for pure assembler routines in a separate asmlist, so 2015-09-12 23:32:21 +00:00
aasmsym.pas
aasmtai.pas * ait_jcatch should not be skipped by optimizers, as it does result in 2015-08-29 10:08:15 +00:00
aggas.pas Solaris assembler does not want 0x90 fill pattern for text section alignment 2015-10-30 11:19:14 +00:00
aopt.pas * Fixed notes "var is assigned but not used". 2015-09-17 13:03:04 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas * Fixed general peephole optimization of conditional jumps after r30446. It has been broken, since r30446 had added some IsJumpToLabel() checks, which tests for unconditional jump, but the optimization code expects also conditional jumps. 2015-10-21 15:35:54 +00:00
assemble.pas Add -Aas-sol to use native Solaris assembler 2015-10-29 15:10:27 +00:00
blockutl.pas * only write the parts of the unit localsymtables that are actually needed: 2015-10-25 19:22:00 +00:00
browcol.pas
catch.pas
ccharset.pas
cclasses.pas * since T(Tag)HashSet always forces the size to a power of 2, use "and" 2015-10-14 16:44:02 +00:00
cfidwarf.pas
cfileutl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cg64f32.pas * add "doregister" parameter to torddef.create, and don't register temporary 2015-10-13 15:59:06 +00:00
cgbase.pas + initialize DS with the current unit's data segment in the function entry code 2015-09-03 21:44:16 +00:00
cghlcpu.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
cgobj.pas * handle the loading of VMT entries at the node level, so it's done in a 2015-05-31 16:50:47 +00:00
cgutils.pas * define avr => cpu8bitalu 2015-09-13 21:07:23 +00:00
cmsgs.pas
comphook.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
compiler.pas Use general_e_exception_raised if Compiler generates an uncaught exception 2015-09-23 16:49:24 +00:00
compinnr.inc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
comprsrc.pas + ELF/ppc64le resource support 2015-03-14 18:36:32 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas + support UTF-8 in ascii2unicode(), this fixes the UTF-16 output of 2015-09-28 22:14:56 +00:00
cstreams.pas
cutils.pas * Removed lot of unused vars. 2015-09-17 12:48:58 +00:00
cwindirs.pp
dbgbase.pas
dbgdwarf.pas Avoid unsupported .uleb128 with diff of two sympbols for native solaris assembler 2015-10-30 13:38:03 +00:00
dbgstabs.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
dbgstabx.pas
defcmp.pas * support assigning static methods to regular procvars in (obj)fpc mode 2015-11-01 18:02:46 +00:00
defutil.pas - removed symcpu dependencies 2015-06-13 22:47:59 +00:00
dirparse.pas
elfbase.pas
export.pas
expunix.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
finput.pas + implemented exporting of functions for the win16 target 2015-09-27 00:48:35 +00:00
fmodule.pas * free a bunch of extra data after a unit is compiled, as it is no longer 2015-10-30 15:12:37 +00:00
fpccrc.pas
fpcdefs.inc Allow use of stabs for 64-bit systems with -dUSE_STABS_64 2015-10-29 09:23:30 +00:00
fppu.pas * only write the parts of the unit localsymtables that are actually needed: 2015-10-25 19:22:00 +00:00
gendef.pas
globals.pas Use general_e_exception_raised if Compiler generates an uncaught exception 2015-09-23 16:49:24 +00:00
globstat.pas
globtype.pas + generate proper win16 prologue/epilogue for exported routines (we don't yet 2015-09-26 18:04:59 +00:00
hlcg2ll.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
hlcgobj.pas * moved the generation of the "main" stub for libc-based platforms from 2015-09-12 23:34:01 +00:00
htypechk.pas ncal.pas: 2015-09-18 14:48:54 +00:00
impdef.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
import.pas
ldscript.pas
link.pas * Fixed notes "var is assigned but not used". 2015-09-17 13:03:04 +00:00
macho.pas
machoutils.pas
Makefile * regenerated makefiles after adding the win16 target 2015-09-05 11:02:54 +00:00
Makefile.fpc * regenerated makefiles after adding the win16 target 2015-09-05 11:02:54 +00:00
MPWMake
msgidx.inc Regenerated after addition of new general_e_exception_raised Error 2015-09-23 16:39:58 +00:00
msgtxt.inc Regenerated after addition of new general_e_exception_raised Error 2015-09-23 16:39:58 +00:00
nadd.pas * fixed comparison of two procvars in the i8086 compact and medium memory models 2015-10-27 17:24:33 +00:00
nbas.pas + new parser-only node class to handle Delphi-mode inline specializations 2015-09-11 12:58:25 +00:00
ncal.pas * fixed internconsts with two arguments. This allows compile time evaluation of ptr(const,const) on i8086 and i386. 2015-10-21 16:00:12 +00:00
ncgadd.pas * Removed lot of unused vars. 2015-09-17 12:48:58 +00:00
ncgbas.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgcal.pas * Fixed notes "var is assigned but not used". 2015-09-17 13:03:04 +00:00
ncgcnv.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncgcon.pas * converted large set constant emission to high level typed const builder 2015-10-30 20:45:11 +00:00
ncgflw.pas * Win64 SEH: Track control flow out of unwind-protected regions in a more precise way and don't generate expensive calls to __fpc_local_unwind when not necessary. 2015-09-09 18:43:46 +00:00
ncghlmat.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
ncginl.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgld.pas * always set the resultdef for variant array constructors correctly, so we 2015-11-04 20:46:10 +00:00
ncgmat.pas + support mmregisters in the generic unaryminus code for floats 2015-09-12 23:33:50 +00:00
ncgmem.pas * replaced another {$ifdef x86} with a virtual method call (the pointer type 2015-10-28 18:25:26 +00:00
ncgnstld.pas - removed variable notification support, it's not used and superceded by 2015-10-02 17:00:25 +00:00
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * free typedconstbuilder after generating rtti 2015-10-30 14:17:13 +00:00
ncgset.pas * Fixed notes "var is assigned but not used". 2015-09-17 13:03:04 +00:00
ncgutil.pas Fix bug in gen_load_cgpara_loc for 64bit registers on 8bit architectures. 2015-10-18 11:36:58 +00:00
ncgvmt.pas * Fixed notes "var is assigned but not used". 2015-09-17 13:03:04 +00:00
ncnv.pas * Fixed conversion from float to currency when the currency type is 64-bit integer. Issue #28748. 2015-10-13 22:30:46 +00:00
ncon.pas + write the value of a pointer constant node in printnodedata 2015-08-31 20:03:47 +00:00
nflw.pas - removed variable notification support, it's not used and superceded by 2015-10-02 17:00:25 +00:00
ngenutil.pas ncal.pas: 2015-09-18 14:48:54 +00:00
ngtcon.pas * fixed ofs(procedure) as well 2015-10-30 19:30:33 +00:00
ninl.pas * add "doregister" parameter to torddef.create, and don't register temporary 2015-10-13 15:59:06 +00:00
nld.pas * always set the resultdef for variant array constructors correctly, so we 2015-11-04 20:46:10 +00:00
nmat.pas * Removed lot of unused vars. 2015-09-17 12:48:58 +00:00
nmem.pas * add "doregister" parameter to torddef.create, and don't register temporary 2015-10-13 15:59:06 +00:00
nobj.pas Fix for Mantis #28442. Do not generate the VMT record definition for generic classes. It isn't used anyway. 2015-08-07 15:02:55 +00:00
nobjc.pas
node.pas + new parser-only node class to handle Delphi-mode inline specializations 2015-09-11 12:58:25 +00:00
nopt.pas
nset.pas * fixed "case <string> of" with multiple labels for a single statement after 2015-07-03 20:04:25 +00:00
nstate.pas
nutils.pas * extended nodes which return true from is_const 2015-08-31 20:03:52 +00:00
objcdef.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
objcgutl.pas * write nil instead of a reference to _objc_empty_vtable for iOS and the 2015-10-28 21:00:57 +00:00
objcutil.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ogbase.pas + support addr_fardataseg references in the internal asm writer 2015-09-04 14:33:48 +00:00
ogcoff.pas * Fixed notes "var is assigned but not used". 2015-09-17 13:03:04 +00:00
ogelf.pas * Removed unused vars for mipsel compiler. 2015-09-17 15:46:30 +00:00
oglx.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
ogmacho.pas * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
ogmap.pas * the code for displaying a symbol address in the linker map file moved to a 2015-08-24 22:12:00 +00:00
ognlm.pas * store a pointer to the used tasminfo record in every assembler writer, so 2015-09-12 23:32:13 +00:00
ogomf.pas * fixed compilation with -Oodfa/-O3 2015-09-14 16:10:57 +00:00
omfbase.pas * use the 'FAR_DATA' segment class name instead of 'DATA' or 'BSS' in the huge 2015-09-03 17:53:15 +00:00
optbase.pas
optconstprop.pas
optcse.pas * don't perform CSE on typeconversion nodes inserted for absolute 2015-07-04 22:28:31 +00:00
optdead.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
optdeadstore.pas
optdfa.pas * Fixed notes "var is assigned but not used". 2015-09-17 13:03:04 +00:00
options.pas * arm-android: Compile for ARMv5T by default to be compatible with all versions of Android. 2015-10-17 16:27:53 +00:00
optloop.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
opttail.pas
optutils.pas
optvirt.pas
owar.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
owbase.pas * support writing more than 1024 zeros in tobjectwriter.writezeros 2015-08-24 01:09:53 +00:00
owomflib.pas + readded the FIsCaseSensitive variable (that was removed in r31734) as a 2015-09-17 16:53:46 +00:00
parabase.pas
paramgr.pas * changed getarraydef() into a tarraydef.getreusable() class method 2015-06-23 21:23:18 +00:00
parser.pas Use general_e_exception_raised if Compiler generates an uncaught exception 2015-09-23 16:49:24 +00:00
pass_1.pas
pass_2.pas * fixed compilation of the compiler with -dEXTDEBUG after r31588 2015-09-12 11:55:54 +00:00
pbase.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
pdecl.pas pgenutil.pas, parse_generic_parameters: 2015-09-18 13:16:25 +00:00
pdecobj.pas pdecsub.pas: 2015-09-18 21:31:53 +00:00
pdecsub.pas * ignore the name of class con- and destructors (patch by Ondrej Pokorny, 2015-11-03 18:10:08 +00:00
pdecvar.pas + extend tprocdef with the possiblity to create it as unregistered 2015-09-11 13:36:00 +00:00
pexports.pas
pexpr.pas + implemented Seg(procedure) on i8086 2015-11-02 16:37:19 +00:00
pgentype.pas pgenutil.pas: 2015-09-04 15:37:54 +00:00
pgenutil.pas * only write the parts of the unit localsymtables that are actually needed: 2015-10-25 19:22:00 +00:00
pinline.pas pexpr.pas: 2015-09-18 15:38:09 +00:00
pmodules.pas Also set cs_create_pic in init_settings so that units are compiled with this setting if tf_library_needs_pic is in target info flags 2015-10-30 13:37:03 +00:00
pp.lpi + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
pp.pas - removed leftover alpha, ia64 and vis code 2015-08-28 22:31:29 +00:00
pparautl.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ppc68k.lpi
ppc8086.lpi + started implementing a win16 target :) 2015-09-05 02:47:42 +00:00
ppcaarch64.lpi
ppcarm.lpi Rebase to trunk revision 2015-02-15 16:08:18 +00:00
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * detect whether or not a def/sym is registered based on its defid, so we 2015-10-12 21:03:09 +00:00
ppx86_64.lpi
procinfo.pas * replaced current_procinfo.currtrue/falselabel with storing the true/false 2015-08-27 18:28:57 +00:00
pstatmnt.pas pexpr.pas: 2015-09-18 15:38:09 +00:00
psub.pas * don't store node trees for inline generic routines, as they contain 2015-10-13 15:59:18 +00:00
psystem.pas * add "doregister" parameter to tfloatdef.create, and don't register temporary 2015-10-13 15:59:15 +00:00
ptconst.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ptype.pas * add "doregister" parameter to tsetdef.create, and don't register temporary 2015-10-13 15:59:12 +00:00
raatt.pas * merged ait_set and ait_thumb_set into a single tai class 2015-03-14 18:35:28 +00:00
rabase.pas
rasm.pas
rautils.pas * treat interrupt procedures as 'near' in the i8086 inline assembler for TP7 2015-10-29 22:43:41 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas * fix wrong comparisons in trgobj.conservative to enable better coalescing, 2015-08-28 18:49:04 +00:00
scandir.pas * fixed a bug in the $targetswitch directive, which prevented target switches 2015-09-26 13:36:51 +00:00
scanner.pas * add "doregister" parameter to tfloatdef.create, and don't register temporary 2015-10-13 15:59:15 +00:00
script.pas
switches.pas + generate proper win16 prologue/epilogue for exported routines (we don't yet 2015-09-26 18:04:59 +00:00
symbase.pas * prevent new definitions being added to a global unit symtable after compilation of the implementation part started 2015-02-23 22:10:46 +00:00
symconst.pas * only write the parts of the unit localsymtables that are actually needed: 2015-10-25 19:22:00 +00:00
symcreat.pas * only write the parts of the unit localsymtables that are actually needed: 2015-10-25 19:22:00 +00:00
symdef.pas * don't reserve never used space for parameter and function result location 2015-11-04 12:50:47 +00:00
symsym.pas * don't reserve never used space for parameter and function result location 2015-11-04 12:50:47 +00:00
symtable.pas * don't use symid anymore as fallback when sorting fields, as it's no longer 2015-10-26 17:31:11 +00:00
symtype.pas * fixed formatting 2015-11-04 20:46:07 +00:00
symutil.pas
systems.inc Add -Aas-sol to use native Solaris assembler 2015-10-29 15:10:27 +00:00
systems.pas * Linux/AArch64 must also copy value parameters passed by reference on the 2015-10-20 12:58:53 +00:00
tgobj.pas * suppress (harmless) range error 2015-05-31 16:50:50 +00:00
tokens.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
verbose.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
version.pas - removed leftover alpha, ia64 and vis code 2015-08-28 22:31:29 +00:00
widestr.pas * fixed accidentally committed (harmless) typo in r32202 2015-11-04 13:03:45 +00:00
wpo.pas
wpobase.pas
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