fpc/compiler
florian 68eb921d46 * broken compilation after r39347 fixed
git-svn-id: trunk@39349 -
2018-06-30 12:30:25 +00:00
..
aarch64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
arm * use vmov.xx to load float constants if possible 2018-06-24 12:40:00 +00:00
avr * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
generic
html
i386 + patch by J. Gareth Moreton: x86 optimisations for Jcc and SETcc, resolves #33899 2018-06-25 20:40:05 +00:00
i8086 Set return value when calling inherited in ti8086inlinenode.pass_typecheck_cpu 2018-05-23 20:43:40 +00:00
jvm * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
llvm * support pasbool8 as type for a record field when a record is passed/ 2018-04-28 16:17:37 +00:00
m68k m68k: try to generate better code from some pointermath - when the left is an address register and we do add/sub, also allocate an address register as temp, also only require that left and right sizes are same, when right is not a const 2018-06-05 16:45:02 +00:00
mips * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
msg + add a message that is used when a threadvar section is started inside a class or record without the "class" 2018-06-23 13:49:05 +00:00
powerpc * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
powerpc64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ppcgen * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
sparc
sparc64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
sparcgen * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
systems * use uppercase object section names in the OMF linker script for matching the 2018-06-14 15:19:11 +00:00
utils + add a new symtable option sto_has_non_trivial_init that is true if the symtable contains a symbol with an 2018-06-20 19:00:08 +00:00
x86 + patch by J. Gareth Moreton: x86 optimisations for Jcc and SETcc, resolves #33899 2018-06-25 20:40:05 +00:00
x86_64 + patch by J. Gareth Moreton: x86 optimisations for Jcc and SETcc, resolves #33899 2018-06-25 20:40:05 +00:00
aasmbase.pas + support exporting labels from asm blocks in intel syntax asm blocks via the 2017-10-30 16:44:13 +00:00
aasmcnst.pas Try to avoid inserting all RTTI symbols into executables on targets not supporting smartlinked sections 2018-05-25 20:44:24 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas
aasmtai.pas + support for vmov.xx vreg,#imm on arm 2018-06-24 12:39:59 +00:00
aggas.pas palmos: no .rodata section here either 2018-01-04 08:26:22 +00:00
aopt.pas
aoptbase.pas
aoptda.pas
aoptobj.pas + TAOptObj.*PeepHoleOpts* check if p is really assigned 2018-03-10 21:53:48 +00:00
aoptutils.pas
assemble.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
cfidwarf.pas
cfileutl.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
cg64f32.pas
cgbase.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
cghlcpu.pas
cgobj.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
cgutils.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
cmsgs.pas
comphook.pas
compiler.pas * print used unit scopes 2018-05-07 19:48:26 +00:00
compinnr.pas + added an i8086-specific FarAddr() function, similar to Addr(), but always 2017-11-27 16:41:48 +00:00
comprsrc.pas renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cscript.pas * quote assembly filenames in Unix script, fixes sh errors with smartlinked small filenames like unitname(1), etc 2018-01-06 10:17:18 +00:00
cstreams.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
cutils.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
cwindirs.pp
dbgbase.pas * revert r37968: it does more harm than good 2018-01-15 16:41:22 +00:00
dbgcodeview.pas + added new debug output option -godwarfomflinnum for generating line number 2018-05-17 14:38:50 +00:00
dbgdwarf.pas * use DW_OP_reg0..DW_OP_reg31 instead of DW_OP_regx in TDebugInfoDwarf.append_seg_reg 2018-05-28 14:21:53 +00:00
dbgstabs.pas
dbgstabx.pas
defcmp.pas * support for non-ASCII widechar constants (mantis #31605) 2018-04-10 19:24:15 +00:00
defutil.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
dirparse.pas
elfbase.pas * The MaybeSwapXXXHeader functions moved from ogelf to the elfbase unit, so they 2018-06-14 13:01:08 +00:00
entfile.pas + add putboolean and getboolean convenience methods to tentfile 2018-01-14 21:36:02 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc Change default settings for i8086 compiler when compiled for go32v2 OS, to avoid use of Watcom tools 2018-06-29 09:41:38 +00:00
fpcp.pas
fpkg.pas
fppu.pas * keep track if the unit was found by using a default namespace as prefix 2018-05-05 17:18:39 +00:00
gendef.pas
globals.pas + add a new modeswitch ArrayOperators which is set by default in Delphi modes that enables the internal array operators (currently only "+") 2018-06-20 19:53:43 +00:00
globstat.pas
globtype.pas + support for vmov.xx vreg,#imm on arm 2018-06-24 12:39:59 +00:00
hlcg2ll.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
hlcgobj.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
htypechk.pas + add a new modeswitch ArrayOperators which is set by default in Delphi modes that enables the internal array operators (currently only "+") 2018-06-20 19:53:43 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * do not use a wildcard while deleting smartlinked objects after linking stage in a script, conflicts with script filename quoting on Unix at least 2018-01-06 10:19:21 +00:00
macho.pas
machoutils.pas
Makefile * target classic MacOS builds again 2018-05-31 19:31:36 +00:00
Makefile.fpc * target classic MacOS builds again 2018-05-31 19:31:36 +00:00
MPWMake
msgidx.inc * regenerate msg*.inc files after addition of the message about threadvars inside classes/records without 2018-06-23 13:49:08 +00:00
msgtxt.inc * regenerate msg*.inc files after addition of the message about threadvars inside classes/records without 2018-06-23 13:49:08 +00:00
nadd.pas * warn if the compiler hides an eventual "+" operator overload if modeswitch ArrayOperators is active 2018-06-20 19:53:56 +00:00
nbas.pas * the temp. locations created by cse were not properly cleanup up, this patch fixes this 2018-03-25 15:55:34 +00:00
ncal.pas * fixed execution order of implicit finalization and class destructors: first 2018-04-08 15:41:00 +00:00
ncgadd.pas
ncgbas.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgcal.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
ncgcnv.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgcon.pas
ncgflw.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
ncghlmat.pas
ncginl.pas ncginl: another approach to fix the same issue #39184 supposed to address. keep left.resultdef, but try to make the target def always ordinal of an equal size, so it ends up in a data register on m68k 2018-06-07 06:43:02 +00:00
ncgld.pas * ensure that load nodes only substitute temps in case both references point 2018-04-27 19:18:59 +00:00
ncgmat.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
ncgmem.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgnstfl.pas
ncgnstld.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
ncgnstmm.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * use reverse_longword() instead of reverse_byte(); fixes the management operators of records inside classes on big endian systems 2018-06-20 21:11:19 +00:00
ncgset.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
ncgutil.pas - removed the check for pocall_oldfpccall from ncgutil.gen_save_used_regs and 2018-05-06 12:41:40 +00:00
ncgvmt.pas * shorten interface wrapper names if needed, resolves #33069 2018-02-22 21:55:07 +00:00
ncnv.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
ncon.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
nflw.pas + correctly set var state of addr and frame in raise statements, resolves #33818 2018-06-03 09:31:19 +00:00
ngenutil.pas * fixed execution order of implicit finalization and class destructors: first 2018-04-08 15:41:00 +00:00
ngtcon.pas * revert r39043 and r39045 which disallow static array constants inside dynamic constants for Delphi modes 2018-05-21 08:13:17 +00:00
ninl.pas * first parameter of SetLength must be valid, as it is read 2018-06-30 11:25:43 +00:00
nld.pas * also check for nf_assign_done_in_right flag after typechecking the right side 2018-05-25 15:54:41 +00:00
nmat.pas + add flags that allow checking for overloads with isbinaryoverloaded() and isunaryoverloaded() without modifying the passed in node or even checking for normally non-overloadable operators 2018-06-20 19:53:34 +00:00
nmem.pas * i8086 TP7 compatibility fixes, related to obtaining procedure addresses: 2018-04-05 15:09:12 +00:00
nobj.pas
nobjc.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
node.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
nopt.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
nset.pas + add flags that allow checking for overloads with isbinaryoverloaded() and isunaryoverloaded() without modifying the passed in node or even checking for normally non-overloadable operators 2018-06-20 19:53:34 +00:00
nutils.pas + calculate loop unrolling using node_count_weighted which takes care of nodes generating no code 2018-04-04 21:39:46 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
objcutil.pas
ogbase.pas + added an 'index' field to TObjSectionGroup, specifying the index of the group 2018-06-21 15:51:58 +00:00
ogcoff.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogelf.pas * The MaybeSwapXXXHeader functions moved from ogelf to the elfbase unit, so they 2018-06-14 13:01:08 +00:00
oglx.pas
ogmacho.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogmap.pas
ognlm.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogomf.pas * fixed the reading of OMF groups by the internal linker. Previously, it only 2018-06-22 17:00:23 +00:00
omfbase.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
optbase.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
optconstprop.pas
optcse.pas * the temp. locations created by cse were not properly cleanup up, this patch fixes this 2018-03-25 15:55:34 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
optloadmodifystore.pas
optloop.pas * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +00:00
opttail.pas
optutils.pas * patch by Pierre to fix warnings which prevent cross building 2018-04-09 19:01:02 +00:00
optvirt.pas
owar.pas
owbase.pas
owomflib.pas * only read the first OMF record in TOmfLibObjectWriter.closefile, since we no 2018-06-08 14:21:18 +00:00
parabase.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
paramgr.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
parser.pas renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +00:00
pass_1.pas * removed unused units 2017-05-09 19:53:14 +00:00
pass_2.pas * moved execution weight calculation into a separate pass, so the info is available already available before the code generation pass if needed 2018-04-08 20:51:27 +00:00
pbase.pas * a symbol might be specified using a partial namespace path as long as the missing part is a namespace symbol, 2018-05-05 17:18:45 +00:00
pcp.pas
pdecl.pas * when creating a unique type alias for an object, class or interface, 2018-01-07 12:25:16 +00:00
pdecobj.pas + add support for threadvars inside classes 2018-06-23 13:49:12 +00:00
pdecsub.pas * ensure that sto_has_generic is set when a generic routine has been parsed 2018-06-15 13:49:03 +00:00
pdecvar.pas * handle vd_threadvar inside read_record_fields() 2018-06-23 13:49:01 +00:00
pexports.pas
pexpr.pas + support TP7-compatible @proc^ (as in FillChar(@proc^,...)) 2018-06-29 14:16:35 +00:00
pgentype.pas
pgenutil.pas * if the generic dummy symbol is a procsym (with procdefs added) then this is the symbol that should be resolved to 2018-06-15 13:49:21 +00:00
pinline.pas * move handling of Concat to tinlinenode so that it can be easily extended for dynamic arrays 2017-10-08 10:39:34 +00:00
pkgutil.pas * check that the PPU version of a unit loaded for package adjustment matches exactly (we don't accept different versions when loading PPUs normally, so why should we with packages?) 2018-01-14 21:16:37 +00:00
pmodules.pas * correctly update the (now unregistered) unit symbol if the unit was found with the help of a default namespace 2018-05-05 17:18:42 +00:00
pp.lpi
pp.pas
pparautl.pas + introduce a new method tparamanager.asm_result_var(), which determines whether 2018-02-15 17:41:07 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi * version update 2018-01-31 18:52:18 +00:00
ppcavr.lpi + version update 2018-01-31 18:46:23 +00:00
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppcx64llvm.lpi * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppheap.pas
ppu.pas * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +00:00
procinfo.pas
pstatmnt.pas * also pass the pattern with which the potential unit/namespace symbol had been found to try_consume_unitsym*() 2018-05-05 17:18:31 +00:00
psub.pas - removed 'if assigned(code)' before calling code.free in tcgprocinfo.destroy, 2018-06-27 12:38:58 +00:00
psystem.pas * unified def creation for open arrays 2018-03-04 17:59:05 +00:00
ptconst.pas
ptype.pas + add support for threadvars in records 2018-06-23 13:49:16 +00:00
raatt.pas * inserted type casts on opr.val again, but depending on the type of opr.val, avoids range check errors 2018-02-25 15:32:38 +00:00
rabase.pas
rasm.pas * forgotten comment 2018-02-06 21:38:51 +00:00
rautils.pas + add support for '[' and ']' parenthesis in addition to '(' and ')' in 2018-04-26 14:13:30 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas
scandir.pas * extend scanning of $modeswitch to support not only + and -, but also ON and OFF like other switches 2018-06-22 21:29:08 +00:00
scanner.pas * if an include file name ends in dot, and the file is not found, also search 2018-06-27 14:41:06 +00:00
switches.pas * allow $MinEnumSize, $PackSet and $PackRecords to be used with $Push and $Pop 2018-06-12 19:40:45 +00:00
symbase.pas
symconst.pas + add a flags field to the record init RTTI which declares whether 2018-06-20 19:00:17 +00:00
symcreat.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
symdef.pas + add method has_non_trivial_init_child() to tdef which provides access to the symtable's 2018-06-20 19:00:11 +00:00
symsym.pas * do not unroll loops if the counter variable is accessed outside the current scope 2018-06-03 15:12:48 +00:00
symtable.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
symtype.pas + add method has_non_trivial_init_child() to tdef which provides access to the symtable's 2018-06-20 19:00:11 +00:00
symutil.pas
syscinfo.pas
systems.inc + started implementing support for generating Microsoft CodeView debug 2018-05-16 15:25:33 +00:00
systems.pas arm-netbsd: added platform define and dummy rtl files so the build passes for this platform. port not functional yet 2018-03-05 15:38:46 +00:00
tgobj.pas Add some more debug information to temp-generation when compiled with -dEXTDEBUG 2018-05-28 22:39:21 +00:00
tokens.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
verbose.pas
version.pas
widestr.pas
wpo.pas
wpobase.pas
wpoinfo.pas

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