Commit Graph

37558 Commits

Author SHA1 Message Date
Tomas Hajny
99a9955195 + ExpandFileNameCase implementation added
git-svn-id: trunk@21466 -
2012-06-02 22:30:08 +00:00
sergei
747cd55b09 * Fixed 64-bit ELF program header definition (field order is different from 32-bit counterpart!)
* Factored values used in the ELF header into constants, so they can be reused when reading object files.
* Writing first 16 bytes of ELF header should be endian-neutral.
* Section symbols must have st_name equal to zero, using section shstridx is incorrect because it is an index into .shstrtab, not into .strtab (actually written content is unchanged, because section_write_symbol is called while shstridx is still zero).

git-svn-id: trunk@21455 -
2012-06-02 11:35:12 +00:00
florian
52372a88ca * arm and x86-64 can do exception handling without a framepointer based stack
git-svn-id: trunk@21454 -
2012-06-01 21:32:23 +00:00
florian
15b613a083 * another rule fix
git-svn-id: trunk@21453 -
2012-06-01 21:31:14 +00:00
sergei
e41a365f59 * Changed 'var' parameters to 'out' in order to avoid warnings (Mantis #22136)
git-svn-id: trunk@21452 -
2012-06-01 19:57:28 +00:00
pierre
1759d5fc8e Correctly handle implicitlibs="c gcc"
git-svn-id: trunk@21451 -
2012-06-01 14:28:41 +00:00
svenbarth
a7f95382b6 Added test for Mantis #15683 which seems to be fixed already.
git-svn-id: trunk@21450 -
2012-06-01 12:01:18 +00:00
pierre
a9e6a732c7 Enable graph for go32v2 target
git-svn-id: trunk@21449 -
2012-06-01 08:52:47 +00:00
pierre
a998ce14eb Avoid installation in units/i386-go32v2 instead of units/go32v2 for global packages go32v2 installation
git-svn-id: trunk@21448 -
2012-06-01 08:44:19 +00:00
michael
f855753a78 * Easy access functions in TJSONObject
git-svn-id: trunk@21447 -
2012-05-31 21:06:22 +00:00
florian
3ae5fc8c04 * patch by Nico Erfurth: adds a check for SM_ASR to also support removal of unnecessary sign extension before STRH.
git-svn-id: trunk@21446 -
2012-05-31 20:24:48 +00:00
florian
af7bb6faab * ignore unused parameters when inlining
git-svn-id: trunk@21445 -
2012-05-31 18:48:38 +00:00
florian
4f273aa08d * patch by Nico Erfurth: Handle STR*/LDR* properly in ARM Peephole optimizers
git-svn-id: trunk@21444 -
2012-05-31 17:00:19 +00:00
pierre
b9f8934d7e * Fix for go32v2 specific failure in test/cg/tcalval5 with -Aas option
git-svn-id: trunk@21443 -
2012-05-31 12:55:56 +00:00
pierre
069cd9f250 Fix go32v2 staticClibprefix used by internal linker
git-svn-id: trunk@21442 -
2012-05-31 09:34:53 +00:00
sergei
14d66a64a4 + Definitions and utility functions for executable ELF files
git-svn-id: trunk@21441 -
2012-05-31 09:23:35 +00:00
sergei
1c271251f8 - Removed tcoffexeoutput.FCoffSyms, it is never used (symbols are written directly to the output)
* Improved TCoffObjOutput.ReadObjData to use one Seek less, also improved error messages.

git-svn-id: trunk@21440 -
2012-05-31 09:01:11 +00:00
svenbarth
2f92336b94 Forgot to commit the extension of the TSearchRec with the FindData for NativeNT.
git-svn-id: trunk@21439 -
2012-05-31 07:26:57 +00:00
svenbarth
22d1a8bbab Improve NativeNT RTL (tested on Windows 7)
* fix DirectoryExists which didn't yet work without System privileges
* fix FileExists which didn't use the correct access flags
+ implement FindFirst/FindNext/FindClose which is conceptually based on the Find-mechanism of the Unix RTL as for the object hierarchy I can't use the same mechanism that Windows provides for filesystems (the function NtQueryDirectoryFile provides the possibility to pass a pattern, but I'm not using that functionality; maybe I'll update FindNext in the future to use this for speed up...). Note: The PChar "workaround" is needed, because string reallocation does currently not work... (maybe Reallocmem is buggy)
- remove FindMatch which is only provided by Windows SysUtils and DOS units
+ add functions/constants/types which are used by Find* to the NDK includes
- remove "packed" from file information types (Windows 7 didn't like the size otherwise)

git-svn-id: trunk@21438 -
2012-05-31 07:18:13 +00:00
marco
3b7a933e9d * A few utility routines that capture program output in a string.
git-svn-id: trunk@21437 -
2012-05-30 18:07:37 +00:00
marco
0f88cfed41 * if arguments and exename already quoted, then assume the user did it properly. Mantis #22040
git-svn-id: trunk@21436 -
2012-05-30 17:25:20 +00:00
sergei
3a89544cd6 + Internal linker for go32v2:
* Enable smart linking on go32v2
  * Adapted external linker script for long section names (ld 2.17 from fpcbuild repository does not seem to actually remove unused sections though)
  * Do not pass '-lc' twice to external linker
  * Pass -Map with correct filename to external linker if -Xm is specified on command line
  * Debug sections for DJCOFF must have zero memory position and flag COFF_STYP_INFO (not COFF_STYP_NOLOAD).

git-svn-id: trunk@21435 -
2012-05-30 13:45:36 +00:00
florian
1403cec462 * patch by Nico Erfurth:
Linux shows a similar behaviour as BEOS in this test. The time gets set to the
next day to around 12:00. While the problem only shows when running the
test-suite as root, it's still annoying when it happens.

git-svn-id: trunk@21434 -
2012-05-29 19:12:55 +00:00
florian
2ce563710a * another rule fix
git-svn-id: trunk@21433 -
2012-05-29 18:19:57 +00:00
sergei
1579583484 * COMISD (and COMISS, too) instruction cannot have memory reference as destination, Mantis #22150.
git-svn-id: trunk@21432 -
2012-05-29 14:43:01 +00:00
Jonas Maebe
a6375ba385 * don't limit the full path of reslogfile to 32 characters
git-svn-id: trunk@21430 -
2012-05-29 09:21:07 +00:00
Jonas Maebe
f8cb3fbfef + old tests I forgot to commit
git-svn-id: trunk@21429 -
2012-05-29 09:01:55 +00:00
Jonas Maebe
e0a2d43951 * fixed compilation command for mmx unit after r21405
git-svn-id: trunk@21427 -
2012-05-29 08:38:43 +00:00
florian
4890ec240e * padding corrected
git-svn-id: trunk@21426 -
2012-05-29 05:38:47 +00:00
Tomas Hajny
24f8fa9774 * compilation fix (EMX was not updated when moving to PChar based *Dir calls)
git-svn-id: trunk@21425 -
2012-05-28 23:43:44 +00:00
Jonas Maebe
b16f9a5dab - { %files=... } is for files that exist after execution and have to be
copied to the output directory, and the listed file gets deleted at the
    end of the test's execution -> removed

git-svn-id: trunk@21424 -
2012-05-28 22:05:04 +00:00
florian
fbc77b74c2 * patch by Nico Erfurth to remove superfluouse moves
git-svn-id: trunk@21422 -
2012-05-28 21:58:06 +00:00
florian
c348b6f2cc * patch by Nico Erfurth:
- Support MLA and MUL in DataMov2Data
- SMLAL and UMLAL are also reading from oper[0]
- UMLAL, UMULL, SMLAL and SMULL are writing to oper[1]

git-svn-id: trunk@21421 -
2012-05-28 18:11:31 +00:00
florian
0fa1bf27c1 + tmipsaddnode.pass_1 setting expectloc correctly
git-svn-id: trunk@21420 -
2012-05-28 16:24:21 +00:00
florian
1b3dd8eefe * patch by Jeppe Johansen: fixes TCGMIPS.getfpuregister
git-svn-id: trunk@21419 -
2012-05-28 16:23:11 +00:00
florian
181bc24945 * fix mips(el) stat record
git-svn-id: trunk@21418 -
2012-05-28 16:22:11 +00:00
florian
2162df1802 * patch by Jeppe Johansen: fix gen_load_cgpara_loc for mips(el)
git-svn-id: trunk@21417 -
2012-05-28 16:21:30 +00:00
florian
00638e023f * set correct PPSUF for MIPS(EL), based on a patch by Jeppe Johansen
git-svn-id: trunk@21416 -
2012-05-28 16:19:37 +00:00
florian
7cc227be17 . remove obsolete tests
git-svn-id: trunk@21415 -
2012-05-28 14:34:55 +00:00
florian
10023597d2 * fix import in wince system unit, patch by Gennadiy, resolves #22131
git-svn-id: trunk@21414 -
2012-05-28 14:29:55 +00:00
florian
ff2469f533 * compile mipsel rtl always with -Ur
git-svn-id: trunk@21413 -
2012-05-28 14:18:59 +00:00
Jonas Maebe
5dc75a92a3 * don't write size suffix for popcnt on Darwin, its assembler doesn't
support it (fixes webtbs/tw13186)

git-svn-id: trunk@21412 -
2012-05-28 14:00:02 +00:00
florian
7bdbb3448e * minimum compiler version to build the compiler is 2.6.0
git-svn-id: trunk@21411 -
2012-05-28 13:30:51 +00:00
sergei
6571b4d140 * Factored code to create internal link script for debug sections into a separate procedure.
git-svn-id: trunk@21410 -
2012-05-28 13:28:21 +00:00
Jonas Maebe
9f0fb9cf10 - removed "<<<<<<< HEAD" leftover from a conflicting merge
git-svn-id: trunk@21409 -
2012-05-28 12:08:14 +00:00
sergei
8814f56081 * Fixed oso_debug section attribute being not preserved while reading/writing DJCOFF object files.
* Fixed header data positions for DJCOFF executables, they need adjustment by stub size.
* Fixed symbol values in DJCOFF executables, they must be absolute.
* Fixed missing oso_common flag on TExeOutput.commonObjSection, causing incorrect COFF relocations to this section.

git-svn-id: trunk@21408 -
2012-05-28 11:46:52 +00:00
Jonas Maebe
3a2afe27aa + new -varparas option that adds overloads for imported methods whereby
Java array parameters are translated into single element var-parameters

git-svn-id: trunk@21407 -
2012-05-28 10:21:25 +00:00
Jonas Maebe
252483ffd8 + support for running the testsuite in parallel. Note that only the "all"
target can be run in parallel, so "clean", "digest" and/or "dbdigest"
    have to be run in separate make invocations if you wish to use -j for
    running the testsuite

git-svn-id: trunk@21406 -
2012-05-28 09:14:56 +00:00
florian
48aae2d031 * fixed rules and dependencies for linux
git-svn-id: trunk@21405 -
2012-05-28 08:44:13 +00:00
florian
9e180fb318 * remove unneeded zero extensions from 16 to 32 Bit
git-svn-id: trunk@21404 -
2012-05-28 07:21:27 +00:00