Jonas Maebe
25e6eaf07f
* store the to be used recordalignmin and maxcrecordalign settings inside
...
(abstract)recordsymtables, so that these settings don't depend on the
current user settings when internally creating record definitions
git-svn-id: branches/hlcgllvm@30343 -
2015-03-27 21:25:56 +00:00
Jonas Maebe
419a97cce8
* changed emit_ansistring_const() and emit_unicodestring_const() into
...
instance methods that make use of the internal data builder
functionality so they automatically place all string data in the
same section if possible
git-svn-id: branches/hlcgllvm@30342 -
2015-03-27 21:25:53 +00:00
Jonas Maebe
6ed273eec5
* support specifying the name of an internal data section
...
git-svn-id: branches/hlcgllvm@30341 -
2015-03-27 21:25:50 +00:00
Jonas Maebe
a76aba4a20
* converted a number of string data generators to the internal data builder
...
functionality
git-svn-id: branches/hlcgllvm@30340 -
2015-03-27 21:25:47 +00:00
Jonas Maebe
158116392c
+ ttai_typedconstbuilder.start_internal_data_builder() and
...
ttai_typedconstbuilder.finish_internal_data_builder() to generate data
will only be referenced by the typed const that we are currently
generating. Takes care of creating an appropriate label/section for
this data, avoiding needless global symbols and sections.
git-svn-id: branches/hlcgllvm@30339 -
2015-03-27 21:25:43 +00:00
Jonas Maebe
be2f63aa97
+ tasmlabel.createstatic() constructor for creating static data labels
...
(object-local, but not starting with (.)L, so they're still treated as
the start of a subsection by Darwin's linker when dead-stripping)
+ tasmdata.getstaticdatalabel() that uses the above
git-svn-id: branches/hlcgllvm@30338 -
2015-03-27 21:25:40 +00:00
Jonas Maebe
560fe24c44
+ getlocaldatalabel()
...
git-svn-id: branches/hlcgllvm@30337 -
2015-03-27 21:25:37 +00:00
Jonas Maebe
687bb15299
* renamed getdatalabel() to getglobaldatalabel
...
git-svn-id: branches/hlcgllvm@30336 -
2015-03-27 21:25:34 +00:00
Jonas Maebe
5e1bb8e408
+ tcalo_make_dead_strippable to indicate that a typed constant data block
...
should be dead-strippable; may imply the creation of a separate section
(on platforms that dead-strip data based on sections), but does not
require it
* replaced all existing tcalo_new_section uses with
tcalo_make_dead_strippable, as that is their meaning/purpose
git-svn-id: branches/hlcgllvm@30335 -
2015-03-27 21:25:30 +00:00
Jonas Maebe
e924dbed90
* moved the specification of the options for a ttai_typedconstbuilder from
...
get_final_asmlist() to the constructor, in preparation of supporting the
creation of internal builders for local data that will ignore some of the
irrelevant flags (at creation time)
git-svn-id: branches/hlcgllvm@30334 -
2015-03-27 21:25:27 +00:00
nickysn
49d501a798
+ added unit omfbase for omf definitions; currently contains all the omf record
...
type constants
git-svn-id: trunk@30331 -
2015-03-27 00:44:01 +00:00
nickysn
f9d3e0c8d6
+ the beginnings of an i8086-msdos internal obj writer
...
git-svn-id: trunk@30330 -
2015-03-27 00:01:11 +00:00
nickysn
85cb180d80
* prepend "+" to each file name to be added to the library by wlib. This
...
indicates an "add" command, instead of "replace".
git-svn-id: trunk@30287 -
2015-03-23 01:19:19 +00:00
nickysn
931f5a0b54
* fixed passing of the wlib output file parameter (-o requires an equal sign)
...
git-svn-id: trunk@30286 -
2015-03-23 01:10:32 +00:00
Károly Balogh
87deec105d
m68k: implemented 68k specific a_bit_set_const_ref and a_bit_set_reg_ref, using BSET/BCLR
...
git-svn-id: trunk@30278 -
2015-03-22 17:44:59 +00:00
nickysn
069fa51445
* use separate input and output files when invoking wlib to create a static
...
library. This resolves a problem with parallel building of a i8086 cross
compiler, due to a race condition in wlib, when running several instances of
wlib in the same directory. The problem is in the way wlib creates a temp file
in the current directory using non-atomic operations and with a high
probability of a name collision. Using separate input and output files avoids
this temp file creation by wlib.
git-svn-id: trunk@30277 -
2015-03-22 17:42:19 +00:00
Jeppe Johansen
fa5bd1c513
ARMv7M supports UMULL.
...
Fix missing conflicts for multiplication instructions for >=ARMv6.
git-svn-id: trunk@30276 -
2015-03-22 14:39:43 +00:00
Károly Balogh
c49c8210a3
m68k: some initial HLCG, use BSET/BCLR instructions for simple bit manipulation
...
git-svn-id: trunk@30275 -
2015-03-22 14:01:14 +00:00
florian
5f4dc5e54f
* parentheses after an @-operator can contain a full expression, resolves #27517
...
git-svn-id: trunk@30272 -
2015-03-22 13:00:43 +00:00
florian
3396e2e1f4
* interpret -daaa:=bbb after -Sm was passed as a macro definition, resolves #27529
...
git-svn-id: trunk@30271 -
2015-03-22 10:20:37 +00:00
florian
36e79a874e
* when creating code for an iso mod operator, use create_internal for the helper nodes
...
to avoid unnecessary warnings
git-svn-id: trunk@30270 -
2015-03-21 22:57:19 +00:00
florian
a8e001d4ad
* do not warn about disjunct ranges for internally created cmp nodes
...
git-svn-id: trunk@30269 -
2015-03-21 22:56:30 +00:00
florian
0bc63c438e
+ tifnode.create_internal
...
git-svn-id: trunk@30268 -
2015-03-21 22:55:35 +00:00
Károly Balogh
ad301f8fa1
m68k: implemented t68kvecnode.update_reference_reg_packed. same as the generic one, but allocates int registers instead of address registers, because on 68k IMUL,SHR/SHL and AND can't work on address registers, which results in a lot of register shuffling
...
git-svn-id: trunk@30267 -
2015-03-21 20:09:35 +00:00
Jeppe Johansen
5ca1740bee
Fix issue in is_thumb32_imm. imm<11:10> have to be non-zero meaning the rotate only works from 8 to 31. Caused 0x8000001F to be mistaken for a valid immediate.
...
git-svn-id: trunk@30266 -
2015-03-21 12:46:45 +00:00
Jonas Maebe
39594adae1
* different, simpler fix for #27691 fixed in r30261; should fix the
...
internalerrors on some platforms after that revision
git-svn-id: trunk@30265 -
2015-03-20 14:23:28 +00:00
Jonas Maebe
ea3a306da8
* never say that an automatically added unit is unused (mantis #27691 )
...
git-svn-id: trunk@30261 -
2015-03-19 17:48:57 +00:00
Károly Balogh
258b42de26
m68k: added support for FSIN/FCOS. these are software supported on the 68040, so we should have a separate 68040/060 FPU option too, to avoid these in the future.
...
git-svn-id: trunk@30257 -
2015-03-17 22:52:53 +00:00
Jeppe Johansen
09acd9b1ab
Add workaround for ARM thumb when using GAS.
...
git-svn-id: trunk@30254 -
2015-03-17 21:24:07 +00:00
Károly Balogh
b617345e43
m68k: disabled premature MOVEA #0,Ax to SUBA Ax,Ax in the CG, because it breaks with spilling temp replacement and moved it to the optimizer, where it belongs. this fixes some code with potentially heavy address register pressure, like the IDE.
...
git-svn-id: trunk@30245 -
2015-03-16 02:04:58 +00:00
Jonas Maebe
765044aede
* fixed a number of (mostly false) warnings regarding uninitialised
...
variables with -Oodfa
git-svn-id: branches/hlcgllvm@30244 -
2015-03-15 21:10:50 +00:00
Jonas Maebe
bc7ba58798
* fixed compilation after removal of ait_set, ait_thumb_set and ait_symbol_pair
...
git-svn-id: branches/hlcgllvm@30243 -
2015-03-15 21:10:47 +00:00
florian
f6f8e1b83e
* write ppu+source file name in case the source file is not available instead of inserting an invalid absolute path, resolves #27588
...
git-svn-id: trunk@30242 -
2015-03-15 19:51:17 +00:00
Jonas Maebe
bd203a5b57
* synchronised with trunk till r30240
...
git-svn-id: branches/hlcgllvm@30241 -
2015-03-15 19:44:58 +00:00
florian
f07969245b
* fix warning about uninitialized variable
...
git-svn-id: trunk@30240 -
2015-03-15 17:10:01 +00:00
florian
331ace25c6
* handle undefineddef in classify_argument, resolves #27658
...
git-svn-id: trunk@30239 -
2015-03-15 16:19:58 +00:00
Jeppe Johansen
60f24739fc
Fixed typo
...
git-svn-id: trunk@30238 -
2015-03-15 15:47:45 +00:00
florian
38a72f2ddb
* renamed arm->avr to match the cpu
...
git-svn-id: trunk@30237 -
2015-03-15 15:10:37 +00:00
Jonas Maebe
f633d094ee
* perform interface dispatches via R12 instead of R11 as expected for
...
indirect function calls for ELFv2 (and other ABIs don't care about
the register)
git-svn-id: trunk@30236 -
2015-03-15 14:00:32 +00:00
Jeppe Johansen
2bcef2daee
Fix break caused by r30233
...
git-svn-id: trunk@30235 -
2015-03-15 13:34:01 +00:00
Jeppe Johansen
f92f0751f4
Fix selection of LDR/STR instructions in thumb mode. Most forms don't support pre or post indexing.
...
Fix emission of offsets.
git-svn-id: trunk@30234 -
2015-03-15 12:12:13 +00:00
Jeppe Johansen
155998fe89
Support .set and .weak in internal assembler.
...
Fix problem with fpc_initialHeap getting put in .data instead of .bss.
git-svn-id: trunk@30233 -
2015-03-15 12:10:54 +00:00
Károly Balogh
2555f12394
m68k: improved handling of moves and sign/zero extensions targeting address regs
...
git-svn-id: trunk@30232 -
2015-03-15 01:44:43 +00:00
Jonas Maebe
6230119140
- removed self-assignment of cur_stack_offset introduced by refactoring in
...
r30221
git-svn-id: trunk@30230 -
2015-03-14 21:55:48 +00:00
Jonas Maebe
8334597476
* a homogeneous float aggregate can maximally contain 4 elements
...
(mantis #27665 )
git-svn-id: trunk@30229 -
2015-03-14 21:46:45 +00:00
Jonas Maebe
0c394eb6f4
* ensure we don't call a_load_cgparaloc_anyreg() to move an fpu register
...
into an integer register
git-svn-id: trunk@30227 -
2015-03-14 18:36:57 +00:00
Jonas Maebe
622852b8c9
* check that a_load_cgparaloc_anyreg() is not used to try to move an fpu
...
register into a non-fpu register, as this is not (yet) supported
git-svn-id: trunk@30226 -
2015-03-14 18:36:54 +00:00
Jonas Maebe
a02d52f533
* support thlcg2ll.gen_loadfpu_loc_cgpara() from LOC_REGISTER to
...
LOC_FPUREGISTER (can happen with certain ABIs due to records
having to be passed in floating point registers)
git-svn-id: trunk@30225 -
2015-03-14 18:36:52 +00:00
Jonas Maebe
c50c822e13
* fixed destination size when loading fpu temp paralocs
...
git-svn-id: trunk@30224 -
2015-03-14 18:36:49 +00:00
Jonas Maebe
6d02aedf70
* support multiple register paralocs in tcgobj.a_loadfpu_ref_cgpara()
...
git-svn-id: trunk@30223 -
2015-03-14 18:36:46 +00:00
Jonas Maebe
cea2741339
* correct paraloc size for 3-byte records passed in the lower bits of a
...
register (32 bit instead of 64 bit register)
git-svn-id: trunk@30222 -
2015-03-14 18:36:43 +00:00
Jonas Maebe
3d6fcd8815
+ ppc64le/ELFv2 ret_in_param implementation
...
* fixed ret_in_param for other ppc64 ABIs
git-svn-id: trunk@30221 -
2015-03-14 18:36:40 +00:00
Jonas Maebe
a02fb7c794
* fixed misplaced braces that caused all records to be passed by reference
...
on ppc64 with the mwpascal calling convention, instead of only the const
ones
git-svn-id: trunk@30219 -
2015-03-14 18:36:35 +00:00
Jonas Maebe
7bc66a5142
+ ELF/ppc64le resource support
...
git-svn-id: trunk@30218 -
2015-03-14 18:36:32 +00:00
Jonas Maebe
6b9b575b74
* choose between arm (little endian) and armeb for fpcres based on the
...
target_info rather than based on the source_info
git-svn-id: trunk@30217 -
2015-03-14 18:36:29 +00:00
Jonas Maebe
eee83ebb4a
* use generic code for a_load_subsetref_regs_noindex on ppc64le
...
git-svn-id: trunk@30216 -
2015-03-14 18:36:26 +00:00
Jonas Maebe
cf5b42b4b2
* use generic code for set+setelement on ppc64le
...
git-svn-id: trunk@30214 -
2015-03-14 18:36:20 +00:00
Jonas Maebe
399ffb2005
* allocate enough room in assembler routines for a complete linkage area
...
so that potential callees have enough room to store their LR etc
if needed
git-svn-id: trunk@30212 -
2015-03-14 18:36:14 +00:00
Jonas Maebe
3ab62dcfed
* switched Linux/PowerPC64 to Pascal startup code so that we can used ifdefs
...
to detect whether we're compiling for ELFv1/SYSV or ELFv2
git-svn-id: trunk@30210 -
2015-03-14 18:36:08 +00:00
Jonas Maebe
d6499b4bc0
+ rldcl., rldicl., rldcr[.] and rldicr[.] opcodes (needed for new
...
bootstrapping code)
git-svn-id: trunk@30208 -
2015-03-14 18:36:02 +00:00
Jonas Maebe
5a6b9c9f16
* store/reload toc around indirect calls for ELFv2 ABI
...
* ensure that register calls happen via R12 on the ELFv2 ABI
git-svn-id: trunk@30207 -
2015-03-14 18:35:59 +00:00
Jonas Maebe
33ed32b024
* when targeting the ELFv2 ABI, don't reserve space for the (never used)
...
words in the linkage area reserved for use by the compiler and linker
git-svn-id: trunk@30206 -
2015-03-14 18:35:56 +00:00
Jonas Maebe
3d9713b9c8
* has_single_field() now looks recursively into fields that are aggregate
...
types until it finds a non-aggregate type, and then returns "true" if
that aggregate (record or array) contains one element
* it now also returns the type of that element directly rather than a
tfieldvarsym, since we only care about the type and in case of an array
there is no field
git-svn-id: trunk@30205 -
2015-03-14 18:35:53 +00:00
Jonas Maebe
2e126bb723
- removed darwin/i386 special case code from i8086 code generator
...
git-svn-id: trunk@30204 -
2015-03-14 18:35:50 +00:00
Jonas Maebe
9788b01d31
* rewrote most of the special case handling of parameter passing on ppc64,
...
documenting the pecularities of the various calling conventions and
marking what we do and don't support currently
* also handle arrays for the ELFv2 ABI when determining whether an aggregate
only contains floating values of a single type
git-svn-id: trunk@30203 -
2015-03-14 18:35:47 +00:00
Jonas Maebe
165aaea8a4
* made a separate abi entry for powerpc_darwin, as it's not exactly the same
...
as the AIX abi (especially on ppc64)
o replaced (for now) all checks for the AIX abi with a check for either the
AIX or Darwin abi
o changed the ABI of Darwin/ppc, Darwin/ppc64 and Mac OS/ppc to
abi_powerpc_darwin
git-svn-id: trunk@30202 -
2015-03-14 18:35:44 +00:00
Jonas Maebe
25340480b0
* factored out creating a single paraloc, so we can reuse it for creating
...
function return locations
git-svn-id: trunk@30201 -
2015-03-14 18:35:41 +00:00
Jonas Maebe
f0ee1a9ee3
* pass records that (recursively) only contain floating point values of the
...
same type (even in other records or in arrays), with 8 or less such
values, as if those values were passed individually on ppc64/ELFv2
git-svn-id: trunk@30200 -
2015-03-14 18:35:38 +00:00
Jonas Maebe
9a73c9a460
* avoid string truncation for ait_symbolpair in assembler writer
...
git-svn-id: trunk@30199 -
2015-03-14 18:35:34 +00:00
Jonas Maebe
fb27dff638
* generate ".abiversion 2" directive when targeting ppc64/ELFv2
...
* generate code to load the TOC register if it's required, and
emit the the ".localentry" directive to indicate to the linker
where the actual function body starts
* support the ".localentry" directive in the ppc64 assembler reader
o disable the fpc_qword_to_double() assembler implementation for
ELFv2, because we can't manually insert the .localentry directive
before the stack allocation code
* perform indirect calls on ppc64 via R12 in ncgcal, as R12 needs to
contain the function address on entry on ppc64/ELFv2 (and it's
a volatile register, so there's no problem with always using
it)
git-svn-id: trunk@30198 -
2015-03-14 18:35:31 +00:00
Jonas Maebe
8445381929
* merged ait_set and ait_thumb_set into a single tai class
...
(tai_symbolpair)
git-svn-id: trunk@30197 -
2015-03-14 18:35:28 +00:00
Jonas Maebe
1e227f78fe
* factored out the check for whether we have to generate dotted function
...
names, and disabled them for ppc64 ELFv2
* disabling those also disables the function descriptors, so use the
_CALL_ELF compiler variable to check whether there is in fact a
function descriptor
git-svn-id: trunk@30196 -
2015-03-14 18:35:25 +00:00
Jonas Maebe
cc071ded4b
* define _CALL_ELF=1 or _CALL_ELF=2 symbol when targeting ppc(64)
...
ELFv1/ELFv2, like GCC
git-svn-id: trunk@30195 -
2015-03-14 18:35:22 +00:00
Jonas Maebe
05f6660a25
* set the correct dynamic linker for the ppc64 ELFv2 abi
...
* specify the correct linker emulation to use for ppc64 ELFv2 little endian
* specify the correct default library directories to search for ELFv2 little
endian
git-svn-id: trunk@30194 -
2015-03-14 18:35:19 +00:00
Jonas Maebe
3946971c73
* default to ppc64le/elfv2 when compiling on a ppc64le platform
...
* default to elfv2 abi when targeting ppc64le and no abi has been specified
git-svn-id: trunk@30193 -
2015-03-14 18:35:16 +00:00
Jonas Maebe
0e76a84e04
+ "ELFv2" abi identifier for ppc64
...
git-svn-id: trunk@30192 -
2015-03-14 18:35:13 +00:00
Károly Balogh
918c4add06
m68k: in do_spill_replace, exclude the case where the source register would be an address and the destination is a reference
...
git-svn-id: trunk@30191 -
2015-03-14 17:19:14 +00:00
Károly Balogh
935820293c
m68k: in tm68ktypeconvnode.int_to_real, fix the reference before using it, and if the source is a register, make sure it's a data register
...
git-svn-id: trunk@30190 -
2015-03-14 17:14:10 +00:00
Károly Balogh
1121c2e6ce
m68k: before doing a reg->ref operation, make sure the source is a datareg
...
git-svn-id: trunk@30189 -
2015-03-14 16:36:02 +00:00
Jeppe Johansen
52e505bff7
Fixed internal error in GOT related code for ARM internal assembler.
...
git-svn-id: trunk@30188 -
2015-03-14 16:03:16 +00:00
Jeppe Johansen
439027a8de
Add most pre-UAL VFP instruction forms.
...
Add fused mac instructions for VFPv4.
git-svn-id: trunk@30187 -
2015-03-14 14:59:13 +00:00
Jeppe Johansen
64f127141f
Add VFPv4 FPU type for ARM.
...
Fix assembler reader so it can read instructions longer than 5 characters.
git-svn-id: trunk@30186 -
2015-03-14 12:49:07 +00:00
Jeppe Johansen
73abf5e630
Merge from armiw branch.
...
Update ARM internal assembler to support most ARM, Thumb and Thumb-2 instructions.
Changed generation of VFP instructions to use UAL mnemonics.
Added divided and unified assembler syntax support to ARM assembly reader.
git-svn-id: trunk@30181 -
2015-03-13 19:22:27 +00:00
Jeppe Johansen
b75330760d
Merged from trunk.
...
git-svn-id: branches/laksen/armiw@30180 -
2015-03-13 18:58:57 +00:00
Jeppe Johansen
5f622752ce
Disable internal assembler
...
git-svn-id: branches/laksen/armiw@30179 -
2015-03-13 18:56:59 +00:00
Jonas Maebe
d4bc74ecc0
* support for -WM10.XX (for 10.10) and defining the correct associated
...
version macro
git-svn-id: trunk@30178 -
2015-03-13 08:35:30 +00:00
Jonas Maebe
5b3c511467
* don't crash when "return exitvalue" is used in a procedure
...
git-svn-id: trunk@30177 -
2015-03-13 08:35:26 +00:00
Jonas Maebe
2dcd42d4f1
* fixed detection of an objcprotocols descending from a forward-defined
...
objcprotocol
git-svn-id: trunk@30169 -
2015-03-12 19:37:43 +00:00
florian
f0984fb628
* abstractrecorddef.contains_float_field should search recursively, resolves #27580
...
git-svn-id: trunk@30168 -
2015-03-11 22:05:14 +00:00
pierre
b0d8f487c1
Makefile regenerated after previous commit: Fix fullinstall for win64 and disable 8086 and i386 compiler for win64 os source only for fullcycle and fullinstall
...
git-svn-id: trunk@30167 -
2015-03-11 22:03:52 +00:00
pierre
999436c5e6
Fix fullinstall for win64 and disable 8086 and i386 compiler for win64 os source only for fullcycle and fullinstall
...
git-svn-id: trunk@30166 -
2015-03-11 21:57:47 +00:00
Jonas Maebe
fc21845686
* fixed the allocation of R12 on ppc32/ppc64 when used to hold the value of
...
the stack pointer during the prolog. This was done previously in
tcg.g_proc_entry(), but that routine is called after register allocation
and hence has no influence. Also cleaned up the deallocation of that
register by moving the previously ifdef'd code to thlcgppcgen
(mantis #27634 )
git-svn-id: trunk@30164 -
2015-03-11 17:49:44 +00:00
pierre
21fe7616a4
Avoid line longer than 255 characters, to be able to edit inside FP IDE
...
git-svn-id: trunk@30158 -
2015-03-10 07:56:18 +00:00
Jonas Maebe
6a70c84258
+ internal bsr/bsf support for ppc32 and ppc64
...
git-svn-id: trunk@30152 -
2015-03-09 16:48:34 +00:00
Jeppe Johansen
3d7dce81fe
Make MRS and MSR use the right encoding on Thumb architectures.
...
Set regnumber_count_bsstart to 128 to be able to search all registers.
git-svn-id: branches/laksen/armiw@30150 -
2015-03-08 17:30:38 +00:00
Jeppe Johansen
03b9e5117f
Fix off by 1 error in assembler reader which prevented B instructions from being parsed.
...
git-svn-id: branches/laksen/armiw@30147 -
2015-03-08 12:52:43 +00:00
Jeppe Johansen
914e9e7b49
Merged from trunk
...
git-svn-id: branches/laksen/armiw@30146 -
2015-03-08 12:33:46 +00:00
Jeppe Johansen
d12b913e70
Add initial support in ARM-embedded for Allwinner A20.
...
git-svn-id: trunk@30144 -
2015-03-08 12:22:57 +00:00
Károly Balogh
0021ad714f
* fixed some ancient code behind cpu_uses_separate_address_registers define to at least compile again, for some m68k experiment
...
git-svn-id: trunk@30130 -
2015-03-07 22:11:43 +00:00
Jonas Maebe
b931f78b4b
* insert a type conversion from ordinal to pointer for pointerconstn
...
git-svn-id: branches/hlcgllvm@30129 -
2015-03-07 21:44:01 +00:00
Jonas Maebe
c1e7c9de02
* support for flushing a ttai_typedconstbuilder queue with an ordinal
...
constant at the end (in case of e.g. ordinal -> pointer type
conversions)
git-svn-id: branches/hlcgllvm@30128 -
2015-03-07 21:43:57 +00:00
Jonas Maebe
eba3f534de
* correctly handle empty ansistring constants for llvm
...
git-svn-id: branches/hlcgllvm@30127 -
2015-03-07 21:43:52 +00:00
Jonas Maebe
935c0c86aa
* write all ait_const's of value 0 as 'zeroinitializer' so they also work
...
for pointer constants
git-svn-id: branches/hlcgllvm@30126 -
2015-03-07 21:43:47 +00:00
Legolas
ffd03563d0
* Updated Wii rtl (unicode support broken .dol executables) and libogcfpc to ver.1.8.12. Fixed a dependency to Mad library too
...
git-svn-id: trunk@30125 -
2015-03-07 21:34:51 +00:00
Jonas Maebe
9c42437326
* moved tasmlisttypedconstbuilder.tc_emit_string_offset() to
...
ttai_typedconstbuilder.emit_string_offset() so it can also be used outside
the context of parsing a Pascal-level typed constant
git-svn-id: branches/hlcgllvm@30111 -
2015-03-06 19:45:04 +00:00
sergei
a709a9b637
* MIPS peephole: check that operand is present before accessing its fields, also check that it's not a branch target. Mantis #27608 .
...
git-svn-id: trunk@30110 -
2015-03-06 00:04:06 +00:00
Jonas Maebe
511e878606
* fixed pointer plus/minus integer on llvm (since a_op_* only gets a single
...
def, we have to ensure that both arguments have in fact the same type)
git-svn-id: branches/hlcgllvm@30108 -
2015-03-05 22:45:32 +00:00
Jonas Maebe
f9ae2aadac
* fixed llvm unsigned greater/lower than condition mnemoniics
...
git-svn-id: branches/hlcgllvm@30107 -
2015-03-05 22:20:50 +00:00
Jonas Maebe
ea00e559f8
* fixed compilation after previous merge
...
git-svn-id: branches/hlcgllvm@30106 -
2015-03-05 22:20:45 +00:00
Jonas Maebe
06dd396a2f
* fixed writing float values using the internal assembler after r28105
...
git-svn-id: branches/hlcgllvm@30105 -
2015-03-05 21:41:56 +00:00
Jonas Maebe
67b8aceaee
* synchronized with privatetrunk till r30095
...
git-svn-id: branches/hlcgllvm@30101 -
2015-03-05 20:32:15 +00:00
Károly Balogh
a71fcd290b
* allocate a temp addressreg instead of a temp intreg in callnode. improves code generation on m68k for these cases
...
git-svn-id: trunk@30080 -
2015-03-02 22:21:53 +00:00
Károly Balogh
106056f462
m68k: more FMOVEM.X store/load size fixes
...
git-svn-id: trunk@30062 -
2015-03-02 02:55:23 +00:00
Károly Balogh
acaf382ea0
m68k: FMOVEM.X stores/loads each reg as 12 bytes (96 bits) not 10 bytes (80 bits), see 68k PRM, page 5-86
...
git-svn-id: trunk@30061 -
2015-03-02 02:48:35 +00:00
Jonas Maebe
6dd2fe0320
* converted widestr.charlength() to use system.Utf8CodePointLen()
...
git-svn-id: trunk@30050 -
2015-03-01 17:12:27 +00:00
Károly Balogh
5f66d63335
m68k: disabled comment generation
...
git-svn-id: trunk@30045 -
2015-03-01 15:49:57 +00:00
Károly Balogh
997ec578e0
m68k: added a simple unaryminusnode which can utilize FNEG instruction for floats on 68881
...
git-svn-id: trunk@30044 -
2015-03-01 15:00:07 +00:00
Tomas Hajny
9f9ab082da
* fix typo (space instead of underscore resulting in broken help display)
...
git-svn-id: trunk@30041 -
2015-02-28 23:30:24 +00:00
Tomas Hajny
2be0cc8aae
* avoid crashes when displaying help with an unsupported system codepage
...
git-svn-id: trunk@30040 -
2015-02-28 23:15:56 +00:00
Tomas Hajny
dbbce18f56
* fix determination of help line length with codepage set to UTF-8 (the string conversion routine in widestr.pas doesn't work for UTF-8 :-((( )
...
git-svn-id: trunk@30039 -
2015-02-28 22:54:48 +00:00
florian
f0cf88533e
* applying const_align when generating structures accessed by the rtl is not a good idea because their
...
alignment must be immutable, should resolve #27525
git-svn-id: trunk@30038 -
2015-02-28 22:44:58 +00:00
florian
99635658ec
* corrects change flags for VSQRTSD
...
git-svn-id: trunk@30037 -
2015-02-28 22:42:25 +00:00
Jonas Maebe
dd2aa17de1
* also allow 64 bit platforms have have a 32x32->64 bit multiplication to
...
take advantage of this transormation (enables this optimization for
AArch64)
git-svn-id: trunk@30035 -
2015-02-28 22:31:06 +00:00
Jonas Maebe
b821e31442
* force constants into a registers in the 32x32->64 optimized case
...
git-svn-id: trunk@30034 -
2015-02-28 22:31:03 +00:00
Jonas Maebe
86bde57b0f
* do not switch around node subtrees if they have different resultdefs, e.g.
...
because a subtree has been optimized for a 32x32->64 multiplication (so
some subtrees have a 32 bit resultdef and others a 64 bit resultdef)
git-svn-id: trunk@30033 -
2015-02-28 22:31:00 +00:00
Jonas Maebe
ada5060a34
* set pi_do_call for AArch64 mod/div nodes, as they call FPC_DIVBYZERO
...
git-svn-id: trunk@30032 -
2015-02-28 22:30:57 +00:00
Jonas Maebe
33b1732ca2
* avoid unnecessary sign/zero-extensions in genlinearlist() when generating
...
code on a platform that doesn't have subregisters of the same size as
the "case" value
git-svn-id: trunk@30031 -
2015-02-28 16:46:54 +00:00
Jonas Maebe
b2427d04ed
* ensure that data pools are not inserted right after add/tbb/tbh-based
...
jumptable dispatches
git-svn-id: trunk@30027 -
2015-02-27 20:52:12 +00:00
Tomas Hajny
1ecf8dcfa1
* improved paging of help pages so that lines are not missed with 80x25 windows due to lines overflowing the window width
...
git-svn-id: trunk@30026 -
2015-02-27 19:26:23 +00:00
Károly Balogh
7940806fc2
fixed ifneq vs. ifndef
...
git-svn-id: trunk@30023 -
2015-02-27 11:33:38 +00:00
Jonas Maebe
37c2d0e60d
* use Object_getClass(obj) instead of obj._class to get the class of an
...
Objective-C instance on AArch64, as the latter helper from the runtime
is a plain function call rather than an expensive message dispatch,
and moreover it also works for protocols (the "class" method is part
of NSObject, and protocols do not support it since there is no single
root class and hence they may represent an instance of a class that
does not derive from NSObject)
o also call it to get the "self" pointer when calling class methods for
protocols on AArch64 (fixes tobjc22a and tobjc22b on Darwin/AArch64)
o also call it to get the metaclass of a class on Darwin/AArch64 (fixes
tobjc25)
- removed special handling of getting the Objective-C (meta)class for
non-type nodes on other Darwin platforms, as this is also correctly
handled by the generic pass_generate_code
git-svn-id: trunk@30018 -
2015-02-26 21:49:08 +00:00
florian
b7422716b2
* turn off compiler and utils building for nds
...
* use NoNativeBinaries to detect if a native compiler shall be build
git-svn-id: trunk@30017 -
2015-02-26 20:03:29 +00:00
Károly Balogh
56eeabd01b
fixed a warning with DFA
...
git-svn-id: trunk@30015 -
2015-02-26 09:36:03 +00:00
sergei
657ac78304
* Improved handling of registers used in assembler blocks. Assembler nodes no longer have lists of used registers attached to them. Instead, each specified register creates an allocation/deallocation pair and an additional tai_regalloc.markused item directly in the asmlist. This way, register lists are no longer limited to integer registers, and parsing no longer depends on paramanager to know which registers are volatile.
...
If assembler block has no modified register list, it is still handled in pass2, by allocating all volatile registers (not only the integer ones as before).
git-svn-id: trunk@30011 -
2015-02-25 21:53:15 +00:00
sergei
31fddaafe8
+ New subtype of tai_regalloc, "ra_markused". It marks a physical register as used in procedure, triggering saving/restoring that register if it is non-volatile.
...
git-svn-id: trunk@30010 -
2015-02-25 21:38:23 +00:00
florian
91db2a1698
+ report when compilation of a unit is stopped because it has been already compiled during the recursive search in uses clauses
...
git-svn-id: trunk@30001 -
2015-02-24 21:46:09 +00:00
florian
0a17a08b28
- remove accidently committed (commented though) debug statement
...
git-svn-id: trunk@30000 -
2015-02-24 20:58:49 +00:00
pierre
da55d9ded2
Also disable overflow where range check is disabled in aasmcpu unit
...
git-svn-id: trunk@29989 -
2015-02-24 15:58:49 +00:00
marco
422df4bc77
* fixed typo removing ppca64, mantis 27533
...
git-svn-id: trunk@29988 -
2015-02-24 09:35:27 +00:00
Jonas Maebe
879afbb7be
* removed -Oodfa warnings
...
git-svn-id: trunk@29986 -
2015-02-23 22:57:24 +00:00
Jonas Maebe
c41759a026
- removed a lot of unused copied internal assembler code
...
git-svn-id: trunk@29985 -
2015-02-23 22:57:21 +00:00
Jonas Maebe
2ab7f5c35d
* moved x86-specific requirements from the generic bsr/bsf code to the
...
x86 code generator (register size constraints)
git-svn-id: trunk@29984 -
2015-02-23 22:57:18 +00:00
Jonas Maebe
3b5adcb3de
+ print iphonesim/x86_86-specific command line options in the help
...
git-svn-id: trunk@29982 -
2015-02-23 22:57:12 +00:00
Jonas Maebe
dcb6f2baae
+ print Darwin/AArch64-specific command line options in the help
...
git-svn-id: trunk@29981 -
2015-02-23 22:57:09 +00:00
Jonas Maebe
5e339e89e4
* source can also be a LOC_CREGISTER for bsr/bsf
...
git-svn-id: trunk@29980 -
2015-02-23 22:57:05 +00:00
Jonas Maebe
a8d05b66e2
+ AArch64 internal bsf/bsr support
...
git-svn-id: trunk@29979 -
2015-02-23 22:57:02 +00:00
Jonas Maebe
b40a4d1b5a
+ support for "xor mmreg,mmreg" for initialising global floating point
...
regvars
git-svn-id: trunk@29978 -
2015-02-23 22:56:59 +00:00
Jonas Maebe
0a0e74342f
* AArch64 doesn't need the software int64 to double code
...
git-svn-id: trunk@29976 -
2015-02-23 22:56:53 +00:00
Jonas Maebe
b7fb862f4a
* enable internal handling of abs(int64) on AArch64
...
git-svn-id: trunk@29975 -
2015-02-23 22:56:50 +00:00
Jonas Maebe
fa328436ab
* regenerated for iphonesim/x86-64
...
git-svn-id: trunk@29974 -
2015-02-23 22:56:41 +00:00