Commit Graph

37230 Commits

Author SHA1 Message Date
marco
d8101679fa * chunk protected instead of private, Mantis #20543
git-svn-id: trunk@20969 -
2012-04-21 22:52:58 +00:00
marco
9f6121e878 * assembler wouldn't include always anymore ->changed i386 to cpui386.
Changed assembler SELF reference from ESI to EAX. (probably now hidden param instead of fixed register ESI)
    Alternative solution for Mantis #21242

git-svn-id: trunk@20968 -
2012-04-21 21:32:27 +00:00
Jonas Maebe
5dac788b71 * use tabstractrecordsymtable.has_single_field() to determine whether a
record has only a single field (and if so, which one) when checking
    whether we have to treat the record as if it was actually its first
    field that's passed as a parameter (fixes problems with records
    with methods, e.g. crash while compiling tests/test/trhlp35)

git-svn-id: trunk@20967 -
2012-04-21 20:18:08 +00:00
Jonas Maebe
d7247c9bd9 * prevent duplicate symbol errors when compiling code with debug info
on AIX due to the extra inserted local symbols (although in case e.g
   multiple procedures contain a typed constant with the same name, only
   one can be accessible)
  * removed '.' suffix of local symbols inserted for debug info of typed
    constants for AIX (gdb couldn't find those symbols; it seems the
    address calculated by gdb for typed constants is still not correct
    though)

git-svn-id: trunk@20966 -
2012-04-21 20:18:03 +00:00
Jonas Maebe
35b80a4229 * enable assembling via pipe for the AIX assembler
git-svn-id: trunk@20965 -
2012-04-21 20:17:58 +00:00
Jonas Maebe
ec77b0f3ca * fixed writing the alignment for datablocks on darwin/aix based on
the last section's alignment (lastalignment is log2(alignment) there,
    and writesection again takes log2() of its parameter)

git-svn-id: trunk@20964 -
2012-04-21 20:17:53 +00:00
Jonas Maebe
3380b58695 * when we get near the limit of the maximum number of TOC entries that can
be generated for a single object file on AIX, automatically switch to
    an indirection scheme that uses much less TOC entries, but is slower to
    access global variables
  * manually merged infrastructure for target-specific code generation
    switches from JVM branch (-CTxxx switches)
  * -CTsmalltoc switch for AIX that forces the indirection scheme for TOC
    entries from the start in case the automatic one does not conserve
    a sufficient amount (or in case you bump up against the global TOC
    entries limit during linking)

git-svn-id: trunk@20963 -
2012-04-21 20:17:46 +00:00
Jonas Maebe
a473cf14d6 - removed ppc64-specific a_load_ref_cgpara(), the generic one can also
handle of its special cases nowadays

git-svn-id: trunk@20962 -
2012-04-21 20:17:40 +00:00
Jonas Maebe
b512744bfb * don't overwrite the reg to load in a parameter in tcg.a_load_reg_cgpara()
if the value has to be shifted first (it could be a regvar)
  * also take the cgpara's shiftval into account when loading a constant

git-svn-id: trunk@20961 -
2012-04-21 20:17:35 +00:00
Jonas Maebe
5f3db3c1ba * if we assign something to a record field whose type is not regable by
itself (e.g. a 3-byte record as field insde a 4 byte record), make
    the parent record non-regable either. The reason is that the parent
    record will be forced to memory in that case when subscripting, and
    the assignment will happen to this temporary memory location.
    Fixes tests/test/tw15357.pp on ppc64 when compiled with -O2 and
    without -Cg (not sure why enabling PIC disables global regvars)

git-svn-id: trunk@20959 -
2012-04-21 18:38:31 +00:00
Jonas Maebe
98609d4c3e * also create a realconstn for default(currency) on platforms where the
currency type is implemented via int64 (fixes tests/test/tdefault1 on
    platforms without an x87)

git-svn-id: trunk@20958 -
2012-04-21 18:38:27 +00:00
florian
4934a42389 * avoid assembler warning about missing eol at eof
git-svn-id: trunk@20957 -
2012-04-21 18:23:18 +00:00
florian
d681ad612b + several redirection include files for mipsel/mipsel-linux
git-svn-id: trunk@20956 -
2012-04-21 18:21:09 +00:00
florian
c7974fe119 * mipsel-linux uses also a dollar sign as separator in assembler names
git-svn-id: trunk@20955 -
2012-04-21 18:19:38 +00:00
florian
5bf1354eca * lazarus project file updates
git-svn-id: trunk@20954 -
2012-04-21 18:18:23 +00:00
Jonas Maebe
b0f32fc5c2 * since we don't check interfaces yet during whole program optimization,
assume that all virtual methods that can be called via interfaces that
    appear in the program are in fact called (fixes WPO when applied to
    MSEIDE)

git-svn-id: trunk@20952 -
2012-04-21 11:00:56 +00:00
Jonas Maebe
5c6c5699a9 * cs_wpo_optimize_vmts also needs all unit info
git-svn-id: trunk@20951 -
2012-04-21 10:59:21 +00:00
Jonas Maebe
a8087498fa * tell GNU nm not to print undefined symbols, because
a) we don't care about them
     b) for 32 bit binaries on 64 bit platforms, they are indented differently
        than defined symbols
    (fixes -OWsymbolliveness for 32 bit binaries on 64 bit Linux platforms)

git-svn-id: trunk@20950 -
2012-04-21 10:58:42 +00:00
sergei
12a4e1a37d * xmlwrite.pp, continuing with streaming API:
* Factored WriteStartElement, WriteEndElement and WriteXmlDecl into separate procedures
  * Handle element names independent from DOM.

