Commit Graph

25972 Commits

Author SHA1 Message Date
florian
631187d30d + some delphi compatibility stuff added
git-svn-id: trunk@7652 -
2007-06-13 20:44:24 +00:00
micha
2bcbebc438 * theapthread test: put the sleep in the right place to increase odds of freeing after other thread exit
git-svn-id: trunk@7651 -
2007-06-13 20:33:32 +00:00
micha
b667ea06ba * extend theapthread test to explicitly test freeing of block after owned-by thread exits
git-svn-id: trunk@7650 -
2007-06-13 20:29:08 +00:00
micha
c226f6fd44 * heap manager: handle freeing of block owned by exited thread
* heap trace: ditto

git-svn-id: trunk@7649 -
2007-06-13 20:27:42 +00:00
florian
c7037df254 + classrefdef is assignment compatible to pointers in delphi mode
git-svn-id: trunk@7648 -
2007-06-13 20:21:33 +00:00
daniel
563b325382 - Remove another test for u64bit now unnecessary.
git-svn-id: trunk@7647 -
2007-06-13 14:04:21 +00:00
Jonas Maebe
ceaaa0e552 * fixed writing of widestrings
git-svn-id: trunk@7645 -
2007-06-13 13:00:25 +00:00
Jonas Maebe
8523bdc831 * force utf-8 for darwin
git-svn-id: trunk@7644 -
2007-06-13 12:59:39 +00:00
joost
4d9c3244fe * If a variant contains a datetime value and is converted to a string, it should return a string in a date/time format. (+test)
git-svn-id: trunk@7643 -
2007-06-13 12:24:16 +00:00
daniel
573aa1cd34 * Make powerpc compile again.
git-svn-id: trunk@7642 -
2007-06-13 11:05:15 +00:00
daniel
4703ae318b * Change a loop counter from aint to integer; the "to" part of the loop
is of type integer. Fixes compiling ppcx64 with ppc386.

git-svn-id: trunk@7641 -
2007-06-13 08:02:21 +00:00
daniel
dc0d88b076 + Forgot to add constexp unit.
git-svn-id: trunk@7640 -
2007-06-13 07:44:14 +00:00
daniel
9adb202a92 * Rework the constexprint to allow operations from low(int64) to high(qword).
+ Some initial work on a formaldef which also carries the typinfo of a parameter.

git-svn-id: trunk@7639 -
2007-06-13 07:41:18 +00:00
daniel
02732bfb55 * Fix tests for constexprint rework.
git-svn-id: trunk@7638 -
2007-06-13 07:30:09 +00:00
daniel
b15740c0e5 - Remove -Mgpc from command line options.
git-svn-id: trunk@7637 -
2007-06-13 06:13:51 +00:00
daniel
a0d601cfe7 * 12345678901234567890>high(int64), therefore int64var=12345678901234567890 always
evaluates to false. Remove 1 digit to get the value below high(int64).

git-svn-id: trunk@7636 -
2007-06-12 22:20:24 +00:00
florian
54fc70395e * experimental patch to fix #9059 and friends in case -Oodfa is used
git-svn-id: trunk@7635 -
2007-06-12 09:58:31 +00:00
Jonas Maebe
a087bb50d0 * fixed stabs debug info for bitpacked records
git-svn-id: trunk@7634 -
2007-06-12 09:32:02 +00:00
Jonas Maebe
af97f3350b * fixed bitsize of qwords in bitpacked records (mantis #9054)
git-svn-id: trunk@7632 -
2007-06-11 09:11:42 +00:00
Jonas Maebe
8d13899d84 * fixed memory leak in conversion of realconstn to currency
git-svn-id: trunk@7630 -
2007-06-10 22:02:53 +00:00
Jonas Maebe
9b198fb1d7 * fixed memory leak in debug info generation for bitpacked records
git-svn-id: trunk@7629 -
2007-06-10 22:02:11 +00:00
marco
ebea7ac320 * fix for 9029
git-svn-id: trunk@7627 -
2007-06-10 18:23:32 +00:00
florian
c7100799ed + forbid usage of $E on targets supporting no fpu emulation
- disabled -Cfsoft on i386

git-svn-id: trunk@7625 -
2007-06-10 17:03:26 +00:00
yury
eac1c293e4 * fixed "EInOutError : File not found" exception if .rc file not found.
git-svn-id: trunk@7624 -
2007-06-10 13:04:56 +00:00
Jonas Maebe
b998cb1208 * changed so it still fails now that you can take the address of some
fields of bitpacked records

git-svn-id: trunk@7621 -
2007-06-10 11:55:05 +00:00
Jonas Maebe
172f85c8c3 * fixed important typo in better comments :)
git-svn-id: trunk@7618 -
2007-06-09 20:37:26 +00:00
Jonas Maebe
e93d612f4a * fixed FFreeOnTerminate handing in destructor + better comments
git-svn-id: trunk@7617 -
2007-06-09 20:36:35 +00:00
Jonas Maebe
51ebaa592f * fixed tests/webtbf/tb0041 broken by r7603: check whether ordinals
are compatible before optimizing the checks away

