fpc/compiler
pierre 92acd38f40 Fix for bug report #34380
git-svn-id: trunk@39986 -
2018-10-18 20:21:54 +00:00
..
aarch64 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
arm Fix for bug report #34380 2018-10-18 20:21:54 +00:00
avr Fix for bug report #34380 2018-10-18 20:21:54 +00:00
generic
html
i386 + patch by J. Gareth Moreton to support BMI2 instructions 2018-10-07 10:10:19 +00:00
i8086 * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
jvm * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
llvm * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
m68k Fix for bug report #34380 2018-10-18 20:21:54 +00:00
mips Fix for bug report #34380 2018-10-18 20:21:54 +00:00
msg Add -Tlinux and -Tembedded help lines for riscv32 and riscv64 compilers 2018-10-16 10:41:27 +00:00
powerpc Fix for bug report #34380 2018-10-18 20:21:54 +00:00
powerpc64 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
ppcgen * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
riscv Fix compilation with -dEXTDEBUG 2018-10-13 11:34:53 +00:00
riscv32 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
riscv64 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
sparc * split create_paraloc_info_intern for sparc32 and sparc64 2017-08-20 15:21:51 +00:00
sparc64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
sparcgen Fix for bug report #34380 2018-10-18 20:21:54 +00:00
systems + added support for x86_64-android target. 2018-10-17 16:56:27 +00:00
utils * Regenerated makefiles to support x86_64-android. 2018-10-17 17:12:20 +00:00
x86 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
x86_64 + added support for x86_64-android target. 2018-10-17 16:56:27 +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 + add a method to emit a reference to a pooled shortstring constant (aka one per unit); very useful for new RTTI tables to avoid poluting the binary with string constants 2018-08-29 19:20:20 +00:00
aasmdata.pas * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas Add rounding mode operands. 2018-09-01 19:48:44 +00:00
aggas.pas Redo overflow checking code. 2018-09-16 18:37:59 +00:00
aopt.pas
aoptbase.pas + define cpudelayslot: set during compiler compilation for CPUs having branch instructions with delay slot (MIPS, SPARC) 2017-08-20 17:20:38 +00:00
aoptda.pas
aoptobj.pas Add RV64GC cpu type. 2018-07-21 22:34:42 +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 * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
cfidwarf.pas
cfileutl.pas another fix for the new warning introduced in r39347, hopefully it fixes win32 build 2018-06-30 16:51:41 +00:00
cg64f32.pas
cgbase.pas Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +00:00
cghlcpu.pas
cgobj.pas + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +00:00
cgutils.pas Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +00:00
cmsgs.pas
comphook.pas
compiler.pas * print used unit scopes 2018-05-07 19:48:26 +00:00
compinnr.pas + inline support for the x86 'in' and 'out' instructions. Currently only enabled 2018-07-03 17:01:42 +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 * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
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 * Fixed overflow error for the qword version of align() when i=0. 2018-10-17 13:18:45 +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 Fix for bug report #34380 2018-10-18 20:21:54 +00:00
dbgstabs.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
dbgstabx.pas
defcmp.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
defutil.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +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 Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc * Enabled safecall support for aarch64 to be on par with other cpus. 2018-10-08 08:37:18 +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 Add obsolete prefix to cpu_ia64, system_ia64_win64 and system_ia64_embedded, ia64 specfic code has been removed in rev 30836 dated 2015-05-09 2017-08-04 08:54:34 +00:00
globals.pas Add RV64GC cpu type. 2018-07-21 22:34:42 +00:00
globstat.pas
globtype.pas Set MaxLocalsSize according to address size not register size 2018-10-13 12:00:31 +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 * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +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 * Regenerated makefiles to support x86_64-android. 2018-10-17 17:12:20 +00:00
Makefile.fpc Merged riscv_new branch 2018-09-26 19:49:08 +00:00
MPWMake
msgidx.inc Add -Tlinux and -Tembedded help lines for riscv32 and riscv64 compilers 2018-10-16 10:41:27 +00:00
msgtxt.inc Add -Tlinux and -Tembedded help lines for riscv32 and riscv64 compilers 2018-10-16 10:41:27 +00:00
nadd.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
nbas.pas * forgot to commit extension to tspecializenode 2018-09-21 15:17:52 +00:00
ncal.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
ncgadd.pas
ncgbas.pas * fixed some issues to get correct values of section_count, works better than before but it is still not perfect for unknown reasons 2018-09-12 20:33:18 +00:00
ncgcal.pas o fix several issues with floating point exceptions 2018-08-19 15:26:00 +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 * Fixed bug #17413 (and the tw17413 test) for aarch64 by adding additional check. 2018-10-16 21:16:30 +00:00
ncgmat.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
ncgmem.pas * use sizeuinttype, instead of ptruinttype for the indexdef conversion in 2018-07-19 15:27:14 +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 * Reverted r39947. According to Sven, the $self parameters is not required to be first parameter in RTTI. Appropriate tests will be fixed. 2018-10-17 08:52:57 +00:00
ncgset.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
ncgutil.pas * aarch64: Fixed loading of a function result which is returned in 4 32-bit MM registers to 2 64-bit int registers. Bug #30329. 2018-10-17 11:41:34 +00:00
ncgvmt.pas * move getrecorddef and gettabledef from TVMTWritter to symdef as they might be used from the RTTI as well 2018-08-29 19:21:23 +00:00
ncnv.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
ncon.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
nflw.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
ngenutil.pas * fixed execution order of implicit finalization and class destructors: first 2018-04-08 15:41:00 +00:00
ngtcon.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
ninl.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
nld.pas * fix for Mantis #34355: correctly check whether the array constructor is empty (aka []) or not 2018-10-07 12:25:24 +00:00
nmat.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
nmem.pas * accept dereferences in generics definitions, resolves #33700 properly 2018-07-13 21:00:33 +00:00
nobj.pas
nobjc.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
node.pas * allow nil to be assigned to generic types, resolves #34037 2018-10-14 07:38:13 +00:00
nopt.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
nset.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
nutils.pas * correctly take care of short boolean evaluation when rearranging nodes during CSE 2018-09-25 20:31:03 +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 * patch by J. Gareth Moreton to fix 33909 2018-07-01 12:54:30 +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 * more compilation fixes 2018-06-30 12:48:54 +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 * correctly take care of short boolean evaluation when rearranging nodes during CSE 2018-09-25 20:31:03 +00:00
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas * Reverted r39961. 2018-10-17 18:56:29 +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 * properly pass execution weight in SetExecutionWeight 2018-08-16 20:45:36 +00:00
optvirt.pas
owar.pas
owbase.pas
owomflib.pas * more compilation fixes 2018-06-30 12:48:54 +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
pass_2.pas Downgrade some warnings to notes for EXTDEBUG 2018-10-13 11:35:34 +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 * only i386 uses oldfpccall for interrupts, all other architectures use now stdcall, resolves #34317 2018-09-27 21:00:35 +00:00
pdecvar.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
pexports.pas
pexpr.pas * allow nil to be assigned to generic types, resolves #34037 2018-10-14 07:38:13 +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 * fix for Mantis #34333: improve error output for incorrect calls to Copy() 2018-09-26 21:33:51 +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 * two comment spelling fixes. Mantis #34092 & #34097 2018-08-08 08:39:20 +00:00
pp.lpi
pp.pas Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +00:00
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
ppcriscv32.lpi * RISC-V 32 compilation fixed 2018-07-26 19:18:47 +00:00
ppcriscv64.lpi * fix assembling with official binutils 2018-07-22 13:10:24 +00:00
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 * increase PPU version after the addition of the field to keep track of management operators (don't seperately to help merging) 2018-09-03 18:00:30 +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 Merged riscv_new branch 2018-09-26 19:49:08 +00:00
psystem.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
ptconst.pas
ptype.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
raatt.pas Write real atomic operations, and add memory barrier operations. 2018-07-29 16:43:09 +00:00
rabase.pas
rasm.pas * forgotten comment 2018-02-06 21:38:51 +00:00
rautils.pas Write real atomic operations, and add memory barrier operations. 2018-07-29 16:43:09 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * avoid overflows of execution weight 2018-08-16 20:45:36 +00:00
scandir.pas + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +00:00
scanner.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +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 + add a comment to the destructor of tsymtable so that others (and maybe me a well) will hopefully see that the destructor of that class is not completely trivial! 2018-08-31 19:16:48 +00:00
symconst.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +00:00
symcreat.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
symdef.pas * converted Boolean8 to an internal type, and mapped Boolean to the 2018-10-16 21:14:18 +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 * fix big endian targets by using an explicit assignment with typecast instead of an absolute variable 2018-09-10 21:12:29 +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 Add arm-palmos target to list supporting po_syscall 2017-09-15 20:25:59 +00:00
systems.inc + added support for x86_64-android target. 2018-10-17 16:56:27 +00:00
systems.pas + added support for x86_64-android target. 2018-10-17 16:56:27 +00:00
tgobj.pas * Fixed range check errors. 2018-10-17 19:12:27 +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 Merged riscv_new branch 2018-09-26 19:49:08 +00:00
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