Commit Graph

27360 Commits

Author SHA1 Message Date
Jonas Maebe
6c536dab3e * added several missing make_simple_ref() calls
* removed addr_pic again for darwin, as you have to explicitly code
    the relative address using a relsym instead of using an assembler
    directive like @GOT there

git-svn-id: trunk@9353 -
2007-11-29 22:06:14 +00:00
Jonas Maebe
5a7809394e * fixed addr_pic check (symbol-relsymbol is also always
position-independent)

git-svn-id: trunk@9352 -
2007-11-29 21:50:01 +00:00
peter
cbac667753 * check for eax,edx,ecx,ebx that support 8,16 bit registers in shortint add/sub peephole
and update register size of substructor

git-svn-id: trunk@9351 -
2007-11-29 21:16:32 +00:00
peter
dbba46c0e4 * set addr_pic
git-svn-id: trunk@9350 -
2007-11-29 21:15:22 +00:00
peter
f0e804beb7 * typecast fix
git-svn-id: trunk@9349 -
2007-11-29 21:15:08 +00:00
peter
95772c5cd3 * remove $ifdef extedbug for pic address check
git-svn-id: trunk@9348 -
2007-11-29 21:14:47 +00:00
Jonas Maebe
96180029b2 * perform 4 instead of 8 byte copies at a time if source or dest is
unaligned
  * use integer instead of floating point for 8 byte copies because the
    integer unit has lower latency

git-svn-id: trunk@9347 -
2007-11-29 17:18:52 +00:00
Jonas Maebe
bc545b077f - removed internalerror in case a subsetref value is loaded on a cpu
which requires proper alignment (they have to support unaligned accesses
    in their a_load_*_* routines)

git-svn-id: trunk@9346 -
2007-11-29 12:59:05 +00:00
Jonas Maebe
31764a0e3b + unaligned support in a_load_reg_ref and a_load_ref_reg for ppc64
(only needs it in case a 64 bit value is loaded from an address
     with alignment < 4 bytes)

git-svn-id: trunk@9345 -
2007-11-29 12:56:31 +00:00
yury
99a8012472 * Allow using constants in {$IF } directive in OBJFPC mode.
* Define FPC_OBJFPC_EXTENDED_IF to allow to test if this feature can be safely used.

git-svn-id: trunk@9342 -
2007-11-28 00:07:18 +00:00
yury
a477a3781a * Added support of HIGH() function in {$IF } preprocessor directive. Delphi 7 supports HIGH() there.
git-svn-id: trunk@9341 -
2007-11-27 23:58:53 +00:00
micha
83285b3418 tdbf: fix compilation for wince: it has no OemToCharBuff
git-svn-id: trunk@9339 -
2007-11-27 20:54:51 +00:00
marco
3e1eba1745 * logon32 constants expanded #10280
git-svn-id: trunk@9338 -
2007-11-27 15:37:23 +00:00
Jonas Maebe
2a767fc893 * fixed powerpc32 compilation after r9331
git-svn-id: trunk@9336 -
2007-11-26 11:14:07 +00:00
Jonas Maebe
26930be303 * fixed non-x86 compilation after r9333
git-svn-id: trunk@9335 -
2007-11-26 11:13:42 +00:00
florian
d08abbca46 * forgotten commit
git-svn-id: trunk@9334 -
2007-11-25 20:49:57 +00:00
florian
fb8bbd5ff0 + inline abs(<longint>) on x86
git-svn-id: trunk@9333 -
2007-11-25 18:54:40 +00:00
marco
1a34960b53 * asmscript stuff under if ldnoresponsfile. Fixes FreeBSD breakage
git-svn-id: trunk@9332 -
2007-11-25 18:08:08 +00:00
peter
59365a6db9 - garbage was being output sometimes instead of source lines when compiling with -al. This is because lastfileinfo and lastinfile were never initialized for MASM writer. This is true for TPPCMPWAssembler, too.
- long lines were not wrapped.
- constants of type ait_comp_64bit output incorrectly.
- at end of file, current segment was not closed.
patch from Sergei Gorelkin

git-svn-id: trunk@9331 -
2007-11-25 16:46:19 +00:00
peter
6058b2c247 * renamed t_times to executionweight and moved it to
code generation pass
  * include executionweight in the spilling decision

git-svn-id: trunk@9330 -
2007-11-25 16:38:05 +00:00
peter
fcb37c4fa4 * peephole added for non-longint:=non-longint+X
git-svn-id: trunk@9329 -
2007-11-25 14:32:59 +00:00
Jonas Maebe
0c06fddb8f * fixed compilation
git-svn-id: trunk@9328 -
2007-11-25 10:20:54 +00:00
sekelsenmat
8476d0af2c Adds symbian arm target.
git-svn-id: trunk@9327 -
2007-11-24 22:04:59 +00:00
sekelsenmat
b1f8d613f8 Small improvement to symbian build tool
git-svn-id: trunk@9326 -
2007-11-24 21:26:52 +00:00
Jonas Maebe
0ac6e82c1f * fixed handling of directories with spaces for LdSupportsNoResponseFile-
targets (a.o. darwin) in case no ppas.sh is generated (need to generate
    a temporary script in that case as well to use the IFS trick)
  * fixed exit code checking of ld when using IFS trick (have to check it
    before restoring IFS, otherwise we check the "error result" of this
    restoration, which will always be 0)

