Commit Graph

6863 Commits

Author SHA1 Message Date
daniel
3a7266a462 * Handle FPC_USE_LIBC case for Sparc too.
git-svn-id: trunk@6967 -
2007-03-23 23:30:18 +00:00
daniel
084a78fdd3 * Make sparc/linux stat structure backward compatible too.
git-svn-id: trunk@6966 -
2007-03-23 23:24:12 +00:00
daniel
ae15527637 * Make ARM stat structure backwards compatible too.
git-svn-id: trunk@6965 -
2007-03-23 23:10:09 +00:00
daniel
8127fb7a05 * Switch to classic field names to prevent further messing with compatibility.
git-svn-id: trunk@6964 -
2007-03-23 22:35:12 +00:00
daniel
d030103742 + Restore "stat" data structure in backward compatible state
git-svn-id: trunk@6963 -
2007-03-23 22:23:24 +00:00
daniel
59a972ec9c * Change dd_nextoff to cardinal to prevent upscaling of calculations to 64-bit.
git-svn-id: trunk@6962 -
2007-03-23 15:53:04 +00:00
daniel
5da5440e12 * Ptrint considered harmfull bug no 54689826, change to ptruint.
git-svn-id: trunk@6961 -
2007-03-23 15:38:28 +00:00
michael
25a29c1159 * Undid revision 6462
git-svn-id: trunk@6955 -
2007-03-22 18:43:14 +00:00
ivost
de36c38282 * fixed bug in linux.pp / user_desc record
git-svn-id: trunk@6949 -
2007-03-21 20:56:57 +00:00
florian
605e82489a * reset fpu on win64 as well, certain operations like ln use it
git-svn-id: trunk@6920 -
2007-03-18 20:25:58 +00:00
Jonas Maebe
9cec910eb9 * changed *string_to_*chararray helpers from functions into procedures
because on win64 the location of a function result can depend on its
    size (so some chararrays had to be returned in registers and others
    by reference, which means it's impossible to have a generic function
    declaration which works in all cases) (mantis #8533)
  * pad constant string assignments to chararrays with #0 up to the
    length of the chararray for 2.0.x compatibility (fixes
    tests/test/tarray3)

git-svn-id: trunk@6915 -
2007-03-18 12:20:01 +00:00
florian
2d0c27e80d * sparc uses softfloat routines so softfloat exception masking needs to be set properly
git-svn-id: trunk@6888 -
2007-03-16 20:04:39 +00:00
Jonas Maebe
c7f77296a9 + brotl, brotr and bnot functions for macpas mode + tests
git-svn-id: trunk@6881 -
2007-03-16 16:01:26 +00:00
Károly Balogh
8e7c440790 + added keymap.library interface unit, which will be required by the updated keyboard unit
git-svn-id: trunk@6873 -
2007-03-15 18:01:49 +00:00
Jonas Maebe
6eb320506b * fixed range error in incmonth()
git-svn-id: trunk@6858 -
2007-03-14 19:48:08 +00:00
Jonas Maebe
d3736f563f * fixed several range errors
git-svn-id: trunk@6857 -
2007-03-14 19:47:53 +00:00
Jonas Maebe
18e0b6e98b * do not turn on range/overflow checking, because several of the
statements cause range errors which should be ignored for Delphi
    compatibility (e.g. assigning a variant which contains -10 to a
    cardinal)

git-svn-id: trunk@6856 -
2007-03-14 19:47:32 +00:00
Jonas Maebe
a2c3826281 * changed fpc_big_chararray and fpc_big_widechararray from
array[0..1023] into array[0..0], because they're used as
    dummy return types for the Xstring_to_chararray helpers,
    and if a smaller array is actually passed as result then
    having a larger array declared will cause -gt to
    overwrite other data

git-svn-id: trunk@6855 -
2007-03-14 19:45:07 +00:00
Jonas Maebe
5bf9c58e14 * fixed real:=variant for non-x86
git-svn-id: trunk@6847 -
2007-03-14 17:04:15 +00:00
pierre
73f4288d97 + allow to disable smartlinking if NO_SMART_LINK is defined
git-svn-id: trunk@6834 -
2007-03-13 22:55:50 +00:00
florian
1cd41b68f7 * compiler handled round/trunc for x86
git-svn-id: trunk@6827 -
2007-03-13 20:23:24 +00:00
Jonas Maebe
95474a2d38 * fixed memory leak in executeprocess for FPC_USE_FPEXEC
git-svn-id: trunk@6826 -
2007-03-13 18:54:27 +00:00
Jonas Maebe
bdc378e250 * fixed 64 bit compilation
git-svn-id: trunk@6816 -
2007-03-13 08:35:08 +00:00
Jonas Maebe
69cf42c4f7 * fixed val(s,int64) (it accepted values in the range
high(int64+1)..high(qword) if written in decimal notation) + test
  * fixed range checking of qword constants parsed by the compiler
    (they always gave a range error if > high(int64), because the compiler
     internally stores them as int64)
  * turn off range checking flag of rdconstnodes created by the parser
    from _INTCONST, because those are already range checked by the
    way they are parsed using val()

git-svn-id: trunk@6814 -
2007-03-12 22:22:43 +00:00
pierre
4f3f5d042b * return nil in TraceGetMem if SysGetMem returns nil
git-svn-id: trunk@6811 -
2007-03-12 20:59:36 +00:00
florian
418222bc32 * handle interfaces et al. correctly in Set/GetOrdProp, resolves #8510
git-svn-id: trunk@6804 -
2007-03-12 19:38:22 +00:00
florian
2085635fe7 * load moveproc with default value
git-svn-id: trunk@6803 -
2007-03-12 19:31:52 +00:00
florian
87bc8a4471 * fixed InterlockedCompareExchange(64) of x86_64.inc for win64 too
git-svn-id: trunk@6798 -
2007-03-11 22:28:08 +00:00
Tomas Hajny
374e759169 * cleanup by Marco Borsari (borsa77)
git-svn-id: trunk@6794 -
2007-03-11 20:57:50 +00:00
florian
fd6fdfe896 * check used fpu type properly
git-svn-id: trunk@6786 -
2007-03-11 17:17:06 +00:00
florian
7fb2a035e3 * fixed patch for #8480
git-svn-id: trunk@6783 -
2007-03-11 10:13:23 +00:00
marco
77d82e5b0a * patch from #8480 committed. #0#0 also copied.
git-svn-id: trunk@6782 -
2007-03-10 22:26:07 +00:00
marco
b7b057d570 * patch for 8452 committed
git-svn-id: trunk@6781 -
2007-03-10 21:05:48 +00:00
yury
9b26e7d261 + Added GAPI header translation by Nikolay Nikolov.
git-svn-id: trunk@6777 -
2007-03-10 20:03:44 +00:00
ivost
e7fb4e6a32 * changed i386 syscall from oldfpccall to register calling convention
git-svn-id: trunk@6776 -
2007-03-10 18:09:13 +00:00
ivost
ed87187cad * removed InterlockedCompareExchange64 for i386 from system unit
git-svn-id: trunk@6775 -
2007-03-10 18:08:21 +00:00
ivost
faf3b065f8 * updated TLS segmentdescriptor definiton (record user_desc)
git-svn-id: trunk@6767 -
2007-03-09 22:23:42 +00:00
florian
52cebb0083 * map SIGILL to rte 216, experimental
git-svn-id: trunk@6762 -
2007-03-09 21:27:06 +00:00
ivost
2c22173534 * Added InterlockedCompareExchange64 for i386 (supported over cmpxchg8b instruction)
git-svn-id: trunk@6753 -
2007-03-09 09:29:17 +00:00
Jonas Maebe
c630797934 * fixed swap(integer) due to counter-intuitive TP/Delphi compatible
shr-behaviour

git-svn-id: trunk@6752 -
2007-03-08 22:30:12 +00:00
ivost
f1e218ffe0 * fixed InterlockedCompareExchange(64) of x86_64.inc (I dont know if win64 version is wrong also!)
git-svn-id: trunk@6751 -
2007-03-08 22:27:34 +00:00
ivost
fc0f2f3de6 * disabled Clone syscall in linux.pp, it was completly wrong (I will replace it)
* added ldt record and constants to linux.pp

git-svn-id: trunk@6750 -
2007-03-08 21:40:59 +00:00
florian
a99b5470af * big variant from Thorsten Engler, fixes and improves several variant stuff
git-svn-id: trunk@6747 -
2007-03-07 20:45:06 +00:00
Tomas Hajny
b06b453ee1 * check for 64-bit support in FileTruncate based on TOff definition
git-svn-id: trunk@6746 -
2007-03-06 20:33:28 +00:00
Jonas Maebe
6a7321c318 * enabled 64 bit filetruncate
git-svn-id: trunk@6739 -
2007-03-06 10:17:03 +00:00
peter
7fb4c0675a * fixed compile error
git-svn-id: trunk@6732 -
2007-03-06 07:13:20 +00:00
Tomas Hajny
5e1a7997ee + FileTruncate allows 64-bit parameter
git-svn-id: trunk@6727 -
2007-03-05 23:47:10 +00:00
Tomas Hajny
b9c017eb60 + support for 64-bit FS calls
git-svn-id: trunk@6724 -
2007-03-05 00:29:11 +00:00
Tomas Hajny
1740525027 + dynamically loaded 64-bit FS calls made available outside unit System
git-svn-id: trunk@6723 -
2007-03-05 00:17:27 +00:00
Tomas Hajny
ee539c3a94 * high memory not used by default - incompatible to 64-bit FS calls
git-svn-id: trunk@6722 -
2007-03-04 23:09:18 +00:00