Commit Graph

10873 Commits

Author SHA1 Message Date
Jonas Maebe
53e52ac6a9 * implementation of 32x32->64 multiplication for i386 based on patch
by Sergei Gorelkin

git-svn-id: trunk@12028 -
2008-11-06 21:03:10 +00:00
peter
84112032c3 * rename aktobjectdef to current_objectdef
git-svn-id: trunk@12027 -
2008-11-06 19:46:31 +00:00
Jonas Maebe
e5920bc2b8 * delay verbosity changes just like localswitches changes
* store a node's verbosity in the node so that e.g. disabling warnings
    also disables warnings for this node in pass_1
   (the above together fix mantis #12076)
  * save/restore verbosity with {$push}/{$pop} (mantis #12075)
  * if warnings/notes/hints are turned off, also do not count encountered
    ones for the totals (otherwise -Sew cannot be used properly in
    combination with {$warnings off}, because disabled warnings will still
    trigger a compiler error) -- this required adding -vw/-vn/-vh to all
    tests using -Sew/-Sen/-Seh
  - removed some superfluous state saving/restoring from firstpass()

git-svn-id: trunk@12025 -
2008-11-03 21:18:27 +00:00
Jonas Maebe
7626a91592 * disabled last safecall code for non-windows (mantis #12237)
git-svn-id: trunk@12021 -
2008-11-02 15:13:20 +00:00
Jonas Maebe
7f8e9b8d35 * fixed node complexity calculation for certain inlinenodes
(mantis 12404)

git-svn-id: trunk@12020 -
2008-11-02 14:50:17 +00:00
florian
937067e367 + check if forward definitions and real definitions have the same type, resolves #11970
git-svn-id: trunk@12017 -
2008-11-02 12:36:31 +00:00
florian
a47a107cb2 * newline changes
git-svn-id: trunk@12016 -
2008-11-02 09:42:49 +00:00
Jonas Maebe
a23630260b + "weakexternal" support for imported procedures and variables.
the syntax is exactly the same as for "external", except for
    the keyword. It is currently only active for Darwin targets.
    It should also work at least for Linux targets, but only with
    the GNU assembler (which is why it is not activated there)
  + test for this functionality

git-svn-id: trunk@12009 -
2008-11-01 18:38:32 +00:00
Jonas Maebe
eb130d7501 * fixed invalid type cast in case of errors in a library's export section
git-svn-id: trunk@12008 -
2008-11-01 17:08:26 +00:00
peter
466f0c0064 * fixed crash in error message when specialization is not resolved
git-svn-id: trunk@11991 -
2008-10-28 16:31:55 +00:00
marco
e5db5e4aa8 * regened makefiles to propagate makefile versions
git-svn-id: trunk@11947 -
2008-10-22 17:32:15 +00:00
marco
3591d54f24 * updated all makefile.fpc versions to 2.2.2 for fppkg compat.
git-svn-id: trunk@11945 -
2008-10-22 17:19:13 +00:00
Jonas Maebe
19f8aede99 + some missing docompare() overrides
git-svn-id: trunk@11937 -
2008-10-19 16:50:43 +00:00
florian
3f03b4fb80 + propagate FPC_ARMEL if FPC_OARM isn't defined
git-svn-id: trunk@11917 -
2008-10-18 14:08:18 +00:00
florian
24fe46b3a3 + missing includes of fpcdefs.inc added
git-svn-id: trunk@11916 -
2008-10-18 14:07:42 +00:00
florian
04fe88f134 * handle 64 bit parameters correctly for arm eabi
git-svn-id: trunk@11913 -
2008-10-18 13:48:57 +00:00
marco
cbbf7f4cfe * fixed a bunch of structural errors and missing escapes to get the docs building again.
git-svn-id: trunk@11910 -
2008-10-18 12:16:00 +00:00
florian
cb9e52826f * fix range check error in options handling, resolves #12365
+ better error output (print filename and line number) for config file directive errors

git-svn-id: trunk@11898 -
2008-10-14 17:06:55 +00:00
Jonas Maebe
64ddae4eff + -vq parameter to show message numbers
+ -vm<x>,<y> parameter to mask messages <x> and <y>
   (both based on a patch submitted by Petr Kristan)
  * alphabetically ordered -v<x> option processing code so it's easier
    to see which characters are still free (not many anymore)
  + some tests for the -vm functionality

git-svn-id: trunk@11888 -
2008-10-12 12:19:41 +00:00
Jonas Maebe
c0ccf21c28 * fixed range check error when writing const pointers > high(longint)
git-svn-id: trunk@11879 -
2008-10-11 13:39:27 +00:00
Jonas Maebe
79850c5027 * don't crash when someone uses an integer value to declare a wide/unicode
string (mantis #12329)

git-svn-id: trunk@11875 -
2008-10-10 15:01:56 +00:00
Jonas Maebe
8adde04a0b * don't warn that a unit won't be smartlinked in case no .a file is
available when smart linking happens using the plain object files
    (mantis #12316)

git-svn-id: trunk@11874 -
2008-10-10 14:11:00 +00:00
Károly Balogh
d41cb0c251 * another attempt to properly fix the fix for 8391
git-svn-id: trunk@11873 -
2008-10-10 07:10:21 +00:00
Károly Balogh
049280bc21 * fix bug #8391 only for arm-wince, because otherwise it breaks other platforms (incl. i386-win32)
git-svn-id: trunk@11871 -
2008-10-09 18:37:56 +00:00
michael
b40d826439 * Fixed bug #12323. Bug is in getting default value of string parameters, unterminated memory copy
git-svn-id: trunk@11870 -
2008-10-09 09:55:21 +00:00
Károly Balogh
7ce0dd43ab + re-enable smartlinking for MorphOS
git-svn-id: trunk@11868 -
2008-10-07 20:04:37 +00:00
Jonas Maebe
4d58c33fb0 * fixed int64 to boolean conversion for loc_(c)reference based on ppc code
git-svn-id: trunk@11866 -
2008-10-07 15:36:05 +00:00
florian
7a4f76f262 + VFP instructions for arm
git-svn-id: trunk@11863 -
2008-10-04 19:25:34 +00:00
Jonas Maebe
5347e536c2 + support for generating non-pic darwin/arm call stubs
+ write the header for non-pic darwin/arm call stubs properly in aggas
  * r9 is not available for general use on darwin/arm according to the llvm
    code generator

git-svn-id: trunk@11862 -
2008-10-04 14:07:52 +00:00
Jonas Maebe
253ae0c33e * changed abi for darwin/arm from eabi to default, as it appears to be
more closely related to the old abi
  * make sure softfloat is still default for darwin/arm after this change

git-svn-id: trunk@11861 -
2008-10-04 14:06:09 +00:00
Jonas Maebe
479d5c7aa3 * forgot inherited call in previous commit for non-darwin
git-svn-id: trunk@11855 -
2008-10-02 21:53:45 +00:00
Jonas Maebe
5f39783ec6 * moved adding of '-mfpu=softvfp' for arm/softfloat to overridden
method in TArmGNUAssembler, because it's cleaner (no ifdef) and it
    mustn't be added for darwin (which uses TArmAppleGNUAssembler)

git-svn-id: trunk@11854 -
2008-10-02 21:52:47 +00:00
Jonas Maebe
3aa600e569 + darwin/arm assembler writer
git-svn-id: trunk@11853 -
2008-10-02 21:33:16 +00:00
Jonas Maebe
d4c2f52090 * disabled pic default for arm/darwin (pic isn't supported yet for arm)
git-svn-id: trunk@11852 -
2008-10-02 21:32:53 +00:00
Jonas Maebe
afa14de20d + some generic changes preparing for darwin/arm support
git-svn-id: trunk@11849 -
2008-10-02 15:10:13 +00:00
Jonas Maebe
23a219ae59 * improved firstcomplex() in case one of the two nodes does not need any
floating point registers, or in case they both need just as many

git-svn-id: trunk@11840 -
2008-09-29 14:37:17 +00:00
florian
57f3e2f40a * forbid access to properties in class methods
* readability fix

git-svn-id: trunk@11838 -
2008-09-28 20:16:13 +00:00
florian
8c9baed5cb * force static; being repeated in the procedure body, this avoids trouble as in #12242
+ add static when using fullprocname

git-svn-id: trunk@11835 -
2008-09-28 18:45:37 +00:00
florian
013dc5e379 * fix wince building after unicodestring changes
git-svn-id: trunk@11828 -
2008-09-27 12:05:35 +00:00
florian
9d087f40fa * when cross compiling, fallback to fpc when no cross compiler is found
git-svn-id: trunk@11827 -
2008-09-27 10:06:56 +00:00
florian
db196d76c2 + strength reduction for array accesses inside for loops
* export get_mul_size so we can use it for strength reduction
* ensure loop counter is marked as being written
* typos fixed

git-svn-id: trunk@11825 -
2008-09-26 18:23:31 +00:00
micha
66a940afad * fix armeb compiler cleaning
git-svn-id: trunk@11816 -
2008-09-21 21:02:51 +00:00
Jonas Maebe
9bb0db1a6a * fixed range check error
git-svn-id: trunk@11813 -
2008-09-21 18:52:13 +00:00
florian
0a8f621a6b * don't waste a register for inc/dec(<pointer>,const);
git-svn-id: trunk@11812 -
2008-09-21 17:42:53 +00:00
florian
69159eb9f3 + support for & and % in char constants, resolves #12186
git-svn-id: trunk@11809 -
2008-09-20 19:51:29 +00:00
florian
8d01c330a1 * ttemprefnode -> ctemprefnode
git-svn-id: trunk@11807 -
2008-09-18 21:39:38 +00:00
florian
17d3da7266 * variables where the address is taken could have aliases so they aren't invariant
git-svn-id: trunk@11806 -
2008-09-18 19:08:57 +00:00
florian
0b5951fa14 + first full implementation of induction variable strength reduction
git-svn-id: trunk@11805 -
2008-09-18 18:49:09 +00:00
florian
61dbf89bdb * set successor properly for for-nodes
+ CalcDefSum

git-svn-id: trunk@11804 -
2008-09-18 18:33:43 +00:00
florian
ecd05a1043 + framework for strength reduction of induction variables
+ constant multiplications can be eliminated testwise

git-svn-id: trunk@11803 -
2008-09-18 16:53:36 +00:00