Commit Graph

55751 Commits

Author SHA1 Message Date
pierre
8750dba952 Fix tkBool in class method TValue.Make
git-svn-id: trunk@41767 -
2019-03-22 14:26:39 +00:00
nickysn
6dec9ae064 + added some missing cdecl declarations to the OpenBSD startup code
git-svn-id: trunk@41766 -
2019-03-22 01:22:16 +00:00
nickysn
b6d2ef12ad - removed OpenBSD loaders that are not needed for bootstrapping with FPC 3.0.4
git-svn-id: trunk@41765 -
2019-03-22 01:08:37 +00:00
nickysn
516438fd19 * converted the i386 OpenBSD startup code to Pascal
git-svn-id: trunk@41764 -
2019-03-22 00:54:01 +00:00
nickysn
b4baba3454 * fixed the haltproc for shared libs
git-svn-id: trunk@41763 -
2019-03-21 23:37:47 +00:00
nickysn
01669ebf70 * use the actual _haltproc procedure, defined in the startup code on OpenBSD
* fixed the x86_64 syscall invocation in the OpenBSD _haltproc

git-svn-id: trunk@41762 -
2019-03-21 18:16:23 +00:00
nickysn
7638a9b7e1 - removed commented out gprof code from si_c.inc
git-svn-id: trunk@41761 -
2019-03-21 17:37:37 +00:00
nickysn
8f8aa70074 + OpenBSD i386 and x86_64 support in tcgx86.g_profilecode
git-svn-id: trunk@41760 -
2019-03-21 17:09:21 +00:00
nickysn
85fdd37cac + support creating linker map files (with the -Xm option) on *BSD
git-svn-id: trunk@41759 -
2019-03-21 13:54:15 +00:00
nickysn
1f9b5d143e * call _monstartup instead of monstartup
git-svn-id: trunk@41758 -
2019-03-21 13:28:18 +00:00
nickysn
e4ffeb2266 + added OpenBSD startup units for gprof support
git-svn-id: trunk@41757 -
2019-03-21 12:52:25 +00:00
nickysn
261114ff32 + introduce the $OPENBSD_LOCALBASE and $OPENBSD_X11BASE pseudo variables; these
may now be used in fpc.cfg, etc. They evaluate to /usr/local and /usr/X11R6 by
  default, but may optionally be overriden via the LOCALBASE and X11BASE
  environment variables.
* use the new $OPENBSD_LOCALBASE and $OPENBSD_X11BASE variables in the default
  library search path on OpenBSD

git-svn-id: trunk@41755 -
2019-03-20 17:03:11 +00:00
nickysn
bb911e2f01 - unused local variable removed
git-svn-id: trunk@41754 -
2019-03-20 16:26:38 +00:00
nickysn
f15c2db4b2 * moved some C type declarations to si_intf.inc
git-svn-id: trunk@41753 -
2019-03-20 16:23:34 +00:00
nickysn
fb3d287971 * fixed OpenBSD shared library initialization
git-svn-id: trunk@41752 -
2019-03-20 16:09:07 +00:00
nickysn
52a5669117 + enable weak externals for OpenBSD
* converted the reference to _init in si_dll to be a weak external. This way we
  can support creating shared libraries that link to the C library as well as
  libraries that do not. If libc was linked, the compiler will link in
  crtbeginS.o and crtendS.o; _init is defined in crtbeginS.o and initializes the
  C library and calls all the C static constructors.

git-svn-id: trunk@41751 -
2019-03-20 15:13:47 +00:00
nickysn
aad032f133 * converted _FPC_proc___start in OpenBSD's si_dll.inc to pascal
git-svn-id: trunk@41750 -
2019-03-20 14:55:35 +00:00
michael
a0c433b171 * Too much committed
git-svn-id: trunk@41749 -
2019-03-19 21:44:12 +00:00
michael
409ca963ca * Patch from inoussa to publish stretch for shape
git-svn-id: trunk@41748 -
2019-03-19 21:43:15 +00:00
marcus
282f4a6972 AROS, AmigaOS4: unified ASL unit for all amiga-likes
git-svn-id: trunk@41747 -
2019-03-19 20:48:43 +00:00
nickysn
fb793ff251 - comment out more unused gprof code
git-svn-id: trunk@41746 -
2019-03-19 18:32:54 +00:00
nickysn
2960399f9a * call c_exit directly in case PASCALMAIN finishes, to avoid inline asm entirely
in the _FPC_proc___start routine in the libc version of the OpenBSD startup
  code for x86_64

git-svn-id: trunk@41745 -
2019-03-19 18:28:20 +00:00
nickysn
4715ad605b - don't export the ___start symbol in the OpenBSD startup code
git-svn-id: trunk@41744 -
2019-03-19 17:40:46 +00:00
nickysn
144f31c94f * call the exit() routine from the C libraries in the FPC haltproc on OpenBSD
x86_64, libc startup code

git-svn-id: trunk@41743 -
2019-03-19 17:27:11 +00:00
joost
3969c87bd5 * Command to show version-number added (fpcmkcfg)
git-svn-id: trunk@41742 -
2019-03-19 17:04:50 +00:00
nickysn
094ad635f7 - don't call monstartup, because that initializes the gprof profiler and should
only be called for programs, compiled with -pg (which is not yet implemented
  for the OpenBSD target and which will use a different sysinit unit for such
  programs, when implemented)

