fpc/compiler
nickysn e8b9d9bf41 * converted tcgtypeconvnode.second_nil_to_methodprocvar to the high level code
generator, so it handles i8086 near and far pointers generically
- removed t8086typeconvnode.second_nil_to_methodprocvar, since it's no longer
  necessary

git-svn-id: trunk@27678 -
2014-04-28 01:05:14 +00:00
..
aarch64 Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
alpha Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
arm * ARM: Test if range check of floating point constants is necessary in the same way as on other targets. This should have been part of r10940 6 years ago... 2014-04-22 06:51:54 +00:00
avr Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
generic Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
html
i386 * i386: For integer comparisons with zero, emit "test $-1,%reg" instead of "test %reg,%reg". It is more spilling-friendly, because it transforms into "test $-1,spilltemp" and does not require a register. 2014-04-20 19:16:58 +00:00
i8086 * converted tcgtypeconvnode.second_nil_to_methodprocvar to the high level code 2014-04-28 01:05:14 +00:00
ia64 Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
jvm Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
m68k m68k: don't find helper 'opcodes' as real opcodes... (i guess is the right solution for the problem which r22796 originally aimed to fix) 2014-04-13 23:20:29 +00:00
mips Fix a typo. The CPU specific version of "ttypesym" should be called "tcputypesym" and not "tcpuypesym". 2014-04-11 14:30:59 +00:00
msg + show an error message 'procedure must be far' if an attempt is made to convert 2014-04-13 19:29:28 +00:00
powerpc * powerpc/powerpc64: Fixed floating point compares to be IEEE-754 compliant. Mantis #9362. 2014-04-19 19:54:24 +00:00
powerpc64 * powerpc/powerpc64: Fixed floating point compares to be IEEE-754 compliant. Mantis #9362. 2014-04-19 19:54:24 +00:00
ppcgen Add possibility to use GNU assembler gas on naitve AIX 2014-04-22 15:48:55 +00:00
sparc * SPARC: convert carry flag into register without branching. 2014-04-20 19:30:59 +00:00
systems Use script gnu ar for go32v2 target 2014-04-10 16:20:14 +00:00
utils Fix remaining failure for make testppudump at compiler level 2014-04-13 19:31:55 +00:00
vis + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
x86 * try to registers more cleverly during fma code generation 2014-04-26 18:11:13 +00:00
x86_64 + support for FMA intrinsic: if there is no hardware support, the compiler throws an error. 2014-04-13 19:21:54 +00:00
aasmbase.pas
aasmdata.pas
aasmsym.pas
aasmtai.pas + Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386. 2014-02-26 14:54:47 +00:00
aggas.pas Fix AIX assembler issue by enabling WriteExtraFooter with modified output 2014-04-20 23:08:38 +00:00
agjasmin.pas * moved jvm tprocdef name mangling to jvm-specific descendant class 2014-03-30 21:04:29 +00:00
aopt.pas * honour -Oonopeephole 2014-03-11 23:18:58 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas
asmutils.pas
assemble.pas Add SmartFilesCount number to AddAsmCommand call for SmartAsm 2014-04-11 13:37:00 +00:00
browcol.pas
bsdcompile
catch.pas
ccharset.pas
cclasses.pas * eliminate classes unit from the compiler by copying an array of string based 2014-03-30 12:03:10 +00:00
cfidwarf.pas
cfileutl.pas
cg64f32.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
cgbase.pas + added tcgsize2str function 2014-04-03 16:50:50 +00:00
cghlcpu.pas
cgobj.pas - rm the cpu16bitalu and cpu64bitalu ifdefs from tcg.a_load_ref_cgpara as well 2014-04-26 14:33:46 +00:00
cgutils.pas * moved jvm-specific tarrayreftype from cgutils to jvm/cpubase 2014-03-16 11:24:21 +00:00
cmsgs.pas
comphook.pas
compiler.pas
compinnr.inc + support for FMA intrinsic: if there is no hardware support, the compiler throws an error. 2014-04-13 19:21:54 +00:00
comprsrc.pas
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas Try to avoid problems with generic types for stabs/stabx 2014-04-22 21:28:45 +00:00
dbgdwarf.pas
dbgstabs.pas Do not consider ansi/wide/unicode strings as taggable for stabs 2014-04-22 22:32:14 +00:00
dbgstabx.pas Do not consider ansi/wide/unicode strings as taggable for stabs 2014-04-22 22:32:14 +00:00
defcmp.pas * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
defutil.pas * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
dirparse.pas
elfbase.pas
export.pas
expunix.pas
finput.pas
fmodule.pas
fpccrc.pas
fpcdefs.inc * Moved fixup_jmps to target-specific classes for powerpc,powerpc64 and MIPS, cleaned out remaining $ifdef's. A slight functionality change is that fixup_jmps is now called before adding the procedure end symbol, not after, but that should not matter. 2014-04-02 14:17:23 +00:00
fppu.pas * i8086 small and tiny memory model ppus made incompatible. Rationale: 2014-04-10 16:31:06 +00:00
gendef.pas
globals.pas + added support for mixing near and far procedures in the i8086 far code memory 2014-04-16 23:09:18 +00:00
globstat.pas
globtype.pas + added support for units with code larger than 64kb in the far code i8086 2014-04-20 19:03:14 +00:00
hlcg2ll.pas * 16/8-bit alu fix in thlcg2ll.location_force_reg for the 32->64 conversion of LOC_CONSTANT sources 2014-04-25 13:20:18 +00:00
hlcgobj.pas - rm the ifdef cpu16bitalu and cpu64bitalu from thlcgobj.a_load_ref_cgpara, 2014-04-26 13:46:36 +00:00
htypechk.pas * Modified behavior of CExtended type in overload selection: it is made more compatible to Extended than to Double and Single. Also an Extended parameter selects a CExtended overload (if available) instead of Double. 2014-03-30 07:31:58 +00:00
impdef.pas
import.pas
ldscript.pas
link.pas * pass the -b option to wlib to avoid creating .bak files 2014-03-24 17:35:11 +00:00
macho.pas
machoutils.pas
Makefile
Makefile.fpc
MPWMake
msgidx.inc + show an error message 'procedure must be far' if an attempt is made to convert 2014-04-13 19:29:28 +00:00
msgtxt.inc + show an error message 'procedure must be far' if an attempt is made to convert 2014-04-13 19:29:28 +00:00
nadd.pas * Fixed floating-point comparisons for softfloat targets (part of Mantis #9362). 2014-04-15 23:36:21 +00:00
nbas.pas * take care of dyn. arrays in cse 2014-02-08 21:47:46 +00:00
ncal.pas + support for FMA intrinsic: if there is no hardware support, the compiler throws an error. 2014-04-13 19:21:54 +00:00
ncgadd.pas
ncgbas.pas
ncgcal.pas * moved ncgutil.maybechangeloadnodereg() to hlcg.maybe_change_load_node_reg() 2014-03-16 11:24:40 +00:00
ncgcnv.pas * converted tcgtypeconvnode.second_nil_to_methodprocvar to the high level code 2014-04-28 01:05:14 +00:00
ncgcon.pas * fixed tcgstringconstnode.pass_generate_code for i8086 far data memory models 2014-03-28 22:34:30 +00:00
ncgflw.pas * handle the result of FPC_CATCHES via the high level code generator (which makes it i8086 far pointer safe) 2014-04-02 14:25:19 +00:00
ncginl.pas * fixed length(ansistring/widestring/dynarray) in i8086 far data memory models 2014-04-27 02:26:35 +00:00
ncgld.pas + added i8086 specific implementation of thlcgcpu.a_load_loc_ref, which handles 2014-04-13 01:38:43 +00:00
ncgmat.pas * 16/8-bit alu fix in tcgunaryminusnode.emit_float_sign_change 2014-04-26 18:58:22 +00:00
ncgmem.pas * fix for #25956: left is not necessarily the array load node when accessing an open array/array of const element 2014-04-06 15:15:16 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas
ncgset.pas + 8-bit ALU support in tcgcasenode.genlinearcmplist 2014-04-26 12:41:58 +00:00
ncgutil.pas * i8086 far data model fixes in the copying of openarray value params 2014-04-04 20:18:47 +00:00
ncgvmt.pas * removed ifdef jvm from ncgvmt 2014-03-16 11:24:44 +00:00
ncnv.pas * moved pbestrealtype from symdef to symcpu 2014-04-01 21:41:37 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas * use voidcodepointertype in traisenode.pass_typecheck to avoid ifdef i8086 2014-04-11 21:59:07 +00:00
ngenutil.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
ngtcon.pas * fixed i8086 far pointer typed constants that are initialized with nil 2014-04-03 21:39:00 +00:00
ninl.pas + support for FMA intrinsic: if there is no hardware support, the compiler throws an error. 2014-04-13 19:21:54 +00:00
nld.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nmat.pas * unified the 8-bit and 16-bit alu handling in tshlshrnode.pass_typecheck 2014-04-23 12:53:31 +00:00
nmem.pas * the ifdef i8086 in taddrnode.pass_typecheck removed via using tabstractprocdef.address_type 2014-04-12 14:49:54 +00:00
nobj.pas * moved jvm tprocdef name mangling to jvm-specific descendant class 2014-03-30 21:04:29 +00:00
nobjc.pas
node.pas
nopt.pas
nset.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nstate.pas
nutils.pas * better complexity estimation for some inline nodes 2014-04-27 14:28:01 +00:00
objcdef.pas
objcgutl.pas
objcutil.pas
ogbase.pas + Support GOT/gp-relative constants in GAS and internal assemblers, MIPS and i386. 2014-02-26 14:54:47 +00:00
ogcoff.pas * x86_64-win64: fixed handling of RELOC_RELATIVE_1..RELOC_RELATIVE_5 COFF relocations, they were off by 4 bytes, causing failure in tests/test/tcalext.pp. 2014-04-01 16:26:56 +00:00
ogelf.pas * Fixed linking of non-PIC code to indirect functions in shared objects. 2014-04-06 23:04:57 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas
optconstprop.pas
optcse.pas + apply cse to more inline nodes 2014-04-27 14:28:17 +00:00
optdead.pas * eliminate classes unit from the compiler by copying an array of string based 2014-03-30 12:03:10 +00:00
optdeadstore.pas
optdfa.pas
options.pas * don't print a 'smart link requires external linker' warning in _any_ of the 2014-04-12 08:19:23 +00:00
optloop.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
opttail.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
optutils.pas
optvirt.pas + support for nested classes in the WPO devirtualisation and VMT 2014-03-16 19:46:17 +00:00
owar.pas
owbase.pas
parabase.pas
paramgr.pas - rm bogus ifdef cpu16bitalu from tparamanager.allocparaloc and .freecgpara 2014-04-26 13:37:53 +00:00
parser.pas
pass_1.pas
pass_2.pas
pbase.pas
pdecl.pas * moved x86-specific tpointerdef functionality to architecture-specific 2014-03-30 21:04:36 +00:00
pdecobj.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pdecsub.pas + added virtual methods tabstractprocdef.declared_far and .declared_near, which 2014-04-12 12:55:05 +00:00
pdecvar.pas * isolated segment-related functionality of tabsolutevarsym into i386/i8086- 2014-03-30 15:42:53 +00:00
pexports.pas
pexpr.pas Fix for Mantis #25915. 2014-04-04 15:48:06 +00:00
pgenutil.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pinline.pas
pmodules.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pp.lpi + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
pp.pas
pparautl.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
ppc68k.lpi
ppc8086.lpi * fixed i8086 far pointer typed constants that are initialized with nil 2014-04-03 21:39:00 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * i8086 small and tiny memory model ppus made incompatible. Rationale: 2014-04-10 16:31:06 +00:00
ppx86_64.lpi
procinfo.pas * Added virtual method tprocinfo.postprocess_code and moved target-specific processing from base class into target-specific descendant classes (ARM and AVR, other targets still to do). 2014-04-02 13:14:06 +00:00
pstatmnt.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
psub.pas * Moved fixup_jmps to target-specific classes for powerpc,powerpc64 and MIPS, cleaned out remaining $ifdef's. A slight functionality change is that fixup_jmps is now called before adding the procedure end symbol, not after, but that should not matter. 2014-04-02 14:17:23 +00:00
psystem.pas * use voidcodepointertype when creating the methodpointertype in 2014-04-11 23:41:53 +00:00
ptconst.pas
ptype.pas Fix for Mantis #25600. 2014-04-11 14:57:23 +00:00
raatt.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
rabase.pas
rasm.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
rautils.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas * never alias/coalesce cpu registers that are not usable by the register 2014-03-11 23:18:45 +00:00
scandir.pas + added support for units with code larger than 64kb in the far code i8086 2014-04-20 19:03:14 +00:00
scanner.pas * do not crash with an ie on illegal boolean expressions in conditional compilation directives, resolves #25951 2014-04-27 15:50:37 +00:00
script.pas
switches.pas + added the $F switch to the turbo and macSwitchTable, as that takes precedence 2014-04-13 15:14:43 +00:00
symbase.pas
symconst.pas * moved po_has_inlininginfo from procoptions to procimploptions so that 2014-03-19 21:53:10 +00:00
symcreat.pas Fix for Mantis #19697. For this we need to have the internal static var symbol know that it came from a static field var symbol so that we can check that for generic or not. 2014-04-04 16:15:41 +00:00
symdef.pas * i8086 and i386-specific code from tabstractprocdef.is_pushleftright moved to 2014-04-12 15:34:08 +00:00
symnot.pas
symsym.pas * changed the severity of messages showing overloaded routines with all 2014-04-10 21:07:17 +00:00
symtable.pas Fix for Mantis #25605. 2014-04-11 16:13:44 +00:00
symtype.pas
symutil.pas
systems.inc Add possibility to use GNU assembler gas on naitve AIX 2014-04-22 15:48:55 +00:00
systems.pas * partially merged the mips-embedded branch of Michael Ring: 2014-03-19 21:25:38 +00:00
tgobj.pas
tokens.pas
verbose.pas
version.pas
widestr.pas * add support for Latin-2 character sets (ISO & IBM) 2014-03-27 22:48:13 +00:00
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