Commit Graph

33831 Commits

Author SHA1 Message Date
florian
1cc956afc8 + implements tcgavr.a_loadaddr_ref_reg
git-svn-id: branches/avr@17101 -
2011-03-09 19:38:59 +00:00
svenbarth
42129251da Those two tests shouldn't have been commited yet...
git-svn-id: branches/svenbarth/classhelpers@17100 -
2011-03-09 16:56:19 +00:00
svenbarth
80e6498921 Rebase to revision 17096
git-svn-id: branches/svenbarth/classhelpers@17099 -
2011-03-09 16:29:47 +00:00
svenbarth
bb55a59aaf Added some more tests
* one default properties test
* visibility of extended type's symbols
* class constructors (I don't know currently whether they are supported or not, because Delphi XE does not bring the "class constructor not allowed" error, but an internal error is created; maybe I should file a bug about this, too)

git-svn-id: branches/svenbarth/classhelpers@17098 -
2011-03-09 15:51:26 +00:00
svenbarth
5218666328 * ncgrtti.pas: RTTI generation for helpers is handled like that for classes
* pdecl.pas: prohibit generic helper declarations
* pdecobj.pas: helpers extending generic types are not allowed (theoretically one could experiment with allowing this for Delphi style generics...)
* symtable.pas:
- is_visible_for_object: helpers can access (strict) protected fields of extended types
- searchsym_in_helper: use the correct contextclass and the correct search function
- search_default_property: search for default properties in helpers first
* symsym.pas: added a global variable that allows to track whether we are parsing inside a special system function
* pexpr.pas:
- statement_syssym: track the current syssym
- factor.factor_read_id: helper types are allowed inside "sizeof", "bitsizeof" and "typeinfo"

git-svn-id: branches/svenbarth/classhelpers@17097 -
2011-03-09 15:42:38 +00:00
pierre
3378979f2b * Test for bug report 18702
git-svn-id: trunk@17096 -
2011-03-09 14:25:11 +00:00
pierre
1544e9b7a8 * new object files compiled with mingw32 gcc 3.4.5
git-svn-id: trunk@17095 -
2011-03-09 13:44:56 +00:00
joost
94cfe51faa * Added ability to use $LOCAL_APPDATA, $APPDATA, $COMMON_APPDATA,
$PERSONAL, $PROGRAM_FILES, $PROGRAM_FILES_COMMON and $PROFILE
   macros in fpc.cfg on Windows.

git-svn-id: trunk@17094 -
2011-03-08 21:00:59 +00:00
marco
32a7502f38 * Change TProxyStream.seek to 64-bit variant.
git-svn-id: trunk@17093 -
2011-03-08 15:13:53 +00:00
sekelsenmat
c0f254d706 Fixes compiling avisocncvectorialwriter, adds a dimension entity and multiple improvements to fpvtocanvas and the DXF vectorial reader
git-svn-id: trunk@17092 -
2011-03-08 14:28:26 +00:00
michael
5aea0bc565 * Additional todos
git-svn-id: trunk@17090 -
2011-03-07 22:01:41 +00:00
michael
32ce1b042f * Better error checking
git-svn-id: trunk@17089 -
2011-03-07 21:55:25 +00:00
michael
92dfe16e9a * Restructured for clarity
git-svn-id: trunk@17088 -
2011-03-07 21:40:29 +00:00
pierre
a41260fdf6 * Correct last patch for 7.0 case
git-svn-id: trunk@17087 -
2011-03-07 11:04:32 +00:00
pierre
084a274c5e * Fix gdbint for releases 7.1 7.2 and 7.3
git-svn-id: trunk@17086 -
2011-03-07 10:48:32 +00:00
marco
10b9f4976f * ENotImplemnted exception, Mantis 18871
git-svn-id: trunk@17083 -
2011-03-06 01:09:01 +00:00
Legolas
41b69d793c * libogc improved by adding some helper functions
* fixed examples and makefiles

git-svn-id: trunk@17082 -
2011-03-05 21:27:40 +00:00
sergei
1fcd40ee64 Continue fixing open array handling:
* Unified fpc_initialize_array,fpc_finalize_array with fpc_decref_array and fpc_addref_array by removing 'size' parameter from the former two. Element size is easily calculated from RTTI, so omitting it simplifies code generation. All four helpers are now callable by tcg.g_array_rtti_helper().
* ncgutil.pas: initialization of open array out-parameters is now done properly (using fpc_initialize_array).
+ Test

git-svn-id: trunk@17081 -
2011-03-05 18:45:44 +00:00
marco
7c1f4b8f20 * pass format string to doformaterror procedure. Mantis 16253
git-svn-id: trunk@17080 -
2011-03-05 17:02:43 +00:00
marco
7b8c319e3e * Patch from "gvs" Mantis 17543. Fixes some bugs in implementation parsing
(if..then-else, while do) and adds support for inherited and self
 * review of test_parser example/test + a good source to test with.

git-svn-id: trunk@17079 -
2011-03-05 15:31:00 +00:00
marco
75cdb5b244 * fixed minor logic errors in pqconnection that lead to double free (actually pqclear()). Mantis 17784 by Andrew Brunner
git-svn-id: trunk@17078 -
2011-03-05 00:32:48 +00:00
marco
d08662c1ba * expanded a ifdef mysql50 to 5.0 and 5.1. Mantis 0017661
git-svn-id: trunk@17077 -
2011-03-05 00:25:10 +00:00
marco
9a722411ab * patch from Paul for further vista/win64 API enhancements (mantis 17958)
git-svn-id: trunk@17076 -
2011-03-05 00:11:20 +00:00
marco
448e708fd7 * fix from mantis 17308 "memds" misses ftFixedChar when cloning a dataset field and ftDateTime when copying data.
git-svn-id: trunk@17075 -
2011-03-05 00:07:31 +00:00
marco
1932f04719 * fix (outline)testmetric. A+W 32+64. Mantis 17727 and mantis 18835
git-svn-id: trunk@17074 -
2011-03-04 21:23:02 +00:00
michael
6342ab15c6 * Better error checking in case of errors reading/writing to socket
git-svn-id: trunk@17073 -
2011-03-04 19:30:30 +00:00
sergei
9e3731c0e0 * Added 'HaltOnNotReleased:=True', without it a memory leak won't register as a test failure.
git-svn-id: trunk@17072 -
2011-03-04 18:18:22 +00:00
sergei
37d5a6c354 * tcg.g_array_rtti_helper(): When converting 'high' to 'length', use an intermediate register to do the increment, so that the original value of 'high' parameter is preserved regardless of platform and optimization settings. Should fix regressions introduced by r17068.
git-svn-id: trunk@17071 -
2011-03-04 17:00:47 +00:00
svenbarth
878c8c7806 Implemented correct handling of inherited methods.
- symtable.pas:
* I extended "searchsym_in_class" with a parameter to decide whether helpers should be searched before the normal class' methods, after them or not at all (as I'm not using that anymore, I might revert this to a simple Boolean again)
* Added a new function "searchsym_in_helper" which implements the algorithm to search for a symbol inside a helper's implementation. For more information on this algorithm please read the comment at the top of that function ("searchsym_in_class" also calls this function in the case that "classh" is a helper)
- pexpr.pas:
* fixes for extended "searchsym_in_class"
* in case of "inherited" and a helper the new "searchsym_in_helper" is called with the "hasinherited" parameter set to true
- pinline.pas:
fixes for extended "searchsym_in_class"
- symconst.pas:
added new enumeration for helper search order (might be removed again)

