fpc/compiler
nickysn 7f9fa145e8 + added error message in case the HUGEPOINTERNORMALIZATION directive is used
with an invalid argument

git-svn-id: trunk@28152 -
2014-07-04 17:16:58 +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 Added an additional check to the MulAdd2MLA optimization. The operands of the multiplication weren't checked. 2014-06-26 06:05:08 +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: switch the div/mod node to shared code, leaving in place the specific optimization for division by power of 2. 2014-06-15 16:20:53 +00:00
i8086 * cs_hugeptr_normalization renamed to cs_hugeptr_arithmetic_normalization, 2014-07-04 13:14:06 +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 * fixes for the support for overriding properties on the JVM target: 2014-06-14 10:35:35 +00:00
m68k * m68k: initial support for ROL/ROR operations, defining 'cpurox' for CPU target can actually enable them. However it cannot be done outright because these instructions do not exits on Coldfire, and internal processing of RoX,Sar,BsX, etc. can not yet be switched depending on CPU subtype. 2014-06-29 17:49:30 +00:00
mips * MIPS: changed superregister number for $fcc0..$fcc7 to start from 32, so that range 0..31 can be used without translating into symbolic names. 2014-06-22 22:01:44 +00:00
msg + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
powerpc + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
powerpc64 * Moved procedures calculating "magic" numbers for division by constants from powerpc64/cgcpu.pas to cgutils.pas, so they can be reused for all targets. 2014-06-07 00:00:53 +00:00
ppcgen Add possibility to use GNU assembler gas on naitve AIX 2014-04-22 15:48:55 +00:00
sparc * SPARC: cleanup and simplify 64-bit code generator. Call cg.a_op64_const_reg_reg where possible to make use of its optimization abilities. 2014-06-16 19:22:52 +00:00
systems + added support for HeapMax in the far data i8086 memory models as well 2014-06-24 22:54:54 +00:00
utils * x86: Completely skip instructions that do not exist for target CPU bit width. The existing behavior of writing mnemonics and properties but no encoding allows an invalid instruction to be recognized by assembler reader or even generated by compiler, but it but won't assemble anyway. 2014-06-11 22:31:40 +00:00
vis + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
x86 * x86 intel syntax inline asm: allow a segment override (segcs,segds,seges,etc.) 2014-06-25 21:06:19 +00:00
x86_64 * x86: Completely skip instructions that do not exist for target CPU bit width. The existing behavior of writing mnemonics and properties but no encoding allows an invalid instruction to be recognized by assembler reader or even generated by compiler, but it but won't assemble anyway. 2014-06-11 22:31:40 +00:00
aasmbase.pas + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
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 + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +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 * when updating registers in RegUsedAfterInstruction, new reg. allocs should be ignored 2014-05-01 19:20:32 +00:00
asmutils.pas
assemble.pas assemble: don't include exec directly, but use GetProcessID to generate the unique file ID, because that maps to exec/FindTask on Amiga anyway 2014-05-04 23:16:52 +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 Print out command line before running it with -vx option 2014-01-12 23:06:19 +00:00
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 + Support (as target-independent as possible) optimization of division by constants: 2014-06-08 22:50:24 +00:00
cgutils.pas * calc_divconst_magic_unsigned: explicitly limit the shift amount to number of bits of target platform. This happens implicitly only on x86, on other 32-bit targets shifting by more than 31 bits calculates as zero. 2014-06-16 17:05:01 +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 * updated address of FSF (mantis #24646, patch by Alexey Svistunov) 2013-06-27 14:04:34 +00:00
cpid.pas
crefs.pas
cresstr.pas compiler: remove RST writer 2014-01-19 04:40:41 +00:00
cstreams.pas
cutils.pas
cwindirs.pp
dbgbase.pas * don't generate debug info for class fields in generic types 2014-06-10 19:05:10 +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 Added support for partial specialization. This should fix a few problems with generics, the tests for which will be added in the next days after I've verified them. 2014-06-05 20:05:05 +00:00
defutil.pas + add proper int type conversions for huge pointer arithmetic in pass_typecheck 2014-06-27 23:37:08 +00:00
dirparse.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
elfbase.pas
export.pas
expunix.pas
finput.pas * don't hard-code size of linebuf entries 2014-05-15 09:08:05 +00:00
fmodule.pas * Moved method check_hints from tmodule to tused_unit and modified it so warning messages are output with position info from associated unitsym. Resolves #25057. 2014-05-15 21:16:36 +00:00
fpccrc.pas
fpcdefs.inc * m68k: Transform 32-bit div/mod nodes into helper calls during pass 1. This is consistent with the way other targets do it, and results in pretty much nicer code. 2014-06-28 13:28:01 +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 heapmax support to the $M directive on i8086-msdos. It is currently 2014-06-23 20:17:17 +00:00
globstat.pas
globtype.pas + added directive {$HUGEPOINTERARITHMETICNORMALIZATION} to control the 2014-07-04 14:43:46 +00:00
hlcg2ll.pas * Load double-precision locations from integer registers directly into cgpara if sizes match and destination has a single location. 2014-06-30 17:50:34 +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 - m68k: removed "-dNOOPT" at build time, enabling the branch optimizer. Not tested thoroughly, but it does not change compiler behavior unless "-O1" or higher is supplied at command line. 2014-06-25 09:03:48 +00:00
Makefile.fpc - m68k: removed "-dNOOPT" at build time, enabling the branch optimizer. Not tested thoroughly, but it does not change compiler behavior unless "-O1" or higher is supplied at command line. 2014-06-25 09:03:48 +00:00
MPWMake
msgidx.inc + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
msgtxt.inc + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
nadd.pas * the handling of pointer arithmetic in pass_1 moved to a new virtual method 2014-07-03 13:47:47 +00:00
nbas.pas * take care of dyn. arrays in cse 2014-02-08 21:47:46 +00:00
ncal.pas + added support for nested procvars in the i8086 far data memory models 2014-05-22 23:44:09 +00:00
ncgadd.pas
ncgbas.pas
ncgcal.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
ncgcnv.pas * tcgtypeconvnode.second_int_to_int: disabled optimization from r25067 for m68k, because reg_cgsize() does not return expected values on that target. 2014-06-27 19:49:18 +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 * fixed the passing of array of const parameters in i8086 far data memory models 2014-05-01 12:46:29 +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 * do not crash with an internal error if an indexed access is done on a constant pointer node 2014-05-14 17:35:09 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas
ncgrtti.pas * Write RTTI for function arguments as children of function RTTI, resolves #24540,#25002,#25128 (bugs are basically duplicate, so adding only first of them to the testsuite). 2014-05-16 20:09:32 +00:00
ncgset.pas + 8-bit ALU support in tcgcasenode.genlinearcmplist 2014-04-26 12:41:58 +00:00
ncgutil.pas - Removed superfluous tai_align, the new_section procedure creates one itself. 2014-06-21 22:36:17 +00:00
ncgvmt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
ncnv.pas * fixed tbs/tb0607 for 64 bit targets: there the nf_internal flag isn't set 2014-06-15 15:26:56 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas + support for simplifying empty try-except statements 2014-05-10 12:47:28 +00:00
ngenutil.pas Fix for Mantis #26271: Don't trash local variables that are used for the Default() intrinsic. 2014-06-06 13:59:52 +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 * On 64-bit targets, handle abs(int64) internally, using the same code as for abs(longint), i.e. without branching. Both generic and x86-specific pass 2 code is already suitable for different operand sizes, only type checking needs removal of excessive conversions to 32 bits. 2014-06-17 18:45:11 +00:00
nld.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nmat.pas + Implemented target-independent optimization of signed "mod 2**N" as 2014-06-07 22:19:10 +00:00
nmem.pas * taddrnode: fixed getting the address of nested procs in tp mode in i8086 far 2014-05-23 22:38:07 +00:00
nobj.pas * TVMTBuilder.intf_allocate_vtbls: fixed the Ioffset calculation in i8086 far 2014-05-03 17:05:50 +00:00
nobjc.pas
node.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
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 * changed some random data label names to match the label names outputted by 2013-12-31 00:28:46 +00:00
objcutil.pas
ogbase.pas + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
ogcoff.pas + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
ogelf.pas + create a special 'heap' segment with reserved space equal to heapsize (i.e. 2014-06-19 14:14:01 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas
optconstprop.pas * propagate constants into the header of a for loop 2013-12-31 13:16:09 +00:00
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 * take care of tempinitcode when creating def information for tempcreatenodes 2014-01-25 09:40:51 +00:00
options.pas * show an error if the user attempts to create a dos .com file in an i8086 2014-06-26 22:52:57 +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 * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +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 + added heapmax support to the $M directive on i8086-msdos. It is currently 2014-06-23 20:17:17 +00:00
pass_1.pas
pass_2.pas
pbase.pas Fix for Mantis #26278. 2014-06-13 21:36:55 +00:00
pdecl.pas + added parser support for huge pointer declarations 2014-06-27 10:44:02 +00:00
pdecobj.pas Fix for Mantis #26123. 2014-06-06 15:19:45 +00:00
pdecsub.pas * don't allow default parameter values for parameter types that don't accept 2014-06-20 19:50:20 +00:00
pdecvar.pas * check for read/write after a newly declared property (mantis #26011) 2014-06-15 10:59:47 +00:00
pexports.pas
pexpr.pas Add a new warning message that is generated if an instance of an abstract class is created. This message is disabled by default, but can be switched on by using {$warn 4122 on} or {$warn 4122 error}. 2014-07-01 20:41:05 +00:00
pgenutil.pas Fix for Mantis #26176. Don't handle "type helper" as unique. 2014-06-06 13:26:21 +00:00
pinline.pas
pmodules.pas * Moved method check_hints from tmodule to tused_unit and modified it so warning messages are output with position info from associated unitsym. Resolves #25057. 2014-05-15 21:16:36 +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 + generate the stack segment for i8086 far data memory models from within fpc 2014-05-27 23:29:50 +00:00
ppcaarch64.lpi
ppcarm.lpi
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas Added support for partial specialization. This should fix a few problems with generics, the tests for which will be added in the next days after I've verified them. 2014-06-05 20:05:05 +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 * allow the "then" part of an if-statement to be terminated by any endtoken, 2014-04-30 19:25:06 +00:00
psub.pas * only check for _PROPERTY as a regular token, so that 2014-05-10 16:03:02 +00:00
psystem.pas * fixed system.openchararraytype after r27970 (mantis #26359) 2014-06-18 20:20:04 +00:00
ptconst.pas
ptype.pas Fix for Mantis #26288. Types declared inside a generic must have the df_generic flag set. Period. 2014-06-06 14:22:17 +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 error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
scanner.pas * switch to asmmode_i8086_intel instead of asmmode_i386_intel on i8086 when tp 2014-06-25 22:02:03 +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 Added support for partial specialization. This should fix a few problems with generics, the tests for which will be added in the next days after I've verified them. 2014-06-05 20:05:05 +00:00
symnot.pas
symsym.pas * fixes for the support for overriding properties on the JVM target: 2014-06-14 10:35:35 +00:00
symtable.pas Fix for Mantis #25605. 2014-04-11 16:13:44 +00:00
symtype.pas * support for raising the visibility of inherited properties on the JVM 2014-06-12 11:08:44 +00:00
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 + added parser support for huge pointer declarations 2014-06-27 10:44:02 +00:00
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 * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
wpoinfo.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00

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