fpc/compiler
svenbarth 943a094683 Fix for Mantis #27320.
symdef.pas, tprocdef:
  * defaultmangledname: don't use the potentially unassigned hp, but use - as intended - returndef if it is set (analog to the non-CRC part)

+ added test

git-svn-id: trunk@29537 -
2015-01-23 16:47:23 +00:00
..
aarch64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
alpha - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
arm - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
avr - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
generic - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
html
i386 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
i8086 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ia64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
jvm - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
m68k - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
mips - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
msg * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
powerpc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
powerpc64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ppcgen - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
sparc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
systems * Add code to try old GNU emulation if new names are not recognized 2015-01-22 16:45:52 +00:00
utils * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
vis - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
x86 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
x86_64 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aasmbase.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aasmdata.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aasmsym.pas
aasmtai.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aggas.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
agjasmin.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
aopt.pas * honour -Oonopeephole 2014-03-11 23:18:58 +00:00
aoptbase.pas
aoptcs.pas
aoptda.pas
aoptobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
asmutils.pas
assemble.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
blockutl.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
browcol.pas Avoid infinite recursion on generic classes for IDE browser 2013-11-12 16:39:20 +00:00
bsdcompile
catch.pas
ccharset.pas
cclasses.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cfidwarf.pas
cfileutl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
compinnr.inc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
comprsrc.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.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
cresstr.pas compiler: remove RST writer 2014-01-19 04:40:41 +00:00
cstreams.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
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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
dbgstabs.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
defutil.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
finput.pas * don't hard-code size of linebuf entries 2014-05-15 09:08:05 +00:00
fmodule.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
gendef.pas
globals.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
globstat.pas
globtype.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
hlcg2ll.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
impdef.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
Makefile.fpc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
MPWMake
msgidx.inc * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
msgtxt.inc * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
nadd.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
nbas.pas * changed the "laststatement" parameter of internalstatements() from "var" 2014-07-18 09:09:16 +00:00
ncal.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ncgadd.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
ncgbas.pas * 16-bit and 8-bit ALU fixes in tcgtempdeletenode.pass_generate_code 2013-12-23 14:09:28 +00:00
ncgcal.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ncgcnv.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgcon.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 Fix for Mantis #26177. Use the correct value for the method data when using a method pointer of a type or record helper. 2014-07-05 08:54:10 +00:00
ncgmat.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgmem.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.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
ncgrtti.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgset.pas + 8-bit ALU support in tcgcasenode.genlinearcmplist 2014-04-26 12:41:58 +00:00
ncgutil.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ncgvmt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
ncnv.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ngenutil.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ngtcon.pas initialize pd to fix a warning with O3+ 2015-01-22 12:07:50 +00:00
ninl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
nld.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nmat.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
nmem.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
objcdef.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
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 + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
ogbase.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ogcoff.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ogelf.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
oglx.pas
ogmacho.pas
ogmap.pas
ognlm.pas
optbase.pas * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
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 * be more careful when removing dead stores 2013-12-28 20:19:42 +00:00
optdfa.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
options.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
optloop.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
opttail.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
optutils.pas * set successor node for load nodes as well, they can be generated when inlining 2013-12-28 20:19:38 +00:00
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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
parser.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pass_1.pas
pass_2.pas
pbase.pas Fix for Mantis #26278. 2014-06-13 21:36:55 +00:00
pdecl.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
pdecobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pdecsub.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pgenutil.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pinline.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pmodules.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
pp.lpi + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
pp.pas
pparautl.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
psystem.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ptconst.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
ptype.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
raatt.pas - reverted partial commit of merge 2015-01-21 23:24:37 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
scandir.pas + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
scanner.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
script.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
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 * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
symcreat.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
symdef.pas Fix for Mantis #27320. 2015-01-23 16:47:23 +00:00
symnot.pas
symsym.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
symtable.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +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 - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
systems.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
tgobj.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
tokens.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
verbose.pas
version.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
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 * call "message" rather than "cgmessage" when throwing fatal errors, because 2014-07-18 09:09:21 +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