git-svn-id: branches/svenbarth/classhelpers@17070 -
2011-03-03 22:00:36 +00:00
svenbarth
6871e9ca72 More tests:
* for inherited (complicated search logic there...)
* generics
* sizeof (*sigh*)

git-svn-id: branches/svenbarth/classhelpers@17069 -
2011-03-03 21:06:00 +00:00
sergei
54bc8efa0b * Fixed reference counting of open array parameters passed by value. RTTI of the array itself is useless in this case, as it does not provide correct element count. Now using dedicated helpers which take RTTI of array element and the element count. Resolves #18859.
git-svn-id: trunk@17068 -
2011-03-03 18:38:46 +00:00
Jonas Maebe
4be36c4b2b * fixed a number of missing label reference removals when deleting
instructions that reference them (patch by M.K., mantis #18858)

git-svn-id: trunk@17067 -
2011-03-03 17:11:53 +00:00
michael
70e9e5b478 * FreeNotification was not always set for session, sometimes leading to errors if fastcgi is terminated
git-svn-id: trunk@17066 -
2011-03-03 14:48:09 +00:00
michael
fb6095ebfe * SetTypedParam: Clear parameter if data is empty and not a string. Fixed bug with GetNewID - undid virtual, moved to DoGetNewID to correctly save Last inert ID
git-svn-id: trunk@17065 -
2011-03-03 09:39:39 +00:00
marco
f0fee289c9 * fix for older GAS assemblers that don't parse (rex64Z) "lock cmpxchg8b (%r8)" properly, as used on FreeBSD7 and up till 8.2.
git-svn-id: trunk@17060 -
2011-03-02 14:45:38 +00:00
Legolas
5d906a8f1d * Workaround for untranslated functions in libogc. Fixed a couple of Makefile.fpc
git-svn-id: trunk@17059 -
2011-02-28 21:41:58 +00:00
michael
95862b957f * GetNewID should be virtual so it can be overridden
git-svn-id: trunk@17058 -
2011-02-28 15:55:11 +00:00
michael
40a6490e2d * In some cases, a looking for a non-existing provider did not return Nil
git-svn-id: trunk@17057 -
2011-02-28 14:37:35 +00:00
michael
58905ec7d9 * Terminate when socket cannot be created/bound/accepted.
git-svn-id: trunk@17056 -
2011-02-28 13:23:29 +00:00
Jonas Maebe
42cfebd653 * fixed fcl-registry dependency of winunits-jedi (was missing all/release/...
suffixes)

git-svn-id: trunk@17053 -
2011-02-28 10:44:01 +00:00
florian
0302c7181e * AVR: use LDS/LD and STS/ST depending on the reference
git-svn-id: branches/avr@17052 -
2011-02-27 21:13:25 +00:00
florian
a178f34ab3 + avr processor type information
git-svn-id: branches/avr@17051 -
2011-02-27 21:13:07 +00:00
florian
86f587b02f + added more avr instructions
git-svn-id: branches/avr@17050 -
2011-02-27 21:12:19 +00:00
florian
c0b6f9b0b0 * simplify Get/PutPtrUInt
git-svn-id: branches/avr@17049 -
2011-02-27 21:12:00 +00:00
florian
e95bf26148 * avr stackframe generation improved
git-svn-id: branches/avr@17048 -
2011-02-27 21:11:40 +00:00
florian
9234486a42 * fixed compilation of assembler helpers
git-svn-id: branches/avr@17047 -
2011-02-27 21:11:03 +00:00
florian
53ee505d84 * fixed spilling
* fixed register assignment for instructions requiring a register>R15

git-svn-id: branches/avr@17046 -
2011-02-27 21:10:31 +00:00
florian
93e72b7e8a * fixed normalize_ref
git-svn-id: branches/avr@17045 -
2011-02-27 21:09:41 +00:00
florian
88b0db90a6 * use correct sizes when getting additional registers for 64 bit values
git-svn-id: branches/avr@17044 -
2011-02-27 21:09:11 +00:00
florian
d060e199f4 * 64 bit comparisations fixed
git-svn-id: branches/avr@17043 -
2011-02-27 21:08:44 +00:00