florian
f92b8d1681
* changes shift parameter of shift helpers into ALUUInt, as there is an "and" used anyways, this does not change semantics but reduces register pressure on 8 bit targets
...
git-svn-id: trunk@42200 -
2019-06-09 21:44:18 +00:00
Jonas Maebe
faf75095cd
* synchronised with trunk till r42189
...
git-svn-id: branches/debug_eh@42190 -
2019-06-07 18:24:38 +00:00
svenbarth
90278f4859
+ add fpmprotect function to complete fpmmap/fpmunmap
...
git-svn-id: trunk@42181 -
2019-06-06 20:46:01 +00:00
svenbarth
1b1f7c60ce
+ add FreeBSD syscall number for mprotect
...
git-svn-id: trunk@42180 -
2019-06-06 20:43:53 +00:00
pierre
8e5e877417
Fix compilation with release 3.0.4 ppcarm
...
git-svn-id: trunk@42175 -
2019-06-05 12:00:53 +00:00
michael
b2e47cceb2
* Added constant for new error message in stringlist
...
git-svn-id: trunk@42172 -
2019-06-04 07:29:53 +00:00
michael
4d1e2c6aa5
* Sort public properties/methods in stringlist
...
git-svn-id: trunk@42171 -
2019-06-04 07:08:45 +00:00
michael
7c36912eb0
* Better fix for 35660: Introduced TMissingNameValueSeparatorAction
...
git-svn-id: trunk@42170 -
2019-06-04 07:00:48 +00:00
michael
de30f7852d
* Changed String.Split to conform to behaviour in Delphi Rio (bug ID 35669)
...
git-svn-id: trunk@42168 -
2019-06-03 06:27:37 +00:00
Jonas Maebe
dc681a75ec
* properly return from the signal handler on ARM/Linux instead of calling
...
HandleErrorAddrFrame directly (fixes psabieh exception handling, and
generally is cleaner)
git-svn-id: trunk@42166 -
2019-06-02 18:33:01 +00:00
Jeppe Johansen
ee7bc1d516
- Fix compilation on architectures without absolute call/jump instructions.
...
git-svn-id: trunk@42164 -
2019-06-02 15:50:41 +00:00
Jeppe Johansen
dee0197890
- Add assembler implementation of integer division, patch by Christo Crause. For now there's a division by zero check added.
...
- Fix setjmp/longjmp handling on 3 byte PC AVRs.
git-svn-id: trunk@42162 -
2019-06-02 13:14:19 +00:00
Jeppe Johansen
2f501be2a0
Fixed stack checking for embedded target. Based on work by Christo Crause
...
git-svn-id: trunk@42157 -
2019-06-01 19:18:31 +00:00
Jeppe Johansen
009c87156a
Add assembler implementation of Move.
...
git-svn-id: trunk@42155 -
2019-06-01 15:39:09 +00:00
michael
833e00bfbd
* Fix bug #35660 , introduce prefervaluestonames
...
git-svn-id: trunk@42153 -
2019-06-01 09:42:27 +00:00
nickysn
0f205470bc
* set DL=0 in dos.setverify for compatibility with DOS 2.x
...
git-svn-id: trunk@42149 -
2019-05-31 13:58:19 +00:00
marco
646d7c2a95
* helper in record to make setting parameters a bit denser.
...
git-svn-id: trunk@42147 -
2019-05-31 10:40:54 +00:00
nickysn
2fdef04a28
* invoke _csu_finish before __init in the OpenBSD i386 C library startup code
...
git-svn-id: trunk@42132 -
2019-05-28 15:39:43 +00:00
Jonas Maebe
a0e35fd1bc
* synchronised with trunk till r42118
...
git-svn-id: branches/debug_eh@42119 -
2019-05-25 13:19:06 +00:00
Jonas Maebe
41f36233ea
* more fpc_lib_exit change compilation fixes
...
git-svn-id: trunk@42112 -
2019-05-21 06:24:12 +00:00
pierre
669e705b54
Change lib_exit to fpc_lib_exit in missed sources (to fix breakages after commit #42104 )
...
git-svn-id: trunk@42109 -
2019-05-20 09:35:28 +00:00
Jonas Maebe
0cd0e1614b
* synchronised with trunk till r42105
...
git-svn-id: branches/debug_eh@42106 -
2019-05-19 19:24:25 +00:00
Jonas Maebe
aad87820e6
* abstracted registration of library init/fini routines (to be able to add
...
LLVM support)
git-svn-id: trunk@42104 -
2019-05-19 19:20:47 +00:00
Jonas Maebe
9e9a982bfe
* synchronised with trunk till r42095
...
git-svn-id: branches/debug_eh@42096 -
2019-05-18 18:43:51 +00:00
pierre
e35110b68c
Fix baseunix PPU compilation rule for Haiku
...
git-svn-id: trunk@42083 -
2019-05-16 11:31:33 +00:00
pierre
902ef73c7c
Allways use local pt variable to ameliorate readability of code
...
git-svn-id: trunk@42082 -
2019-05-16 08:24:45 +00:00
pierre
c8129c5228
Disable 64-bit version of CPU_SOURCE is 32-bit
...
git-svn-id: trunk@42081 -
2019-05-16 08:21:09 +00:00
nickysn
e0b523ef14
* updated the asm parts of the i386 OpenBSD startup code as well
...
git-svn-id: trunk@42080 -
2019-05-15 17:16:21 +00:00
nickysn
806b65da6b
* also update the startup asm code in prt0.as for OpenBSD x86_64
...
git-svn-id: trunk@42079 -
2019-05-15 16:24:41 +00:00
nickysn
357d3ca390
- removed cprt0.as from the OpenBSD i386 RTL as well
...
git-svn-id: trunk@42078 -
2019-05-15 16:13:57 +00:00
nickysn
ef86b3ab29
- delete cprt0.as from the OpenBSD x86_64 startup code, because it's not needed for bootstrapping
...
git-svn-id: trunk@42077 -
2019-05-15 15:37:51 +00:00
nickysn
058336db40
* invoke _csu_finish before __init the OpenBSD x86_64 C library startup code
...
git-svn-id: trunk@42076 -
2019-05-15 15:22:54 +00:00
nickysn
77f86d22a5
* updated the parameter list to _FPC_proc___start in the OpenBSD x86_64 startup code
...
git-svn-id: trunk@42075 -
2019-05-15 14:27:42 +00:00
nickysn
f2719e438c
* updated the OpenBSD x86_64 assembly startup code
...
git-svn-id: trunk@42074 -
2019-05-15 13:52:28 +00:00
Jonas Maebe
ad6897ffd8
* fixed Darwin/AArch64 flt/int-div-by-zero error codes (fix for 42045, as
...
noted by AlexeyT)
git-svn-id: trunk@42064 -
2019-05-14 19:19:19 +00:00
michael
167ca93d25
* Patch from Ondrej to remove unnecessary overload keywords
...
git-svn-id: trunk@42062 -
2019-05-14 08:36:52 +00:00
pierre
0961e49919
Add new files required to fix RTL compilation for macos target
...
git-svn-id: trunk@42061 -
2019-05-14 04:31:36 +00:00
pierre
090074276e
Fix RTL compilation for macos target
...
git-svn-id: trunk@42060 -
2019-05-14 04:29:24 +00:00
michael
6649fab22d
* Fix bug ID #0035580
...
git-svn-id: trunk@42058 -
2019-05-13 20:23:50 +00:00
michael
e4385d1b19
* Fix bug ID #35576
...
git-svn-id: trunk@42057 -
2019-05-13 20:15:00 +00:00
michael
dc592a888f
* Make explicit that Integer is 32-bit
...
git-svn-id: trunk@42056 -
2019-05-13 11:47:46 +00:00
Jonas Maebe
1b6425176b
* synchronised with trunk till r42049
...
git-svn-id: branches/debug_eh@42050 -
2019-05-12 18:44:05 +00:00
michael
fdccb0d62f
* FIx compilation with 3.0.4
...
git-svn-id: trunk@42049 -
2019-05-12 15:36:04 +00:00
michael
58f1a8513b
* FIx compilation for platforms that do not have extended
...
git-svn-id: trunk@42048 -
2019-05-12 15:33:26 +00:00
Jonas Maebe
5c20481c7b
* fixed floating point div-by-zero RTE code on Darwin (208 instead of 200,
...
fixes webtbs/tw32671)
git-svn-id: trunk@42045 -
2019-05-12 14:28:55 +00:00
marco
f5e684067d
* turn off MB_PRECOMPOSED for encodings named in MSDN multibytetowidechar function, as detailed by Aserge in https://forum.lazarus.freepascal.org/index.php?topic=45380.0;topicseen
...
git-svn-id: trunk@42043 -
2019-05-12 14:18:36 +00:00
michael
60efc9e81c
* Add Read/Write(Buffer) TBytes, ReadData/WriteData, ReadBufferData/WriteBufferData to be Delphi compatible
...
git-svn-id: trunk@42042 -
2019-05-12 10:09:16 +00:00
svenbarth
46a8afb50d
+ declare Pointer types for the remaining Boolean types
...
git-svn-id: trunk@42032 -
2019-05-10 15:25:08 +00:00
marco
1c583d3e0d
* getguiresources + constants, mantis 035546 by 440bx
...
git-svn-id: trunk@42030 -
2019-05-10 15:21:32 +00:00
marco
6a6436c076
* RealChildWindowFromPoint, mantis 035552 by 440bx
...
git-svn-id: trunk@42029 -
2019-05-10 15:14:46 +00:00
marco
d80d564a20
* realgetwindowclass, mantis 035551
...
git-svn-id: trunk@42028 -
2019-05-10 15:11:48 +00:00
marco
d942509db4
* add getshellwindow, by 440bx mantis 035548
...
git-svn-id: trunk@42027 -
2019-05-10 14:56:09 +00:00
pierre
83d72bdf19
Use TIOCtlRequest type for local variable nr inside TCSetAttr function
...
git-svn-id: trunk@42024 -
2019-05-10 07:23:31 +00:00
pierre
ebf2e277ab
Update syscall number for sparc and sparc64 based on results from unix/scripts/check_sys.sh
...
git-svn-id: trunk@42019 -
2019-05-07 11:26:44 +00:00
pierre
a7a67f3d3c
* Improve handling of command line args setting variables (did not work if it contained spaces)
...
+ Group all recognized macros into list_defines in preproc.awk file
+ Convert Pascal style hexadecimal constants into C style
git-svn-id: trunk@42018 -
2019-05-07 08:13:38 +00:00
pierre
0a3a35152d
Also remove -m32 option for arm native GNU C compiler
...
git-svn-id: trunk@42017 -
2019-05-06 22:07:49 +00:00
pierre
fae45b2075
Add first linux RTL compliance test file t_linux.h2paschk
...
git-svn-id: trunk@42016 -
2019-05-06 21:13:42 +00:00
pierre
12647c348e
Add script to use h2paschk on t_OS.h2paschk file for rtl tests for system header compliance
...
git-svn-id: trunk@42015 -
2019-05-06 21:10:12 +00:00
pierre
cb4b085a99
* Also allow '-' in include file names
...
+ Add os_cpu and cpu_source variables
* Cope with aarch64 GNU C compiler that does not support -m64 option
+ Add support for arm test on aarch64 machine
* Better accept expressions instead of constants in C #define
git-svn-id: trunk@42014 -
2019-05-06 21:08:47 +00:00
marco
eae156d07e
* fix for mantis 035530 by 440bx, process_ and thread_ constants.
...
git-svn-id: trunk@42013 -
2019-05-06 15:48:11 +00:00
pierre
1e4442f1fa
Add more system header constants
...
git-svn-id: trunk@42010 -
2019-05-06 13:25:56 +00:00
marco
caa5e54b00
* add openthread, mantis 035529 by 440bx
...
git-svn-id: trunk@42008 -
2019-05-06 11:33:40 +00:00
Jonas Maebe
3a1fb45315
* synchronised with trunk till r41976
...
git-svn-id: branches/debug_eh@41977 -
2019-05-02 19:44:41 +00:00
pierre
ae5a9e033a
Add flags field to TStatfs record
...
git-svn-id: trunk@41973 -
2019-05-02 12:59:11 +00:00
pierre
ce1ba76ce5
Add st_ctime_nsec field for stat powerpc record
...
git-svn-id: trunk@41972 -
2019-05-02 12:57:51 +00:00
pierre
0690df1733
Update syscall numbers for powerpc-linux and powerpc64-linux
...
git-svn-id: trunk@41971 -
2019-05-02 12:56:56 +00:00
pierre
0100c4abf8
More improvements to script testing syscall numbers
...
git-svn-id: trunk@41970 -
2019-05-02 12:55:51 +00:00
pierre
5f4a0c7af7
* freebsd and openbsd also use sys/syscall.h header
...
+ Add AWK parser to removed parts of source not concerning current CPU
(only handles CPUXXX like CPUI386)
git-svn-id: trunk@41969 -
2019-05-01 22:00:06 +00:00
pierre
429bd929e8
Update dev_t, ino_t and nlink_t types to cunit64
...
git-svn-id: trunk@41968 -
2019-05-01 16:04:38 +00:00
pierre
5fb61dc386
FreeBSD fixes for stat and dirent records
...
git-svn-id: trunk@41967 -
2019-05-01 15:59:52 +00:00
pierre
6f7d2a798c
Change ssize_t type to clong and specify pthread_once_t_rec record
...
git-svn-id: trunk@41966 -
2019-05-01 14:51:20 +00:00
pierre
5c7adf9af3
Add simple types and some constants
...
git-svn-id: trunk@41965 -
2019-05-01 14:49:14 +00:00
pierre
819752c334
Avoid warnings when -v0 is used by using $push/$pop
...
git-svn-id: trunk@41960 -
2019-04-29 14:19:16 +00:00
michael
a254a49e84
* Patch from Ondrej Pokorny to fix bug ID : #32961 reflect system code page change in TEncoding
...
git-svn-id: trunk@41951 -
2019-04-28 09:02:41 +00:00
pierre
a06e5d0fe9
Comment out ports, doscalls, crt printer and graph rules completely to avoid multiple calls to compiler for same unit
...
git-svn-id: trunk@41949 -
2019-04-28 05:48:27 +00:00
svenbarth
b7a716cd81
* correct return a pointer to the list so that List^[x] works as it did before 3.2
...
+ added test
git-svn-id: trunk@41938 -
2019-04-26 08:13:11 +00:00
pierre
639adc314f
Eliminate wrong line (bug report 35441)
...
git-svn-id: trunk@41934 -
2019-04-25 13:04:39 +00:00
marco
8a23e813ca
* GetPhysicallyInstalledSystemMemory mantis 035439 by 440bx
...
git-svn-id: trunk@41930 -
2019-04-25 09:06:23 +00:00
pierre
66401652fd
* Update syscall list for i386 and x86_64 cpus,
...
based on values found on gcc121 machine,
CentOS Linux release 7.6.1810 (Core)
* Commented out values not accepted by GNU C compiler.
For i386: madvise1(219), security(223),set_zone_reclaim(251)
New last number: 382(pkey_free).
For x86_64: 331(pkey_free).
git-svn-id: trunk@41929 -
2019-04-25 06:23:37 +00:00
pierre
a83bc62639
Improve syscall number testing script:
...
+ Add support for parameters:
-v sets verbose variable to 1
VAR=value gets evaluated.
* moves to rtl/$os if called at diferent level.
+ check if there is a incude directive in sysnr.inc file.
+ Add compilation of C source code with the C variant of the syscall number.
+ Support 32 and 64-bit version of C compilation for systems
allowing 32 and 64-bit executable (like x86_64-linux).
+ Add 'preprocessing' using AWK to test {$ifdef CPUXXX} macro.
+ Add summary at end of script.
* Rename check_syscall_number to check_c_syscall_from_fpc_rtl
* Rename check_syscall_number_reverse to check_c_syscall_in_fpc_rtl
* Try to remove most intermediate files.
+ Generate add_missing_syscalls.inc file if numbers are missing.
git-svn-id: trunk@41928 -
2019-04-25 06:10:43 +00:00
marco
982bef0ed8
* iswow64present and enable*fsredirection with a byte as param because the BOOLEAN type is a byte according to MSDN. Mantis 035429
...
git-svn-id: trunk@41926 -
2019-04-23 07:50:12 +00:00
marco
573666405d
* wow64 related functions from mantis 034328
...
git-svn-id: trunk@41925 -
2019-04-22 19:51:41 +00:00
marco
75cdae9836
* add uint typecast to some negative message numbers Mantis 035324
...
git-svn-id: trunk@41922 -
2019-04-22 09:42:44 +00:00
marco
febb1aab0b
* IsDebuggerPresent, bug #35422
...
git-svn-id: trunk@41921 -
2019-04-21 18:12:57 +00:00
marco
7acd242683
* PROCESS_QUERY_LIMITED_INFORMATION, mantis 35423
...
git-svn-id: trunk@41920 -
2019-04-21 18:10:12 +00:00
marco
afa6aaab95
* PROCESS_NAME_NATIVE constant
...
git-svn-id: trunk@41919 -
2019-04-21 18:06:09 +00:00
marco
6559033d2d
* QueryFullProcessImageName
...
git-svn-id: trunk@41918 -
2019-04-21 18:00:24 +00:00
Jonas Maebe
128bf046b4
* regenerated Makefiles with LLVM bitcode installation support
...
git-svn-id: branches/debug_eh@41914 -
2019-04-20 18:56:45 +00:00
Jonas Maebe
2923e484fd
* synchronised with trunk till r41907
...
git-svn-id: branches/debug_eh@41908 -
2019-04-20 18:22:52 +00:00
Jeppe Johansen
12879adc2f
- Adds intrinsics to save/restore SREG when disabling interrupts.
...
- Adds nostackframe to stack frame investigation stubs.
git-svn-id: trunk@41898 -
2019-04-18 18:26:51 +00:00
marco
28c15a95d5
* Mantis 35257 modifyworldtransform, defined with var parameter could also take NIL. Split into straight pointer + redef var overload.
...
git-svn-id: trunk@41893 -
2019-04-18 09:00:42 +00:00
marco
07c21e5128
* and the setters.
...
git-svn-id: trunk@41892 -
2019-04-17 16:01:50 +00:00
marco
e9c2f46172
* fix mantis 35368 and mantis 35369
...
git-svn-id: trunk@41891 -
2019-04-17 15:57:05 +00:00
Jonas Maebe
a0f850d57f
* synchronised with trunk till r41885
...
git-svn-id: branches/debug_eh@41886 -
2019-04-16 16:20:44 +00:00
pierre
7b3e027dc8
Move update of fields counting allocated memory to after SysGetMem call
...
git-svn-id: trunk@41882 -
2019-04-16 15:05:13 +00:00
svenbarth
9d10f21b07
* applied patch by Thaddy de Koning to fix Mantis #35378 : correctly declare TNativeIntHelper.MinValue
...
git-svn-id: trunk@41881 -
2019-04-16 09:24:05 +00:00
nickysn
e2a139ee19
* updated the openbsd tstatfs structure to be compatible with the currently
...
supported openbsd versions (6.3 and 6.4)
git-svn-id: trunk@41878 -
2019-04-15 17:11:13 +00:00
nickysn
924b4c6f10
+ more structures added to the openbsd structure checker file: utimbuf, flock,
...
tms, timezone, rusage, TRLimit and iovec
git-svn-id: trunk@41877 -
2019-04-15 15:02:24 +00:00
nickysn
f6e13c50a9
+ added pollfd to the openbsd structure checker file
...
git-svn-id: trunk@41875 -
2019-04-15 14:33:33 +00:00
nickysn
9b7cbb0e0b
+ added OpenBSD RTL structure checker description file for use with the h2paschk
...
tool. Currently only checks the stat and dirent structures, but more will be
added in the future.
git-svn-id: trunk@41874 -
2019-04-15 14:22:44 +00:00
Jeppe Johansen
53542b7c5e
- Port RISC-V64 startup code to native inline routines.
...
git-svn-id: trunk@41871 -
2019-04-14 23:36:08 +00:00
Jonas Maebe
a7bd37d17a
* synchronised with trunk till r40776
...
git-svn-id: branches/debug_eh@41867 -
2019-04-13 15:16:09 +00:00
marco
0d87116b81
* add MB_CANCELTRYCONTINUE and MB*MASK constants. mantis 35244
...
git-svn-id: trunk@41861 -
2019-04-11 08:11:31 +00:00
marco
8564fe7f24
* add readdirectorychangedw (only -W function) mantis 35311
...
git-svn-id: trunk@41857 -
2019-04-10 14:48:27 +00:00
marco
d5f2764dd3
* readd bottomleft #35350
...
git-svn-id: trunk@41854 -
2019-04-09 13:21:17 +00:00
michael
27894ebe68
* Patch from Serge Anvarov to improve TStrings.GetNextLine and TStrings.GetNextLineBreak (bug ID 35331)
...
git-svn-id: trunk@41853 -
2019-04-09 11:35:56 +00:00
michael
08d6b446f0
* Fix bug ID #35345 , allow tstrings.text to exceed 2Gb
...
git-svn-id: trunk@41852 -
2019-04-09 11:16:56 +00:00
michael
cae2c94e90
* Patch from Ondrej Pokorny to let AddStrings call beginupdate/endupdate under all circumstances (bug ID 35341)
...
git-svn-id: trunk@41849 -
2019-04-08 07:51:19 +00:00
marco
162bd5e251
* metrics constants by Gareth and 440bx. Added SM_CARETBLINKINGENABLED for good measure.
...
git-svn-id: trunk@41845 -
2019-04-06 14:57:50 +00:00
nickysn
d25e7b1074
* separated the OpenBSD version of the stat structure to a separate ifdef block.
...
* Fixed some incompatibilities in the OpenBSD stat structure - removed st_lspare
and changed the type of st_blksize to cint32 instead of cuint32.
git-svn-id: trunk@41827 -
2019-04-04 15:55:16 +00:00
nickysn
122888741c
+ added some comments to the else/endif directives to make it easier to figure
...
out their corresponding ifdef
git-svn-id: trunk@41826 -
2019-04-04 14:52:28 +00:00
pierre
df2cefdc32
Fix OpenBSD rtl compilation when using -dFPC_USE_LIBC option
...
git-svn-id: trunk@41821 -
2019-04-03 06:59:26 +00:00
nickysn
46b98a6da4
* Improvements to the implementation of FpOpenDir for *BSD:
...
* use FpFStat instead of FpStat to avoid a race condition, where the directory
path could change between the calls of FpOpen and FpStat
* improved cleanup (i.e. call FpClose, free allocated memory to avoid
memleaks) in case of errors
git-svn-id: trunk@41820 -
2019-04-02 17:44:23 +00:00
michael
e3973e9c4e
* Fix bug #35305 , lazy instantiation of class alias list. Patch from Ondrej Pokorny
...
git-svn-id: trunk@41819 -
2019-04-01 17:31:20 +00:00
michael
60606e61ef
* Patch from Ondrej Pokorny to make RegisterClassAlias thread-safe
...
git-svn-id: trunk@41818 -
2019-04-01 17:25:29 +00:00
michael
1951aff5a4
* Fix formatfloat in case E not followed by +/- (bug id 35297)
...
git-svn-id: trunk@41803 -
2019-03-30 15:47:50 +00:00
michael
2669b68e6d
* Added move on TCollection (bug ID 32673)
...
git-svn-id: trunk@41795 -
2019-03-26 07:03:24 +00:00
nickysn
28bb38cc12
- removed syscall_nr_getdirentries from the OpenBSD rtl, since this syscall is no longer
...
supported by OpenBSD and shouldn't be used at all
git-svn-id: trunk@41791 -
2019-03-24 16:51:05 +00:00
nickysn
aa3d13dd4a
- removed the FPC_USE_GETDIRENTRIES_SYSCALL define and use_getdirentries_syscall
...
global variable, they are compatibility flags of a no longer supported OpenBSD version
git-svn-id: trunk@41790 -
2019-03-24 16:30:50 +00:00
nickysn
ede50a2c4f
- get rid of the FPC_USE_GETDIRENTRIES_I49_SYSCALL define and the
...
use_openbsd_getdirentries_49 global variable - both are compatibility features
for a no longer supported OpenBSD version
git-svn-id: trunk@41789 -
2019-03-24 16:12:30 +00:00
nickysn
9a18543324
* cleaned up most of the obsolete OpenBSD syscall numbers
...
git-svn-id: trunk@41783 -
2019-03-23 20:35:03 +00:00
nickysn
dab661cfc6
* switch syscall_nr_kill on OpenBSD to be using the 5.9+ syscall version
...
git-svn-id: trunk@41781 -
2019-03-23 04:23:15 +00:00
nickysn
41c753d7e7
* updated OpenBSD syscall numbers to version 6.4
...
git-svn-id: trunk@41780 -
2019-03-23 04:20:55 +00:00
nickysn
b32e54152a
* updated OpenBSD syscall numbers to version 6.3
...
git-svn-id: trunk@41779 -
2019-03-23 04:19:07 +00:00
nickysn
89a40d5cf9
* updated OpenBSD syscall numbers for version 6.2
...
git-svn-id: trunk@41778 -
2019-03-23 04:17:35 +00:00
nickysn
14701521a1
* updated OpenBSD syscalls for version 6.1
...
git-svn-id: trunk@41777 -
2019-03-23 04:14:11 +00:00
nickysn
475ecdb2dc
* updated OpenBSD syscall numbers to version 6.0
...
git-svn-id: trunk@41776 -
2019-03-23 04:12:51 +00:00
nickysn
72aec7c072
* updated OpenBSD syscall numbers to version 5.9
...
git-svn-id: trunk@41775 -
2019-03-23 04:06:14 +00:00
nickysn
259e3f9f63
* updated OpenBSD syscall numbers for OpenBSD 5.8
...
git-svn-id: trunk@41774 -
2019-03-23 03:55:47 +00:00
nickysn
828da99388
* updated syscall numbers for OpenBSD 5.7
...
git-svn-id: trunk@41773 -
2019-03-23 01:54:20 +00:00
nickysn
cee76bda5c
+ added comments about some retired syscall numbers, with the last supported
...
version. This is checked against OpenBSD versions 2.0 to 5.6, like the comment
in the beginning of the file says (and the ones in this commit were missed).
git-svn-id: trunk@41772 -
2019-03-23 01:46:21 +00:00
nickysn
04ee584a7d
- removed FPC 1.0.x bootstrapping compatibility ifdef from OpenBSD RTL Makefile
...
git-svn-id: trunk@41769 -
2019-03-22 17:35:35 +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
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
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
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
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