Commit Graph

57398 Commits

Author SHA1 Message Date
Jonas Maebe
af97c43bdc + tests for r43436
git-svn-id: trunk@43438 -
2019-11-10 13:13:57 +00:00
Jonas Maebe
d23c7980aa * properly perform (or not) range/overflow checking when performing constant
propagation into inlined routines, regardless of the range/overflow
    checking state at the caller site

git-svn-id: trunk@43436 -
2019-11-10 12:00:05 +00:00
michael
d29d9c672c * Fix compilation for windows
git-svn-id: trunk@43435 -
2019-11-10 10:12:05 +00:00
florian
88a8871c62 * read more types of references properly
git-svn-id: trunk@43433 -
2019-11-09 21:58:31 +00:00
florian
79dfd9fb51 + MIPS: take care of setnoat
git-svn-id: trunk@43432 -
2019-11-09 21:58:30 +00:00
michael
8b89a5cc51 * Remove testsuite again
git-svn-id: trunk@43431 -
2019-11-09 18:56:14 +00:00
florian
99ce957111 * fixed default value for progbits
git-svn-id: trunk@43430 -
2019-11-09 18:32:36 +00:00
florian
137f392c66 * parameters declared as out must be initialized
git-svn-id: trunk@43429 -
2019-11-09 18:29:14 +00:00
florian
40bbb28fd2 * do not write section flags/progbits for .data, .rodata .data.norel as the compiler will ignore them anyways and warn about it
git-svn-id: trunk@43428 -
2019-11-09 18:28:30 +00:00
florian
7e3acda739 * TIOCtlRequest is declared as unsigned long according to man 2 ioctl
git-svn-id: trunk@43427 -
2019-11-09 18:27:21 +00:00
florian
f20e6ff323 * update generic linker script
git-svn-id: trunk@43426 -
2019-11-09 16:58:58 +00:00
michael
1c3b41eb54 * Testsuite in punit format
git-svn-id: trunk@43425 -
2019-11-09 13:39:14 +00:00
svenbarth
9e7f16f912 * correctly declare the return value of TPKeyEnumerator.GetCurrent as PKey instead of TKey
git-svn-id: trunk@43420 -
2019-11-08 22:34:11 +00:00
svenbarth
d813edef72 * also advance the error code in the case of success
git-svn-id: trunk@43419 -
2019-11-08 22:34:07 +00:00
ondrej
9a9cd15ec4 TInterfacedObject.Destroy: fix case for correct auto-completion
git-svn-id: trunk@43418 -
2019-11-08 21:29:26 +00:00
michael
5f6f5cb864 * Bit helpers for ordinal functions, adapted from batch by Thaddy De Koning (bug ID 0036146)
git-svn-id: trunk@43417 -
2019-11-08 11:43:10 +00:00
michael
f622f58b04 * Observe doclear
git-svn-id: trunk@43416 -
2019-11-08 09:31:45 +00:00
michael
e578477334 * Refactor AddDelimitedText/SetDelimitedText
git-svn-id: trunk@43415 -
2019-11-08 09:21:08 +00:00
michael
d3ceede910 * Reduce use of Length(aValue) in setdelimitedtext
git-svn-id: trunk@43414 -
2019-11-08 08:36:31 +00:00
florian
d275e7a7e6 * removed accidently committed debug statement
git-svn-id: trunk@43413 -
2019-11-07 21:12:47 +00:00
florian
c8f746b881 * do not allocate an extra register for some integer operations if not needed
git-svn-id: trunk@43412 -
2019-11-07 21:08:08 +00:00
svenbarth
b0ac0ddcc9 + add support for the IsManagedType() intrinsics which reports for a type (or variable) whether it needs initialization/finalization
+ added tests

git-svn-id: trunk@43409 -
2019-11-06 23:04:52 +00:00
Jonas Maebe
490f057aa1 * replaced the arrays in the generic set helpers with arrays of 32 bytes
instead of high(cardinal), so LLVM doesn't get tricked into massively
    unrolling and parallelising those loops

git-svn-id: trunk@43408 -
2019-11-06 21:50:23 +00:00
Jonas Maebe
ac1e0f96bd * replaced tentryfile.get/putsmall/normalset() with a common tget/putset
that expects an open array of byte, and use it for all sets
   o since all sets need to be typecasted to an array type of the appropriate
     size, we'll get a compilation error in case this needs to be done and
     that also tells us at the same time that the ppu version will need to
     be increased
  * enabled {$packset 1} for the compiler, as this is now safe with the above
    changes