git-svn-id: trunk@41741 -
2019-03-19 16:51:04 +00:00
nickysn
34a8032e11 * link to crtbegin.o/crtend.o instead of crtbeginS.o/crtendS.o when creating
normal OpenBSD programs (not shared libraries) that link to the C library,
  even when PIC code generation has been turned on. This is what gcc and clang
  do on this platform.

git-svn-id: trunk@41740 -
2019-03-19 16:36:38 +00:00
nickysn
d1a91a380b * the OpenBSD x86_64 C library startup code converted to Pascal
git-svn-id: trunk@41739 -
2019-03-19 14:58:46 +00:00
nickysn
76623648e4 * updated the declarations to externals in the C library in the OpenBSD startup
code si_c.inc, in preparation to converting the startup procedure to Pascal

git-svn-id: trunk@41738 -
2019-03-19 14:42:31 +00:00
nickysn
cf2aa6fdb7 * slight change to the OpenBSD startup code, to allow Low(__progname_storage)<>0
(not that it's going to be changed that way, but it doesn't hurt for the code
  to be more robust; and it doesn't affect performance, since the compiler
  optimizes x-0 to x)

git-svn-id: trunk@41737 -
2019-03-19 13:34:42 +00:00
nickysn
60d21cc041 * converted _FPC_proc___start in the OpenBSD x86_64 nonlibc startup code to Pascal
git-svn-id: trunk@41736 -
2019-03-18 19:08:22 +00:00
nickysn
b56c181500 + added comments with the parameters of _FPC_proc___start in the OpenBSD x86_64 startup code
git-svn-id: trunk@41735 -
2019-03-18 18:31:32 +00:00
nickysn
7e24c07690 + added comment for the parameter, containing the environment
git-svn-id: trunk@41734 -
2019-03-18 18:14:11 +00:00
nickysn
66744f2f1e * _strrchr in the OpenBSD x86_64 startup code converted to Pascal
git-svn-id: trunk@41733 -
2019-03-18 17:28:46 +00:00
Mattias Gaertner
c3b515695b pas2js: using Math.pow instead of newer **
git-svn-id: trunk@41732 -
2019-03-18 17:23:01 +00:00
Károly Balogh
2c1639003c * reinstate the internalerror removed in r41730 for i386, as that was a valid condition to verify
git-svn-id: trunk@41731 -
2019-03-18 13:21:58 +00:00
Károly Balogh
5358851f84 * clean up some things regarding explicit paraloc handling. this should fix m68k-amiga and powerpc-morphos builds after r41716
git-svn-id: trunk@41730 -
2019-03-18 01:19:18 +00:00
Jonas Maebe
1bb8bd471a * fix msgtxt array size if the text size is an exact multiple of 240
git-svn-id: trunk@41725 -
2019-03-17 15:22:06 +00:00
Jonas Maebe
bde560dac2 * also accept {$elsif} after {$if(n)def} (mantis #34858)
git-svn-id: trunk@41724 -
2019-03-17 15:20:22 +00:00
pierre
74fed2a4cd Regenerate Makefile's after fpcmake change in commit #41721
git-svn-id: trunk@41723 -
2019-03-17 14:45:03 +00:00
pierre
225ea5a92d revision.inc update after: Add removal of generated bin subdirectory to fpc_cleanall target
git-svn-id: trunk@41722 -
2019-03-17 10:36:13 +00:00
pierre
b92ac5290b Add removal of generated bin subdirectory to fpc_cleanall target
git-svn-id: trunk@41721 -
2019-03-17 10:33:55 +00:00
Mattias Gaertner
f3d2b9c9db fcl-passrc: updated lpi
git-svn-id: trunk@41720 -
2019-03-16 22:49:16 +00:00
Mattias Gaertner
c42ed29980 pastojs: clean up
git-svn-id: trunk@41719 -
2019-03-16 21:58:01 +00:00
Jonas Maebe
d78dbd5d59 + test from mantis #35224 (already works)
git-svn-id: trunk@41718 -
2019-03-16 20:01:57 +00:00
Jonas Maebe
fd42c3fb01 * only enable tw35187 for Windows and Linux, since it uses syscalls under unix
(which are not supported on all unix targets; feel free to re-enable for
     specific unix targets if the test has been verified to compile there)
   o also fixed placement of dotest directives: they have to come before any
     part of the program code

git-svn-id: trunk@41717 -
2019-03-16 19:14:17 +00:00
Jonas Maebe
ed2ae508d0 * only add hidden parameters for objectdef methods after generating the vmt,
so that they take into account inherited calling conventions (mantis #35233)
   o don't needlessly calculate the paraloc info when generating a JVM mangled
     name

git-svn-id: trunk@41716 -
2019-03-16 19:14:14 +00:00
Mattias Gaertner
9cf243ad38 fcl-passrc: fixed marking array argument element passed as arg as read
git-svn-id: trunk@41715 -
2019-03-16 16:14:40 +00:00
Mattias Gaertner
721d20fb8f fcl-passrc: fixed makring array[]:= as read
git-svn-id: trunk@41714 -
2019-03-16 15:44:52 +00:00
Mattias Gaertner
7ab75c1194 fcl-passrc: separate hint for method hides ancestor method exactly
git-svn-id: trunk@41713 -
2019-03-16 14:32:21 +00:00