git-svn-id: trunk@20949 -
2012-04-21 01:16:48 +00:00
pierre
84cd32a593 * Add more explicit sizes for array types
git-svn-id: trunk@20948 -
2012-04-20 22:22:29 +00:00
Jonas Maebe
8c27e280e9 * pocall_mwpascal is the same as cdecl/cppdecl -> handle it the same for
varargs

git-svn-id: trunk@20947 -
2012-04-20 21:23:01 +00:00
florian
532102d3fa * use correct result registers for in64 results on armbe, resolves #21731
git-svn-id: trunk@20945 -
2012-04-20 18:07:06 +00:00
marco
e76a0c1d46 * Allow setting autoinc fields in dsFilter,dsSetKey,dsInsert. Mantis #17624, patch by Lacak2.
git-svn-id: trunk@20943 -
2012-04-20 15:01:34 +00:00
joost
c820c4e586 * Better fix for r20940 based on patch from Marcelo B Paula, bug #17813
git-svn-id: trunk@20941 -
2012-04-20 14:02:41 +00:00
joost
c16b79c1a6 Improved working with stand-alone TBufDataset:
* Added tests
 * Raise exception when trying to refresh data when there are updates
 * CreateDataset now also creates a dataset based on the fields when there
   are no fielddefs available.

git-svn-id: trunk@20940 -
2012-04-20 13:45:41 +00:00
joost
3568f8a3fe * Also recognize parameters wich starts with lowercase old
git-svn-id: trunk@20939 -
2012-04-20 13:38:58 +00:00
pierre
34bc5ea624 * Use localalignmax in calc_stackframe_size method
git-svn-id: trunk@20938 -
2012-04-20 12:13:52 +00:00
pierre
f0afaef920 Use linux/i386 aligmnents for NetBSD/OpenBSD i386
git-svn-id: trunk@20937 -
2012-04-20 12:09:41 +00:00
florian
2677187b2f * inline several math methods (though a lot won't be inlined yet because they take open array parameters), resolves #21040
* more compact formatting (removed empty lines)
* remove call to invalid argument in arctanh, arccosh doesn't have it either

git-svn-id: trunk@20936 -
2012-04-19 21:14:09 +00:00
pierre
f4b437288e Added errors 127 to 133 for Sparc
git-svn-id: trunk@20935 -
2012-04-19 15:04:22 +00:00
pierre
8c047abb43 + New script to check constant entries against system headers
git-svn-id: trunk@20934 -
2012-04-19 14:56:32 +00:00
pierre
3f24548e58 + New script to check errnostr.inc entries
git-svn-id: trunk@20933 -
2012-04-19 14:55:57 +00:00
pierre
0309511353 Add clean option, do not create executable (unneeded)
git-svn-id: trunk@20932 -
2012-04-19 14:52:47 +00:00
pierre
3b858a6ab2 messages checked
git-svn-id: trunk@20931 -
2012-04-19 14:51:43 +00:00
pierre
196dfdd29a Changed sem_t to pointer to a anonymous struct as in system header and fixed wrong constant values
git-svn-id: trunk@20930 -
2012-04-19 12:52:28 +00:00
pierre
16896f42dd Change SIGIOT to alias of SIGABRT (value does not change)
git-svn-id: trunk@20929 -
2012-04-19 12:37:23 +00:00
pierre
5ad7cf9034 * corrected to be closer to /usr/include/sys/syscall.h header
* Note: sigaltstack syscall number is modified by this patch
   no other interface change should be moticable.

git-svn-id: trunk@20928 -
2012-04-19 08:33:18 +00:00
paul
d5bc501d89 tests: fix test for new variant overload preferences
git-svn-id: trunk@20927 -
2012-04-19 08:31:05 +00:00
pierre
9106753b8a Improve check_sys.sh script
git-svn-id: trunk@20926 -
2012-04-19 07:18:13 +00:00
paul
19d1cf9470 rtl: reduce amount of warnings regards implicit string conversions + little formatting
git-svn-id: trunk@20925 -
2012-04-19 01:33:47 +00:00
sergei
901eb84b3d * xmlwrite.pp, started implementing the streaming API.
git-svn-id: trunk@20924 -
2012-04-19 00:21:55 +00:00
pierre
3d17ae49af Corrected NetBSD system errors
git-svn-id: trunk@20923 -
2012-04-18 16:04:01 +00:00
pierre
94c8a75efd syscall 280 is __NR_tee for sparc CPU
git-svn-id: trunk@20922 -
2012-04-18 15:54:34 +00:00
pierre
1592f98a69 Avoid inappropriate file name expansion
git-svn-id: trunk@20921 -
2012-04-18 15:43:47 +00:00
pierre
80838aa2dd EDEADLOCK is same as EDEADLK, error number 58 does not exist in Linux
git-svn-id: trunk@20920 -
2012-04-18 15:39:12 +00:00
marco
86ec9c367c * Patch from Lacak2 for #16842. Fix parsing of FROM (mysql show..from)
git-svn-id: trunk@20919 -
2012-04-18 13:31:35 +00:00
pierre
6568de7e0f Avoid \t which is not supported properly on NetBSD and accept negative values
git-svn-id: trunk@20918 -
2012-04-18 10:50:16 +00:00
marco
304db43604 * Patch from Lacak2 (Mantis #14519) that fixes "Check Table" having a
resultset (folding it onto select)

git-svn-id: trunk@20917 -
2012-04-18 10:45:21 +00:00
pierre
c4288ea2c0 * Fix missing echo command
git-svn-id: trunk@20916 -
2012-04-18 10:35:47 +00:00
pierre
8e25bedde3 Use separate sparc include and add missing error numbers
git-svn-id: trunk@20915 -
2012-04-18 10:32:32 +00:00