git-svn-id: trunk@43407 -
2019-11-06 21:50:19 +00:00
michael
3b867da924 * Add AddDelimitedText,AddCommatext by Werner Pamler (bug ID 36249)
git-svn-id: trunk@43405 -
2019-11-06 10:51:34 +00:00
michael
2557c8e99b * Fix bug ID #0036268, more descriptive comment
git-svn-id: trunk@43404 -
2019-11-06 10:42:11 +00:00
pierre
fff3b67b7e Remove ALLOW_WARNINGS=1 for m68k compiler
git-svn-id: trunk@43392 -
2019-11-05 10:37:19 +00:00
pierre
7d12e8cc6d Avoid warnings for m68k compiler
git-svn-id: trunk@43391 -
2019-11-05 10:00:48 +00:00
florian
fabe4cc067 * patch by Christo Crause: reg. allocation information if non-volatile registers
are used for parameter passing as it is might happen on avr, resolves #36079

git-svn-id: trunk@43390 -
2019-11-04 20:14:46 +00:00
marco
ee5fe9ef79 * patch from Keith Bowes, mantis #23950
git-svn-id: trunk@43389 -
2019-11-04 15:43:12 +00:00
yury
937683ec8f * pas2jni: Filter out advanced methods and properties of RTL classes to prevent overbloated code.
git-svn-id: trunk@43386 -
2019-11-03 18:51:33 +00:00
florian
d3c5bd2a3e * test for tw36212
git-svn-id: trunk@43385 -
2019-11-03 17:33:26 +00:00
florian
c6659d62f8 * do not join register deallocations/allocations as it makes no use and causes later on trouble in
the assembler optimizer as register allocations are not correct, resolves #33565

git-svn-id: trunk@43384 -
2019-11-03 17:13:59 +00:00
yury
a09c0a6857 * pas2jni: Exclude TExtended80Rec by default.
git-svn-id: trunk@43383 -
2019-11-03 16:00:41 +00:00
florian
b8f186dab2 * reverted r43366
git-svn-id: trunk@43382 -
2019-11-03 14:42:02 +00:00
yury
b988837d1b * pas2jni: Skip var parameters of unsupported types.
git-svn-id: trunk@43381 -
2019-11-03 14:26:00 +00:00
yury
b4e0c72cbe * pas2jni: Fixed more case statement warnings.
git-svn-id: trunk@43376 -
2019-11-03 13:22:14 +00:00
yury
843b1b0d49 * Fixed case statement warnings.
git-svn-id: trunk@43375 -
2019-11-03 13:13:52 +00:00
Jonas Maebe
62da49577d * set default Mac OS X/OS X/macOS target version to 10.8 for i386 and x86-64,
instead of the previous 10.4 for i386 and 10.5 for x86-64. This prevents
    issues with finding the crt.* files, as starting with 10.8 those files
    are no longer required.

git-svn-id: trunk@43374 -
2019-11-02 22:44:15 +00:00
florian
20a47afe13 * more aggressive LeaCallLeaRet2Jmp
git-svn-id: trunk@43373 -
2019-11-02 22:37:31 +00:00
florian
1fc7667b3b + LeaCallLeaRet2Jmp
git-svn-id: trunk@43372 -
2019-11-02 22:37:30 +00:00
florian
6842c5784d * CallRet2Jmp works with PIC
git-svn-id: trunk@43371 -
2019-11-02 22:37:29 +00:00
florian
3487c34ed9 * unified TX86AsmOptimizer.OptPass1MOVAP and TX86AsmOptimizer.OptPass1VMOVAP
git-svn-id: trunk@43370 -
2019-11-02 18:48:23 +00:00
florian
f9530437c2 * fix i386 building
git-svn-id: trunk@43369 -
2019-11-02 18:34:53 +00:00
florian
c3ef42b164 * allow cmov with memory reference if it is a pure symbol or a rip relative symbol: as the symbol is
allocated within the image of the program, this should never cause a seg. fault, so it is save
    to use cmov with it

git-svn-id: trunk@43368 -
2019-11-02 18:09:11 +00:00
florian
5ead23513d * more overloads for Math.Min/Max, resolves #36161
git-svn-id: trunk@43366 -
2019-11-02 16:21:43 +00:00
michael
faee789507 * Add some functional methods to TStrings
git-svn-id: trunk@43365 -
2019-11-02 15:08:27 +00:00
yury
4ade471488 * GetModuleByAddr: Prevent returning a name of the current executable for invalid addresses such as pointer(-1) on Windows.
git-svn-id: trunk@43364 -
2019-11-02 14:54:25 +00:00
michael
6f80223b64 * Fix bug ID #36248
git-svn-id: trunk@43363 -
2019-11-02 14:35:18 +00:00
michael
bd91c559ee * Forgot to commit
git-svn-id: trunk@43362 -
2019-11-02 14:33:19 +00:00