fpc/compiler
pierre 5fa93e2a1e ------------------------------------------------------------------------
r41065 | pierre | 2019-01-25 08:00:58 +0000 (Fri, 25 Jan 2019) | 1 line

Fix compilation (with -st option) of compiler for macos OS target
------------------------------------------------------------------------
--- Merging r41065 into '.':
U    compiler/fpcdefs.inc
U    compiler/cfileutl.pas
--- Recording mergeinfo for merge of r41065 into '.':
 U   .
------------------------------------------------------------------------
r41074 | pierre | 2019-01-25 18:35:33 +0000 (Fri, 25 Jan 2019) | 1 line

Add missing ESysEMSGSIZE and ESysEOPNOTSUPP for beos
------------------------------------------------------------------------
--- Merging r41074 into '.':
U    rtl/beos/errno.inc
--- Recording mergeinfo for merge of r41074 into '.':
 G   .

git-svn-id: branches/fixes_3_2@41227 -
2019-02-05 07:43:20 +00:00
..
aarch64 --- Merging r40512 into '.': 2019-01-01 16:49:46 +00:00
arm Merge of revisions 40277 2018-12-31 15:48:08 +00:00
avr Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
generic
html
i386 Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +00:00
i8086 Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
jvm --- Merging r40512 into '.': 2019-01-01 16:49:46 +00:00
llvm --- Merging r40512 into '.': 2019-01-01 16:49:46 +00:00
m68k Merge of revisions 40277 2018-12-31 15:48:08 +00:00
mips Merge of trunk commits 39983,39986,40109 2018-12-06 22:17:57 +00:00
msg --- Recording mergeinfo for merge of r39673 into '.': 2018-09-27 12:36:19 +00:00
powerpc Partial merge of commit #39990 2019-01-07 15:35:31 +00:00
powerpc64 Merge of trunk commits 39983,39986,40109 2018-12-06 22:17:57 +00:00
ppcgen Also allow clang assembler for powerpc64-darwin target 2018-08-06 16:13:05 +00:00
sparc * split create_paraloc_info_intern for sparc32 and sparc64 2017-08-20 15:21:51 +00:00
sparc64 * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
sparcgen Merge of revisions 39731 39825 39849 39912 39913 39914 39924 39935 39999 40000 40001 40026 40115 40132 40163 from trunk to fixes_3_2 2018-12-22 22:19:05 +00:00
systems ------------------------------------------------------------------------ 2019-01-26 21:02:52 +00:00
utils * Merge 40833 (without the riscvXX part) 2019-01-21 14:22:03 +00:00
x86 Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
x86_64 Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +00:00
aasmbase.pas + support exporting labels from asm blocks in intel syntax asm blocks via the 2017-10-30 16:44:13 +00:00
aasmcnst.pas The Important Ones: 2018-09-26 12:50:46 +00:00
aasmdata.pas The Important Ones: 2018-09-26 12:50:46 +00:00
aasmdef.pas
aasmsym.pas
aasmtai.pas + support for vmov.xx vreg,#imm on arm 2018-06-24 12:39:59 +00:00
aggas.pas palmos: no .rodata section here either 2018-01-04 08:26:22 +00:00
aopt.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptbase.pas + define cpudelayslot: set during compiler compilation for CPUs having branch instructions with delay slot (MIPS, SPARC) 2017-08-20 17:20:38 +00:00
aoptda.pas * removed unused units 2017-05-09 19:53:14 +00:00
aoptobj.pas Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
aoptutils.pas
assemble.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
blockutl.pas * removed unused units 2017-05-09 19:53:14 +00:00
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 ------------------------------------------------------------------------ 2019-02-05 07:43:20 +00:00
cg64f32.pas
cgbase.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
cghlcpu.pas
cgobj.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +00:00
cgutils.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
cmsgs.pas + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
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 renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +00:00
constexp.pas
COPYING.txt
cpid.pas
crefs.pas
cresstr.pas * removed unused units 2017-05-09 19:53:14 +00:00
cscript.pas * quote assembly filenames in Unix script, fixes sh errors with smartlinked small filenames like unitname(1), etc 2018-01-06 10:17:18 +00:00
cstreams.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
cutils.pas * avoid overflows of execution weight 2018-08-16 20:45:36 +00:00
cwindirs.pp
dbgbase.pas * revert r37968: it does more harm than good 2018-01-15 16:41:22 +00:00
dbgcodeview.pas + added new debug output option -godwarfomflinnum for generating line number 2018-05-17 14:38:50 +00:00
dbgdwarf.pas ds_dwarf_cpp improvements. 2018-12-13 18:32:23 +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 + support mmx shifting 2018-02-27 21:40:12 +00:00
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 Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
export.pas * removed unused units 2017-05-09 19:53:14 +00:00
expunix.pas * removed unused units 2017-05-09 19:53:14 +00:00
finput.pas
fmodule.pas * removed unused units 2017-05-09 19:53:14 +00:00
fpccrc.pas
fpcdefs.inc ------------------------------------------------------------------------ 2019-02-05 07:43:20 +00:00
fpcp.pas * removed unused units 2017-05-09 19:53:14 +00:00
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 Add obsolete prefix to cpu_ia64, system_ia64_win64 and system_ia64_embedded, ia64 specfic code has been removed in rev 30836 dated 2015-05-09 2017-08-04 08:54:34 +00:00
globals.pas Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
globstat.pas
globtype.pas Merge of commits 39916, 39925 and 39963 2019-01-10 12:22:58 +00:00
hlcg2ll.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
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 * removed unused units 2017-05-09 19:53:14 +00:00
ldscript.pas
link.pas * do not use a wildcard while deleting smartlinked objects after linking stage in a script, conflicts with script filename quoting on Unix at least 2018-01-06 10:19:21 +00:00
macho.pas
machoutils.pas
Makefile Merge of revisions 40277 2018-12-31 15:48:08 +00:00
Makefile.fpc Merge of revisions 40277 2018-12-31 15:48:08 +00:00
MPWMake
msgidx.inc --- Recording mergeinfo for merge of r39673 into '.': 2018-09-27 12:36:19 +00:00
msgtxt.inc --- Recording mergeinfo for merge of r39673 into '.': 2018-09-27 12:36:19 +00:00
nadd.pas Merge of revisions 39731 39825 39849 39912 39913 39914 39924 39935 39999 40000 40001 40026 40115 40132 40163 from trunk to fixes_3_2 2018-12-22 22:19:05 +00:00
nbas.pas --- Merging r39785 into '.': 2018-09-27 13:01:08 +00:00
ncal.pas --- Merging r40202 into '.': 2019-01-01 21:59:57 +00:00
ncgadd.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgbas.pas * keep track of the temp position separately from the offset in references, 2018-04-22 17:03:16 +00:00
ncgcal.pas * removed temppos field again from parameter locations: they're not allocated 2018-04-27 19:18:55 +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 * removed unused units 2017-05-09 19:53:14 +00:00
ncgflw.pas Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +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 Fixes for aarch64. 2018-12-13 18:27:26 +00:00
ncgmat.pas + support mmx shifting 2018-02-27 21:40:12 +00:00
ncgmem.pas Merge of revisions 40277 2018-12-31 15:48:08 +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 * removed unused units 2017-05-09 19:53:14 +00:00
ncgopt.pas * removed unused units 2017-05-09 19:53:14 +00:00
ncgrtti.pas --- Merging r39877 into '.': 2018-11-12 08:36:43 +00:00
ncgset.pas Merge of revisions 40277 2018-12-31 15:48:08 +00:00
ncgutil.pas Fixes for aarch64. 2018-12-13 18:27:26 +00:00
ncgvmt.pas The Important Ones: 2018-09-26 12:50:46 +00:00
ncnv.pas --- Merging r40512 into '.': 2019-01-01 16:49:46 +00:00
ncon.pas --- Merging r40512 into '.': 2019-01-01 16:49:46 +00:00
nflw.pas Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +00:00
ngenutil.pas * fixed execution order of implicit finalization and class destructors: first 2018-04-08 15:41:00 +00:00
ngtcon.pas Merge of revisions 40277 2018-12-31 15:48:08 +00:00
ninl.pas --- Merging r40512 into '.': 2019-01-01 16:49:46 +00:00
nld.pas --- Merging r39877 into '.': 2018-11-12 08:36:43 +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 * removed unused units 2017-05-09 19:53:14 +00:00
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 Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +00:00
objcasm.pas
objcdef.pas * removed unused units 2017-05-09 19:53:14 +00:00
objcgutl.pas * broken compilation after r39347 fixed 2018-06-30 12:30:25 +00:00
objcutil.pas * removed unused units 2017-05-09 19:53:14 +00:00
ogbase.pas * patch by J. Gareth Moreton to fix 33909 2018-07-01 12:54:30 +00:00
ogcoff.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
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 * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogmap.pas * removed unused units 2017-05-09 19:53:14 +00:00
ognlm.pas * changed type used for section alignment from byte/shortint to longint, so the 2017-10-25 15:47:29 +00:00
ogomf.pas * Merged r40720 2019-01-02 04:27:06 +00:00
omfbase.pas Merge commits 39912, 39914, 40001, 40115, 40132 and 40163 2018-12-10 21:18:24 +00:00
optbase.pas Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
optconstprop.pas * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
optcse.pas * the temp. locations created by cse were not properly cleanup up, this patch fixes this 2018-03-25 15:55:34 +00:00
optdead.pas * removed unused units 2017-05-09 19:53:14 +00:00
optdeadstore.pas * removed unused units 2017-05-09 19:53:14 +00:00
optdfa.pas --- Merging r40202 into '.': 2019-01-01 21:59:57 +00:00
options.pas Group merge of changes to fpmake.pp for pacakges and utils 2019-02-03 16:51:17 +00:00
optloadmodifystore.pas + enabled the load-modify-store optimization for the double argument version 2017-07-21 13:17:18 +00:00
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 Fix compilation error after last commit 2018-12-23 23:25:34 +00:00
optvirt.pas * removed unused units 2017-05-09 19:53:14 +00:00
owar.pas
owbase.pas
owomflib.pas Merge commits 39912, 39914, 40001, 40115, 40132 and 40163 2018-12-10 21:18:24 +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 renamed script unit to cscript to avoid namespace conflict with univint package on Darwin. this makes it possible to build the textmode IDE on Darwin 2017-11-17 11:27:19 +00:00
pass_1.pas * removed unused units 2017-05-09 19:53:14 +00:00
pass_2.pas Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +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 --- Merging r40284 into '.': 2018-11-12 09:41:51 +00:00
pdecobj.pas + add support for threadvars inside classes 2018-06-23 13:49:12 +00:00
pdecsub.pas --- Recording mergeinfo for merge of r39673 into '.': 2018-09-27 12:36:19 +00:00
pdecvar.pas --- Merging r40284 into '.': 2018-11-12 09:41:51 +00:00
pexports.pas
pexpr.pas --- Merging r39785 into '.': 2018-09-27 13:01:08 +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 * move handling of Concat to tinlinenode so that it can be easily extended for dynamic arrays 2017-10-08 10:39:34 +00:00
pkgutil.pas * check that the PPU version of a unit loaded for package adjustment matches exactly (we don't accept different versions when loading PPUs normally, so why should we with packages?) 2018-01-14 21:16:37 +00:00
pmodules.pas * two comment spelling fixes. Mantis #34092 & #34097 2018-08-08 08:39:20 +00:00
pp.lpi
pp.pas List possible CPU in alphabetical order 2017-08-04 11:14:12 +00:00
pparautl.pas + introduce a new method tparamanager.asm_result_var(), which determines whether 2018-02-15 17:41:07 +00:00
ppc68k.lpi
ppc8086.lpi * use an enum instead of integer constants to represent inline numbers 2017-05-10 14:41:43 +00:00
ppcaarch64.lpi
ppcarm.lpi * version update 2018-01-31 18:52:18 +00:00
ppcavr.lpi + version update 2018-01-31 18:46:23 +00:00
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc64.lpi + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
ppcsparc.lpi + basics for sparc64 support, we continue to use the name "sparc" for sparc32, both sparc are identified by sparcgen (dirs, defines etc.) 2017-05-30 21:17:17 +00:00
ppcx64.lpi * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppcx64llvm.lpi * made lazarus project names more systematic 2017-12-28 14:34:04 +00:00
ppheap.pas
ppu.pas Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +00:00
procinfo.pas * removed unused units 2017-05-09 19:53:14 +00:00
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 Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +00:00
psystem.pas * unified def creation for open arrays 2018-03-04 17:59:05 +00:00
ptconst.pas * removed unused units 2017-05-09 19:53:14 +00:00
ptype.pas + add support for threadvars in records 2018-06-23 13:49:16 +00:00
raatt.pas * inserted type casts on opr.val again, but depending on the type of opr.val, avoids range check errors 2018-02-25 15:32:38 +00:00
rabase.pas
rasm.pas * forgotten comment 2018-02-06 21:38:51 +00:00
rautils.pas + add support for '[' and ']' parenthesis in addition to '(' and ')' in 2018-04-26 14:13:30 +00:00
README.txt
rescmn.pas
rgbase.pas
rgobj.pas * avoid overflows of execution weight 2018-08-16 20:45:36 +00:00
scandir.pas + support for the directive $EXCESSPRECISION 2018-07-12 21:39:50 +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 Fixes for aarch64. 2018-12-13 18:27:26 +00:00
symcreat.pas * moved nf_typedaddr to addrnodeflags (anf_typedaddr) 2018-04-03 16:41:01 +00:00
symdef.pas Marge of more trunk fixes into fixes branch. 2018-12-23 22:27:05 +00:00
symsym.pas Merge of commits 40142, 40189 and 40347 2018-12-31 16:15:55 +00:00
symtable.pas --- Recording mergeinfo for merge of r39673 into '.': 2018-09-27 12:36:19 +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 * removed unused units 2017-05-09 19:53:14 +00:00
syscinfo.pas Add arm-palmos target to list supporting po_syscall 2017-09-15 20:25:59 +00:00
systems.inc Merged aarch64-android, x86_64-android targets and fixes for the Android target. 2018-12-13 18:08:42 +00:00
systems.pas Merged aarch64-android, x86_64-android targets and fixes for the Android target. 2018-12-13 18:08:42 +00:00
tgobj.pas Merge of commits 39916, 39925 and 39963 2019-01-10 12:22:58 +00:00
tokens.pas + implementation of the vectorcall calling convention by J. Gareth Moreton 2018-02-11 17:50:37 +00:00
verbose.pas + implemented support for codepage aware compiler messages. It can be enabled 2017-06-08 16:11:33 +00:00
version.pas * version to 3.2.0-beta 2018-08-18 15:25:41 +00:00
widestr.pas
wpo.pas
wpobase.pas
wpoinfo.pas * removed unused units 2017-05-09 19:53:14 +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