fpc/compiler
Jonas Maebe 281b3ad276 * fix case completeness and unreachable code warnings in compiler that would
be introduced by the next commit

git-svn-id: trunk@42046 -
2019-05-12 14:29:03 +00:00
..
aarch64 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
arm * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
armgen * move the homogenous float aggregate determination function to a common 2019-02-23 15:42:39 +00:00
avr avr: Add peephole optimization for in+sbr* bit test sequence. 2019-04-30 17:00:30 +00:00
generic
html
i386 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
i8086 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
jvm * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
llvm * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
m68k * clean up some things regarding explicit paraloc handling. this should fix m68k-amiga and powerpc-morphos builds after r41716 2019-03-18 01:19:18 +00:00
mips * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
msg * give an error when trying to call through to a C varargs routine with a 2019-02-24 19:58:44 +00:00
powerpc * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
powerpc64 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ppcgen * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
riscv * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
riscv32 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
riscv64 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
sparc * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
sparc64 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
sparcgen * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
systems * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
utils * record symbols that need to remain in their original order, and on Darwin 2019-04-20 18:18:10 +00:00
x86 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
x86_64 * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aasmbase.pas * moved sleb/uleb128 helpers to cutils and use SarInt64() intrinsic (based on 2019-04-21 10:07:42 +00:00
aasmcnst.pas * fixed double free in LLVM code generator after r41963 2019-05-02 19:40:00 +00:00
aasmdata.pas
aasmdef.pas
aasmsym.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aasmtai.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aggas.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aopt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aoptbase.pas
aoptda.pas
aoptobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
aoptutils.pas
assemble.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
blockutl.pas
browcol.pas
catch.pas
ccharset.pas
cclasses.pas * replaced TCmdStrListItem getter function with a property 2019-04-20 18:18:07 +00:00
cfidwarf.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
cfileutl.pas
cg64f32.pas
cgbase.pas
cghlcpu.pas
cgobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
cgutils.pas * first step towards supporting 32 bit targets with the LLVM code generator: 2019-01-29 21:39:09 +00:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.pas
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * added extra header to ppu inside a subsection, so we won't run into 2019-04-06 21:28:43 +00:00
cscript.pas
cstreams.pas
cutils.pas * moved sleb/uleb128 helpers to cutils and use SarInt64() intrinsic (based on 2019-04-21 10:07:42 +00:00
cwindirs.pp
dbgbase.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
dbgcodeview.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
dbgdwarf.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
dbgstabs.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
dbgstabx.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
defcmp.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
defutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
dirparse.pas
elfbase.pas
entfile.pas * micro-optimization for tentryfile.getbyte() (based on patch by 2019-04-22 15:16:33 +00:00
export.pas
expunix.pas
finput.pas
fmodule.pas * record symbols that need to remain in their original order, and on Darwin 2019-04-20 18:18:10 +00:00
fpccrc.pas
fpcdefs.inc - Add support for .option directive in riscv assembler. 2019-04-14 20:51:29 +00:00
fpcp.pas * added extra header to ppu inside a subsection, so we won't run into 2019-04-06 21:28:43 +00:00
fpkg.pas
fppu.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
gendef.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
globals.pas + introduce the $OPENBSD_LOCALBASE and $OPENBSD_X11BASE pseudo variables; these 2019-03-20 17:03:11 +00:00
globstat.pas
globtype.pas + add support for MultiHelpers modeswitch by Ryan Joseph for Mantis #35159 2019-05-10 14:04:45 +00:00
hlcg2ll.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
hlcgobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
htypechk.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * record symbols that need to remain in their original order, and on Darwin 2019-04-20 18:18:10 +00:00
macho.pas
machoutils.pas
Makefile + Add variables to use gppc386 utils more easily: 2019-04-03 07:17:40 +00:00
Makefile.fpc + Add variables to use gppc386 utils more easily: 2019-04-03 07:17:40 +00:00
MPWMake
msgidx.inc * give an error when trying to call through to a C varargs routine with a 2019-02-24 19:58:44 +00:00
msgtxt.inc * give an error when trying to call through to a C varargs routine with a 2019-02-24 19:58:44 +00:00
nadd.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nbas.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncal.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgadd.pas * first step towards supporting 32 bit targets with the LLVM code generator: 2019-01-29 21:39:09 +00:00
ncgbas.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgcal.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgcnv.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgcon.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgflw.pas
ncghlmat.pas
ncginl.pas * first step towards supporting 32 bit targets with the LLVM code generator: 2019-01-29 21:39:09 +00:00
ncgld.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgmat.pas * first step towards supporting 32 bit targets with the LLVM code generator: 2019-01-29 21:39:09 +00:00
ncgmem.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgnstfl.pas
ncgnstld.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgset.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncgvmt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncnv.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ncon.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nflw.pas * Do not set pi_needs_got in current_procinfo.flags at the node level, since the GOT usage can only be estimated there. Instead set the pi_needs_got flag at places where the GOT register is accessed during the code generation. This eliminates generation of the unneeded initialization of the GOT register and fixes linker errors when the _GLOBAL_OFFSET_TABLE_ symbol is referenced but no actual GOT references are present. 2019-02-25 13:35:40 +00:00
ngenutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ngtcon.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ninl.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nld.pas * Do not set pi_needs_got in current_procinfo.flags at the node level, since the GOT usage can only be estimated there. Instead set the pi_needs_got flag at places where the GOT register is accessed during the code generation. This eliminates generation of the unneeded initialization of the GOT register and fixes linker errors when the _GLOBAL_OFFSET_TABLE_ symbol is referenced but no actual GOT references are present. 2019-02-25 13:35:40 +00:00
nmat.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nmem.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nobj.pas * insert the hidden parameters for objectdef methods after resolving 2019-04-16 16:11:50 +00:00
nobjc.pas
node.pas
nopt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nset.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
nutils.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
objcasm.pas
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ogcoff.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ogelf.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
oglx.pas
ogmacho.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ogmap.pas
ognlm.pas
ogomf.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
omfbase.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
optbase.pas
optconstprop.pas
optcse.pas
optdead.pas
optdeadstore.pas
optdfa.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
options.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
optloadmodifystore.pas
optloop.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
opttail.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
optutils.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
optvirt.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
owar.pas
owbase.pas
owomflib.pas
parabase.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
paramgr.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
parser.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pass_1.pas
pass_2.pas
pbase.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pcp.pas Integrate patch from bug report 35409. 2019-04-18 14:08:03 +00:00
pdecl.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pdecobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pdecsub.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pdecvar.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pexports.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pexpr.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pgentype.pas
pgenutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pinline.pas
pkgutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
pmodules.pas * added extra header to ppu inside a subsection, so we won't run into 2019-04-06 21:28:43 +00:00
pp.lpi
pp.pas
pparautl.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
ppc68k.lpi
ppc8086.lpi
ppcaarch64.lpi * move the homogenous float aggregate determination function to a common 2019-02-23 15:42:39 +00:00
ppcarm.lpi * move the homogenous float aggregate determination function to a common 2019-02-23 15:42:39 +00:00
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcriscv32.lpi
ppcriscv64.lpi
ppcsparc64.lpi
ppcsparc.lpi
ppcx64.lpi
ppcx64llvm.lpi
ppheap.pas
ppu.pas * documented usage of ppuversion and ppulongversion 2019-04-13 14:58:15 +00:00
procdefutil.pas * fix for Mantis #30205: (adjusted) patch by Do-wan Kim to only use the default calling convention for exception handlers 2019-02-10 11:26:46 +00:00
procinfo.pas
pstatmnt.pas * set correct fileinfo for statements_til_end() block 2019-05-12 14:28:52 +00:00
psub.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
psystem.pas
ptconst.pas
ptype.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
raatt.pas
rabase.pas
rasm.pas
rautils.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
scandir.pas * added extra header to ppu inside a subsection, so we won't run into 2019-04-06 21:28:43 +00:00
scanner.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
switches.pas
symbase.pas
symconst.pas * keep track of whether a routine has a C-style variadic parameter in the 2019-02-23 15:42:45 +00:00
symcreat.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
symdef.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
symsym.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
symtable.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
symtype.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
symutil.pas * fix case completeness and unreachable code warnings in compiler that would 2019-05-12 14:29:03 +00:00
syscinfo.pas
systems.inc
systems.pas * record symbols that need to remain in their original order, and on Darwin 2019-04-20 18:18:10 +00:00
tgobj.pas
tokens.pas + nolinline modifier to specify that a routine must never be inlined 2019-02-03 21:00:17 +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