Commit Graph

34950 Commits

Author SHA1 Message Date
marco
0db7b03ec0 * Added some missing fieldtypes to bufdataset, Mantis (_safe patch)
git-svn-id: trunk@19262 -
2011-09-28 07:50:29 +00:00
paul
4cf5e36ce7 compiler:
- add TTagHashSet class descendant of THashSet with an ability to has also a LongWord value together with key
  - change TAsmData.ConstPools[] to be an indexed property to properly initialize ConstPool class, remove pool initialization from all other units
  - add ansistring constants to pool together with their encoding to distinct the same text constants with different codepage
  + test

git-svn-id: trunk@19261 -
2011-09-28 01:18:43 +00:00
Legolas
8ce243eafd * Fixed libndsfpc building
- Removed some deprecated examples about libnds filesystem

git-svn-id: trunk@19260 -
2011-09-27 21:05:55 +00:00
pierre
f3626b4b80 * Sort test source files, needed of freebsd at least
git-svn-id: trunk@19259 -
2011-09-27 20:59:25 +00:00
sergei
6ee77d9088 + ogelf.pas: support relocation of type R_X86_64_32 which is apparently used by DWARF3 debug info.
git-svn-id: trunk@19258 -
2011-09-27 20:38:10 +00:00
marco
962db07cf6 * Patch from Ludo Brands for Mantis . Fixes some float issues which have
scale=0 and precision=0

git-svn-id: trunk@19257 -
2011-09-27 20:31:55 +00:00
florian
d7f7a9bb76 * patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves
git-svn-id: trunk@19256 -
2011-09-27 20:22:40 +00:00
Legolas
02b0ef5379 * libnds updated to ver.1.5.4
git-svn-id: trunk@19255 -
2011-09-27 18:54:32 +00:00
joost
ce01b15c49 * Generate proper Dwarf-debuginfo for DW_AT_vtable_elem_location, containing
a Dwarf-block that evaluates the location of a method within the vmt. 
   The vmtindex as it was used is is only used by older GCC versions and does
   not work with a Pascal VMT.

git-svn-id: trunk@19253 -
2011-09-27 15:48:52 +00:00
marco
79f54fb31a * fix for mantis , memoryleaks as result from change of stmtprepare to ..stmtprepare2
git-svn-id: trunk@19251 -
2011-09-27 10:49:35 +00:00
Mattias Gaertner
604f9ba4b8 istantfpc: help about -B
git-svn-id: trunk@19249 -
2011-09-26 19:38:19 +00:00
blikblum
e10071da70 * fix retrieving AutoInc value when index of autoinc field differs in Fields and in fielddefs
git-svn-id: trunk@19247 -
2011-09-26 18:32:07 +00:00
sergei
4c21beb48e win64 unwinding, misc fixes:
* Insert seh_endprologue directive after the last prologue instruction, not before it
* Omit seh_stackalloc for zero bytes
* (For now) ignore SEH directives in NASM and MASM writers, instead of failing with internal error.

git-svn-id: trunk@19246 -
2011-09-26 13:55:21 +00:00
sergei
d94460e3b3 * Made the x86-specific scalefactor optimization of tvecnode available on x86_64 as well, by moving update_reference_reg_mul method from ti386vecnode to newly introduced tx86vecnode.
git-svn-id: trunk@19245 -
2011-09-26 12:58:59 +00:00
Mattias Gaertner
e2357b5809 instantfpc: added option --skip-run
git-svn-id: trunk@19244 -
2011-09-26 11:09:17 +00:00
Mattias Gaertner
5bcf0e71a6 instantfpc: nicer help
git-svn-id: trunk@19243 -
2011-09-26 10:38:35 +00:00
pierre
1f0e5b496f Try to support shared libraries for freebsd
git-svn-id: trunk@19242 -
2011-09-26 10:25:27 +00:00
pierre
23a8fb1754 Suppress console messages about sign extension in ioctl system call
git-svn-id: trunk@19241 -
2011-09-26 10:24:00 +00:00
paul
5560f6b3f2 compiler + rtl: pass codepage to fpc_CharArray_To_AnsiStr to get the preserve the codepage of result string
git-svn-id: trunk@19240 -
2011-09-26 04:49:09 +00:00
florian
4868b09844 * patch by alexvin to replace $ifopt by $push/$pop, resolves
git-svn-id: trunk@19239 -
2011-09-25 21:19:50 +00:00
Jonas Maebe
2b11fd2bef * cpus that only understand Thumb-2 don't support "blx <imm>"
git-svn-id: trunk@19238 -
2011-09-25 20:44:39 +00:00
marco
6ed8641937 * patch from BigChimp, fixing dbf related testing of output, from
reopened Mantis 

git-svn-id: trunk@19237 -
2011-09-25 19:52:10 +00:00
pierre
ccb0595971 * Extend global label for smart linked objects to bsd systems
git-svn-id: trunk@19236 -
2011-09-25 19:30:35 +00:00
pierre
ee67e124ee + Add systems_XXXbsd sets
git-svn-id: trunk@19235 -
2011-09-25 19:29:14 +00:00
sergei
268d8685e7 - Removed SysResetFPU/SysInitFPU from win32/win64 system unit initialization. It is redundant here because it is called from fpc_initializeunits->fpc_cpuinit (on win64) or from fpc_cpucodeinit (on win32).
* Also declared hprevinst as a typed constant and removed its initialization from code.

