fpc/compiler
florian 4f052e4f90 o fix several issues with floating point exceptions
+ mask underflow and precision on startup
  + check for floating point exceptions after inlined float routine helpers
  - do not check for floating point exceptions after floating point moves 

git-svn-id: branches/laksen/riscv_new@39645 -
2018-08-19 15:26:00 +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 * better register de-allocation after CWD/CWB 2018-07-07 21:38:42 +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 + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +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
riscv o fix several issues with floating point exceptions 2018-08-19 15:26:00 +00:00
riscv32 * RISC-V 32 compilation fixed 2018-07-26 19:18:47 +00:00
riscv64 Write real atomic operations, and add memory barrier operations. 2018-07-29 16:43:09 +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 Added library search paths. 2018-07-29 13:08:15 +00:00
utils Regenerated makefiles. 2018-07-20 10:40:57 +00:00
x86 + added x86 (i8086, i386 and x86_64) intrinsics fpc_x86_get_cs/ss/ds/es/fs/gs 2018-07-11 14:19:40 +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
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 Write real atomic operations, and add memory barrier operations. 2018-07-29 16:43:09 +00:00
aggas.pas
aopt.pas
aoptbase.pas
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 * broken compilation after r39347 fixed 2018-06-30 12:30:25 +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
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cscript.pas
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
dbgcodeview.pas + added new debug output option -godwarfomflinnum for generating line number 2018-05-17 14:38:50 +00:00
dbgdwarf.pas * generate no uleb with differences for line information 2018-07-22 19:43:47 +00:00
dbgstabs.pas * more compilation fixes 2018-06-30 12:48:54 +00:00
dbgstabx.pas
defcmp.pas * support for non-ASCII widechar constants (mantis #31605) 2018-04-10 19:24:15 +00:00
defutil.pas
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 Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +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 RV64GC cpu type. 2018-07-21 22:34:42 +00:00
globstat.pas
globtype.pas + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +00:00
hlcg2ll.pas
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
macho.pas
machoutils.pas
Makefile Regenerated makefiles. 2018-07-20 10:40:57 +00:00
Makefile.fpc Update packages with information about RiscV. 2018-07-20 10:40:28 +00:00
MPWMake
msgidx.inc + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +00:00
msgtxt.inc + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +00:00
nadd.pas * might_have_sideeffects gets flags: if mhs_exceptions is passed, nodes which might cause an exception are considered as having a side effect 2018-07-22 13:11:21 +00:00
nbas.pas
ncal.pas o fix several issues with floating point exceptions 2018-08-19 15:26: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 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 * ensure that load nodes only substitute temps in case both references point 2018-04-27 19:18:59 +00:00
ncgmat.pas
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 * 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
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 o fix several issues with floating point exceptions 2018-08-19 15:26:00 +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 * constant folding of not must check if the deftype is really an orddef, resolves #33696 2018-07-07 14:17:41 +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 * 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 * might_have_sideeffects gets flags: if mhs_exceptions is passed, nodes which might cause an exception are considered as having a side effect 2018-07-22 13:11:21 +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
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
ogmap.pas
ognlm.pas
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
optdead.pas
optdeadstore.pas
optdfa.pas
options.pas + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +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 * 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
pass_1.pas
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
pdecobj.pas + add support for threadvars inside classes 2018-06-23 13:49:12 +00:00
pdecsub.pas + add missing exit as mentioned by J. Gareth Moreton in #33754 2018-07-07 14:53:56 +00:00
pdecvar.pas * patch by Ondrej Pokorny: the stored property modifier does not delete the inherited default value anymore, resolves #33564 2018-07-01 20:11:13 +00:00
pexports.pas
pexpr.pas * accept dereferences in generics definitions, resolves #33700 properly 2018-07-13 21:00:33 +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
pkgutil.pas
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 Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +00:00
pparautl.pas
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
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
ppcx64llvm.lpi
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 Updated dynlinker filename. 2018-07-28 20:06:06 +00:00
psystem.pas Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +00:00
ptconst.pas
ptype.pas + add support for threadvars in records 2018-06-23 13:49:16 +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
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
scandir.pas + basic infrastructure to generate code for floating point exception 2018-08-19 10:54:45 +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 * patch by J. Gareth Moreton: clarity in directive conflict error messages, resolves #33754 2018-07-07 14:46:01 +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 Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +00:00
systems.pas Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +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
verbose.pas
version.pas Added RiscV32/64 target, from a cleaned up version of branches/laksen/riscv/trunk. 2018-07-20 08:21:15 +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