git-svn-id: trunk@9325 -
2007-11-24 18:06:01 +00:00
Jonas Maebe
2d99011152 * regenerated for darwin/x86_64
git-svn-id: trunk@9324 -
2007-11-24 17:54:42 +00:00
Jonas Maebe
d8d393e802 - no longer pass "-read_only_relocs suppress" to the darwin linker when
compiling shared libraries as we no longer generate relocations in
    read-only sections

git-svn-id: trunk@9323 -
2007-11-24 16:43:47 +00:00
florian
f6e9d133ab + x86_64 units for lazarus
git-svn-id: trunk@9321 -
2007-11-24 09:21:25 +00:00
joost
17e0cf0fa4 * Avoid AV at finalization
git-svn-id: trunk@9320 -
2007-11-23 18:40:58 +00:00
michael
12439de612 * Added PCX support from Laurent Jacques
git-svn-id: trunk@9319 -
2007-11-23 10:07:20 +00:00
marco
634b5ad2db * added brga record to get it compiling.
git-svn-id: trunk@9318 -
2007-11-22 21:38:37 +00:00
michael
aa7f70fc5e * Fix by Laurent Jacques to read all formats
git-svn-id: trunk@9317 -
2007-11-22 18:14:44 +00:00
Almindor
b0770c35ef * add WINSOCK_VERSION to old winsock1 unit
git-svn-id: trunk@9316 -
2007-11-22 09:53:35 +00:00
Jonas Maebe
b4b069908f - removed some unnecessary cg. prefixes when calling tcg methods
from inside other tcg methods

git-svn-id: trunk@9315 -
2007-11-22 09:03:35 +00:00
peter
093237e74d * Use expandfilename to remove ../.. from FPCDIR for non-unix
git-svn-id: trunk@9314 -
2007-11-21 22:00:48 +00:00
peter
44d9f35eef * test for #10224
git-svn-id: trunk@9313 -
2007-11-21 21:52:45 +00:00
peter
544cf539e1 * fix for relativepath, fixes #10224
git-svn-id: trunk@9312 -
2007-11-21 21:51:42 +00:00
peter
044ef8b982 patch from Darius Blaszijk
- implements Defaults.NoFPCCfg in TBuildEngine.GetCompilerCommand
- added ttCleanOnlyUnit in TTarget.GetCleanFiles
- fixes a dirty little bug in TBuildEngine.GetCompilerCommand (compile filename)

git-svn-id: trunk@9311 -
2007-11-21 21:41:03 +00:00
marco
0f412ff2d6 * mantis 10222,10223 typo corrected + non standard Delphi callback prototype
git-svn-id: trunk@9309 -
2007-11-21 13:35:10 +00:00
peter
0852ce56a9 * check for all fpmkunit dependencies with version check
git-svn-id: trunk@9306 -
2007-11-20 22:23:41 +00:00
peter
b72cb5f4b8 * check if the minimum required fpmkunit is installed, if not
installed or too old then fallback to internal source

git-svn-id: trunk@9305 -
2007-11-20 22:01:22 +00:00
Jonas Maebe
1d147da585 * modified new ExtractStrings routine to again support
nil as strings parameter
  * reformatted new ExtractStrings to be the same as the other
    surrounding code

git-svn-id: trunk@9304 -
2007-11-20 15:37:06 +00:00
Jonas Maebe
80b8494b5c * fixed wrong unaligned() changes
git-svn-id: trunk@9303 -
2007-11-20 12:15:47 +00:00
Jonas Maebe
3b4eba9f86 * fixed handling of unaligned in assignments
git-svn-id: trunk@9302 -
2007-11-20 11:59:15 +00:00
yury
d568718cb0 * Removed UpperCaseTable and LowerCaseTable variables and TCaseTranslationTable type from interface part. These variables are used only by generic upper/lower case conversion routines. They are not used on Windows targets and it is bad idea to let users use these variables. Users must use AnsiLowerCase and AnsiUpperCase routines.
git-svn-id: trunk@9301 -
2007-11-20 10:45:50 +00:00
peter
cc77ccb52e * don't use readdata for getbyte/getword/getlongint
git-svn-id: trunk@9300 -
2007-11-19 22:52:58 +00:00
joost
35b96a8705 * Added tests which were usefull for r9298
git-svn-id: trunk@9299 -
2007-11-19 22:36:27 +00:00
joost
96fe8e196a * Started adding an array-approach to the already existing double-linked list mechanism in TBufDataset. The list based on an array can be enabled with the ARRAYBUF define
git-svn-id: trunk@9298 -
2007-11-19 22:35:35 +00:00
peter
241c65d5ec * optimize fixpath, findfile to not require temp ansistrings
* check for verbosity for V_Tried level messages, patches from Sergei Gorelkin

git-svn-id: trunk@9297 -
2007-11-19 22:24:52 +00:00
peter
cb24c78d4d * typecast to tenumreg before updating usedregs to prevent varset usage, patch from Sergei Gorelkin
git-svn-id: trunk@9296 -
2007-11-19 22:22:25 +00:00