git-svn-id: trunk@19234 -
2011-09-25 19:27:52 +00:00
Jonas Maebe
028421ca6a + interface delegation test from mantis , already works
git-svn-id: trunk@19228 -
2011-09-25 14:46:19 +00:00
Jonas Maebe
d714eeb84b * give a proper error when a type identifier is missing in a
class operator declaration (mantis )

git-svn-id: trunk@19226 -
2011-09-25 14:38:06 +00:00
paul
932ca07230 rtl: remove useless ifdef
git-svn-id: trunk@19224 -
2011-09-25 13:31:28 +00:00
marco
f538655cbf * enable character for FreeBSD.
git-svn-id: trunk@19223 -
2011-09-25 12:38:22 +00:00
paul
6266b88b74 compiler: fix string const conversion from one codepage to another
git-svn-id: trunk@19222 -
2011-09-25 06:41:59 +00:00
florian
5fa184c952 + patch by Jeppe Johansen to make use of the div/udiv instruction on arm7m, resolves
* explicitly make symbol addressing PC relative

git-svn-id: trunk@19221 -
2011-09-24 21:41:01 +00:00
marco
b0b12d3a64 * fmtbcd divide fix (and others), Mantis , fix by Lacak2. + Test
git-svn-id: trunk@19220 -
2011-09-24 21:34:39 +00:00
marco
09a2f07d5d * use bcdcompare instead of overloaded operator. Mantis , patch by Lacak2
git-svn-id: trunk@19219 -
2011-09-24 21:22:18 +00:00
florian
cb647d875c * avoid mistakes with unimplemented sqr function on architectures with no softfloat support
git-svn-id: trunk@19218 -
2011-09-24 21:17:09 +00:00
marco
ecaa86d582 * added test from Mantis
git-svn-id: trunk@19217 -
2011-09-24 20:59:51 +00:00
marco
5e91099731 * fixes for > 100 query parameters. Mantis , patch from Lacak2
git-svn-id: trunk@19215 -
2011-09-24 20:24:55 +00:00
marco
be95c02a89 * Patch from Lacak2, mantis mapping "..with timezone" fields to their non timezone fields ft*'s.
No processing of timestamp is done.

git-svn-id: trunk@19214 -
2011-09-24 20:19:39 +00:00
paul
7a998aec3a compiler, rtl: add a codepage argument fpc_Read_Text_AnsiStr to create new AnsiString with the codepage of passed AnsiString argument
git-svn-id: trunk@19210 -
2011-09-24 17:43:30 +00:00
paul
00396da30c compiler: cleanup
git-svn-id: trunk@19208 -
2011-09-24 17:41:13 +00:00
paul
3b9fd15af7 rtl: update character.pas by Inoussa OUEDRAOGO (issue )
* This new version contains all the unicode code points (BMP and other planes) character properties.

git-svn-id: trunk@19207 -
2011-09-24 15:17:12 +00:00
Jonas Maebe
64f8ec7a9a * disabled part of test that is broken on systems using utf-8 as
DefaultSystemCodePage
  * fixed use of wrong string length in second part of test

git-svn-id: trunk@19203 -
2011-09-23 21:55:06 +00:00
Jonas Maebe
28bd9a9618 * fixed syntax error
git-svn-id: trunk@19202 -
2011-09-23 21:48:55 +00:00
sergei
ad5d2ccabb * Moved command line handling and randomize() to syswin.inc, so a single copy of code is used for both win32 and win64. This implies that apostrophe is no longer supported as quoting symbol in win64.
Win64 doesn't support it itself either.

git-svn-id: trunk@19201 -
2011-09-23 21:45:02 +00:00
sergei
b997094755 + Generate unwind bytecode for function prologues on win64.
* For now placed actual processing of unwind info under {$ifdef TEST_WIN64_UNWIND}, because in the current state it doesn't add much value.

git-svn-id: trunk@19200 -
2011-09-23 21:22:25 +00:00
Jonas Maebe
dff5ac3b0a * don't allow passing a field of a record that's not an lvalue as
var-parameter, nor allowing taking its address (mantis )

git-svn-id: trunk@19199 -
2011-09-23 21:21:49 +00:00
Jonas Maebe
fadf8bf2a5 * fixed fpc_UnicodeStr_CheckRange() now that apparently the length in
unicodestring record is stored as the number of widechars rather than
    the number of bytes

git-svn-id: trunk@19198 -
2011-09-23 21:17:51 +00:00
florian
a5cdc0cdde * changed check introduced in r19193 into the same method as other locations in nadd.pas do
git-svn-id: trunk@19197 -
2011-09-23 20:34:10 +00:00
Jonas Maebe
258869c8f1 * and one more fix to prevent endless loops
git-svn-id: trunk@19196 -
2011-09-23 19:16:48 +00:00
Jonas Maebe
3469942f34 * fixed potential endless loop if the code page passed to win2iconv()
is not found

git-svn-id: trunk@19195 -
2011-09-23 18:34:31 +00:00
Jonas Maebe
7dd5811828 + support for transcoding the new ansistring type on unix platforms
* initialize DefaultSystemCodePage on unix platforms

git-svn-id: trunk@19194 -
2011-09-23 17:32:18 +00:00