git-svn-id: trunk@7616 -
2007-06-09 20:17:46 +00:00
Jonas Maebe
c77d74127b * fixed some record size checks
(some are still broken, but can't be fixed currently because
    def.size/sym.getsize return an aint, which means low(aint)
    in case of structures with a size = high(aint)+1)

git-svn-id: trunk@7614 -
2007-06-09 19:48:14 +00:00
florian
0e96eda236 + some sse4 instructions supported, resolves #9046
git-svn-id: trunk@7613 -
2007-06-09 19:45:06 +00:00
florian
fe69d19f9c * align stack properly if no stack frame is generated, should resolve #8986
git-svn-id: trunk@7611 -
2007-06-09 18:46:35 +00:00
Jonas Maebe
10341eabaa * don't allow taking the address of ordinal bitpacked array elements
whose size is not a power of two
  + some more packed array/record tests

git-svn-id: trunk@7610 -
2007-06-09 18:13:04 +00:00
Jonas Maebe
2af8ca7a19 * allow taking the address of fields of packed records iff
* their offset is a multiple of 8 bits; and
   * their size is a multiple of 8 bits; and
   * if it's a range type, the size is also a power of 2

git-svn-id: trunk@7609 -
2007-06-09 17:52:20 +00:00
Jonas Maebe
22c1d5915e * enable break and continue in macpas mode (mantis #9032)
git-svn-id: trunk@7608 -
2007-06-09 17:23:11 +00:00
Jonas Maebe
20b99dade3 - reverted r7600, see additional comments in mantis #9027
git-svn-id: trunk@7606 -
2007-06-09 17:14:28 +00:00
Jonas Maebe
044e616bea * added packrecords statement so the test compiles on all systems regardless
of the default packrecords value

git-svn-id: trunk@7605 -
2007-06-09 17:05:35 +00:00
marco
b846f2596e * Fix for 9220 for socket2text stuff too
git-svn-id: trunk@7604 -
2007-06-09 14:24:13 +00:00
daniel
60dee7fcf0 + New optimization: Comparisions with evaluate to true or false if the
constant is outside the range of type bounds of the left expression.
    I.e. "if a>0" evaluates to true if a is declared with type 1..10,
    as all legal values of a are greater than zero.

git-svn-id: trunk@7603 -
2007-06-09 14:03:56 +00:00
marco
8bae130fcb * fix for bug #9022 (merge)
git-svn-id: trunk@7602 -
2007-06-09 13:12:16 +00:00
daniel
bce3ea4373 + Added types UnsignedByte,UnsignedWord,UnsignedLong, suggestion by
Adriaan van Os, (Mantis #9030)

git-svn-id: trunk@7601 -
2007-06-09 07:37:03 +00:00
Jonas Maebe
5a8679131f + support for new/dispose with extra size parameter in macpas mode
(mantis #9027)

git-svn-id: trunk@7600 -
2007-06-08 18:02:31 +00:00
Jonas Maebe
de75b34dba * fixed another IE with indexing bitpacked arrays of composite types,
this time with constant rather than variable indices

git-svn-id: trunk@7599 -
2007-06-08 13:53:01 +00:00
Jonas Maebe
445d116b78 * added missing {$mode macpas}
git-svn-id: trunk@7598 -
2007-06-08 13:44:57 +00:00
Jonas Maebe
5b24374cc2 * workaround for a bug in the assembler, linker or gdb on Mac OS X whereby
files with debuginfo but without any code could mess up the symbol
    tables used/built by gdb, resulting in various problems when debugging.
    The same workaround is used in gcc by Apple (mantis #9011)

git-svn-id: trunk@7597 -
2007-06-08 12:29:30 +00:00
Jonas Maebe
65e35ac401 * fixed internal error with bitpacked arrays of composite types whose
size is not a power of two

git-svn-id: trunk@7596 -
2007-06-08 09:11:08 +00:00
michael
1ba2224a3e * Russian translation by Maxim Ganetsky
git-svn-id: trunk@7595 -
2007-06-08 07:36:02 +00:00
daniel
616fc0afcc * Adjust indent.
git-svn-id: trunk@7591 -
2007-06-06 20:10:35 +00:00
daniel
fe5118e903 * Reduce false positives of type_h_use_div_for_int.
git-svn-id: trunk@7590 -
2007-06-06 19:50:04 +00:00
Jonas Maebe
4dd3be0e5a * return thread function result via pthread_exit() from CBeginThread
(Vinzent Hoefler)
  * simplified CWaitForThreadTerminate based on comments from Vinzent
    Hoefler
  * fixed resource leaks where in some cases a pthread would not be
    reaped based on comments from Vinzent Hoefler (resolves #9016)

git-svn-id: trunk@7588 -
2007-06-06 15:18:48 +00:00
florian
af352cda24 Merged revisions 7586 via svnmerge from
http://svn.freepascal.org/svn/fpc/branches/ssa/compiler

........
  r7586 | florian | 2007-06-05 20:19:26 +0200 (Di, 05 Jun 2007) | 1 line
  
  * updates from Karl-Michael Schindler
........

git-svn-id: trunk@7587 -
2007-06-05 18:22:54 +00:00