Commit Graph

40856 Commits

Author SHA1 Message Date
Jonas Maebe
2da7c3f05c * changed declarations in finah.inc and diskh.inc from ansistring to
rawbytestring
  * DoDirSeparators() and GetDirs() marked as "rtlproc" so they can accept
    non-rawbytestring arguments as their var-parameters

git-svn-id: branches/cpstrrtl@25306 -
2013-08-19 22:04:40 +00:00
Jonas Maebe
65ecd1273d * removed warning when GetEnvironmentVariable() does not return a
a unicodestring

git-svn-id: branches/cpstrrtl@25305 -
2013-08-19 22:04:36 +00:00
Jonas Maebe
f9f041d470 * SystemOldNAme -> SystemOldName
git-svn-id: branches/cpstrrtl@25304 -
2013-08-19 22:04:33 +00:00
Jonas Maebe
91079d1327 * ensure that constant string concatenations don't result in converting
input strings to DefaultSystemCodePage

git-svn-id: branches/cpstrrtl@25303 -
2013-08-19 22:04:29 +00:00
Jonas Maebe
af3f12f60c * rawbytestring/unicodestring versions of findfirst/findnext/findclose
o these routines are now generic wrappers in filutil.inc, and call
     the platform-dependent internalfindfirst/next/close routines
   o on unix, the fnmatch routine got proper support for UTF-8 matching
     (e.g., it won't match a partial UTF-8 code point to a "?" wildcard)
   o for NativeNT, a similar (untested) UTF-16 version has been added
  + test for the above
  * rawbytestring/unicodestring versions of fileage

git-svn-id: branches/cpstrrtl@25302 -
2013-08-19 22:04:25 +00:00
Jonas Maebe
df97cd65d9 * don't adjust directory separators in fexpand when we're compiling the
sysutils version, it's already done (in a more efficient way) in
    ExpandFileName() before that routine is called

git-svn-id: branches/cpstrrtl@25301 -
2013-08-19 22:04:19 +00:00
Jonas Maebe
26b7f5a36c * ensure that fexpand(ansistring) never converts its argument to a code page
other than DefaultFileSystemCodePage, so that it can work with strings
    holding any encoding
  + test for fexpand(ansistring) with UTF-8 strings while DefaultSystemCodePage
    is set to CP_ASCII

git-svn-id: branches/cpstrrtl@25300 -
2013-08-19 22:04:15 +00:00
Jonas Maebe
14d62028ff * don't convert ansistrings when calling setcodepage() with a code page
number that means the same as the existing one but is nevertheless
    different (e.g. CP_ACP and the actual value of DefaultSystemCodePage)

git-svn-id: branches/cpstrrtl@25299 -
2013-08-19 22:04:11 +00:00
Jonas Maebe
b115231ea4 * never change the code page of a non-empty string when calling setlength on
it

git-svn-id: branches/cpstrrtl@25298 -
2013-08-19 22:04:07 +00:00
Jonas Maebe
8d1090269e * synchronised with trunk r25259
git-svn-id: branches/cpstrrtl@25267 -
2013-08-16 11:33:44 +00:00
sergei
3a12e94d21 * TVMTWriter.writeinterfaceids: pass target asmlist as parameter.
* Changed section type for interface GUID and name from sec_rodata to sec_rodata_norel, because GUIDs and strings are not relocatable.

git-svn-id: trunk@25259 -
2013-08-14 11:54:00 +00:00
pierre
c92eaebf34 Fix option passing for freebsd ans netbsd, add -Xd for linux also
git-svn-id: trunk@25256 -
2013-08-13 14:10:34 +00:00
michael
cdc7ee0998 * Fix authorization header
git-svn-id: trunk@25255 -
2013-08-13 13:18:37 +00:00
marco
9f34e4237c * remove forgotten debug feature, (uses dbugintf,which is not part of the
package dependencies), introduced in r23172 

git-svn-id: trunk@25254 -
2013-08-13 13:13:38 +00:00
michael
ae4810edd6 * Restore old behaviour for caNone for Action
git-svn-id: trunk@25252 -
2013-08-12 12:56:16 +00:00
michael
b1c111b423 * Mark transaction as closed in caNone case of EndTranscation
git-svn-id: trunk@25251 -
2013-08-12 12:44:03 +00:00
michael
75362b0bb8 * Fixed ROLLBACK : all statements must be unprepared
git-svn-id: trunk@25250 -
2013-08-12 08:19:00 +00:00
michael
abae19b553 * Reworked pool to a thread list
git-svn-id: trunk@25249 -
2013-08-12 07:48:08 +00:00
michael
ae19359a7c * Thread-safe connection pool
git-svn-id: trunk@25248 -
2013-08-12 07:25:21 +00:00
florian
d23a5b7c7d * store break/continue usage in a variable
git-svn-id: trunk@25247 -
2013-08-11 21:13:24 +00:00
florian
cfcb4cab26 * simplify body of for loop before unrolling
git-svn-id: trunk@25246 -
2013-08-11 21:13:22 +00:00
florian
5d4a094799 * calculate complexity of exit nodes correctly
git-svn-id: trunk@25245 -
2013-08-11 21:13:20 +00:00
florian
0a22199738 * always use the varrec size retrieved from the system unit when advancing to the next element
git-svn-id: trunk@25244 -
2013-08-11 20:13:57 +00:00
nickysn
fe4cac96be + added overloads to tai_const.Createname and Create_type_name, which take a Tasmsymtype parameter; to be used for declaring external symbols which reside in the data segment with AT_DATA, which is necessary for i8086 medium and compact memory models (where code and data pointers are of different size)
git-svn-id: trunk@25243 -
2013-08-11 19:46:17 +00:00
nickysn
7ae9c5b668 + added optional Tasmsymtype parameter to TAsmData.RefAsmSymbol and WeakRefAsmSymbol to allow specifying things like AT_DATA for external symbols that reside in the data segment, which is needed for i8086 medium and compact memory models
git-svn-id: trunk@25242 -
2013-08-11 19:24:54 +00:00
florian
b29591ffd3 * fix msdos rtl makefile for newer makes
git-svn-id: trunk@25240 -
2013-08-11 16:12:43 +00:00
florian
3d90ac82f8 * disable regable 4 bytes records on 16 bit alu targets, to enable them, location handling should be rewritten else gen_load_cgpara_loc gets even more messy
git-svn-id: trunk@25239 -
2013-08-11 16:12:41 +00:00
florian
11ff8a4ec1 + support register parameters with multiple locations
git-svn-id: trunk@25238 -
2013-08-11 16:12:39 +00:00
florian
86c36995dd * i8086 has no 32 bit rol/ror support so disabled inlined ror/rol for now
git-svn-id: trunk@25237 -
2013-08-11 16:12:37 +00:00
florian
6377c180bf * disable packages which do not build on msdos
git-svn-id: trunk@25236 -
2013-08-11 16:12:34 +00:00
svenbarth
ff3bb9322a Fix for Mantis #24848.
ngenutil.pas, AddToStructsInit:
  * don't add class constructors/destructors to the init table if they belong to a generic type

+ test

git-svn-id: trunk@25234 -
2013-08-11 11:20:12 +00:00
reiniero
83e843fe2a * fcl-db: TParam.SetAs***: set variant datatype before value assignment. Mantis #24728. Patch by Andrew Brunner.
git-svn-id: trunk@25233 -
2013-08-11 10:14:04 +00:00
nickysn
a5517cd3d4 * SI and DI removed from the i8086 saved_standard_registers list, because they are volatile in TP7's default calling convention
git-svn-id: trunk@25231 -
2013-08-09 12:21:30 +00:00
Mattias Gaertner
90d78e775e instantfpc: version 1.3: compile into temporary directory to avoid clashes in parallel compilations
git-svn-id: trunk@25230 -
2013-08-09 12:02:15 +00:00
florian
57d4185d44 * allocate/deallocate cpu registers as late/early as possible, this gives the reg. allocator more flexibility
git-svn-id: trunk@25229 -
2013-08-08 20:55:45 +00:00
sergei
e1550e1aed * Restore registers in correct order (for push/pop it *does* matter), fixes crashes caused by r25224.
git-svn-id: trunk@25228 -
2013-08-08 05:35:51 +00:00
masta
b81f746e05 Inline Length(DynamicArray)
Up until now a helperfunction was called at runtime. This change inlines
the whole code in the same way Length(AnsiString) works. As dynamic
arrays do not record their length but their highest index, an additional
"OP_ADD" is this case.

git-svn-id: trunk@25227 -
2013-08-07 22:07:08 +00:00
marco
0d9211b3bc * fix for Mantis #24834 sockets field in SDLNET_SOCKETSET is double pointer.
git-svn-id: trunk@25226 -
2013-08-07 15:36:12 +00:00
Jonas Maebe
2ba22f666e + support for R_SUBMMX and R_SUBMMY in generic_regname()
git-svn-id: trunk@25225 -
2013-08-07 12:41:47 +00:00
sergei
5c4abfa75a + Implemented saving/restoring registers using PUSH/POP instructions on i386 targets with non-fixed stack. Provides some advantage in code size (e.g. the compiler becomes about 20KBytes smaller).
* This should be applicable to i8086 targets as well (but needs testing), by copying changes from i386/cgcpu.pas to i8086/cgcpu.pas and removing "$ifdef i386" lines in cgx86.pas.

git-svn-id: trunk@25224 -
2013-08-07 09:59:07 +00:00
Jonas Maebe
1ce93f7430 * when automatically generating an overriding getter/setter method (because
a property in a child class has a higher visibility than the getter/
    setter), ensure that we call the inherited method and not the method
    itself (causing a stack overflow due to infinite recursion)

git-svn-id: trunk@25223 -
2013-08-06 21:50:56 +00:00
sergei
a21a20d559 + i8086-specific version of g_stackpointer_alloc.
git-svn-id: trunk@25219 -
2013-08-06 08:11:39 +00:00
sergei
1f72143eef * In preparation for fixing Mantis #24791: Copy related code from tcgx86.g_proc_entry to tcgx86_64.g_proc_entry, and remove win64-specific stuff from tcgx86 version.
git-svn-id: trunk@25218 -
2013-08-06 07:34:50 +00:00
sergei
ea65e272dd * Changed global variable into field.
git-svn-id: trunk@25217 -
2013-08-05 16:32:37 +00:00
reiniero
83a236f9b3 * revert previous commit - was due to a misunderstanding: TestFloatParamQuery already covers the bug.
git-svn-id: trunk@25216 -
2013-08-05 09:13:46 +00:00
reiniero
9ad462590a * fcl-db: dbtestframework: add test for parameter .AsFloat; bug #24728
Memory Leak in DataSet Parameter Binding

git-svn-id: trunk@25215 -
2013-08-05 08:41:54 +00:00
joost
531ce2dfc2 * If one include-file is resolved, do not stop resolving the other include-files
git-svn-id: trunk@25214 -
2013-08-04 20:46:15 +00:00
joost
23f065faa0 * Resolve files for all targets before the creation of an archive
git-svn-id: trunk@25213 -
2013-08-04 18:20:25 +00:00
nickysn
a8729ca784 + added test for the div/mod bug fixed in r24247
git-svn-id: trunk@25212 -
2013-08-04 12:46:37 +00:00
florian
912268b1b9 * make loop unrolling dependent on the cpu optimization type instead of the instruction set
git-svn-id: trunk@25211 -
2013-08-03 20:49:20 +00:00