Commit Graph

35130 Commits

Author SHA1 Message Date
sergei
ea571ba1a3 * Use variables instead of direct indexing into stack, eliminates warnings at compilation.
git-svn-id: trunk@19478 -
2011-10-13 08:19:09 +00:00
pierre
e366c013e3 * fix -rpath passing to linker for Windows OS by
avoiding use of single quotes.
  * Use 'ulimit -t ' instead of timeout for bash shells.

git-svn-id: trunk@19477 -
2011-10-12 12:33:24 +00:00
paul
37432368e5 tests: test tw7758 assumes that all conversions are made in UTF8 codepage. this change is needed to prevent conversion to system codepage (which also happens while testing with delphi).
git-svn-id: trunk@19476 -
2011-10-12 08:19:59 +00:00
paul
56ecf146be compiler: fix error in length retrieving during the unicode to utf8 conversion
git-svn-id: trunk@19475 -
2011-10-12 08:13:48 +00:00
Tomas Hajny
39b5babdeb * added support for ufppkg
git-svn-id: trunk@19474 -
2011-10-12 06:15:48 +00:00
paul
85c2f195d6 compiler: convert string constants from and to codepage 0. use compiler codepage during the conversion + test
git-svn-id: trunk@19473 -
2011-10-12 06:10:36 +00:00
sergei
0b16c3565a * Don't reject IMAGE_REL_ARM_SECREL relocations, Mantis #20467
git-svn-id: trunk@19472 -
2011-10-12 06:01:14 +00:00
paul
5bf39cd1c1 rtl: remove ver2_2 define
git-svn-id: trunk@19471 -
2011-10-12 01:55:46 +00:00
paul
6131a9188c rtl: fix wince compilation, reimplement WinCEWide2AnsiMove, WinCEAnsi2WideMove by copying win32 code
git-svn-id: trunk@19470 -
2011-10-12 01:50:14 +00:00
paul
e4abb1731c tests: apply Inoussa patches to fix errors in his tests
git-svn-id: trunk@19469 -
2011-10-12 00:53:14 +00:00
pierre
216113e80d Fix compilation error introduced in my last patch for non-openbsd systems
git-svn-id: trunk@19468 -
2011-10-11 23:07:20 +00:00
pierre
6bf4bf8043 * Correct StatFS record to fix crash in test/units/dos/tdos.pp test
git-svn-id: trunk@19467 -
2011-10-11 22:38:54 +00:00
marco
eea81b4ef4 * Better support for required in the case of "not null", default value or auto increment colomns
Patch for mysql and odbc, mantis #20429. Related to still open postgres bugreport #19872

git-svn-id: trunk@19466 -
2011-10-11 15:11:39 +00:00
sergei
369725f2c4 * Get8087CW: Make sure that high bits of result are clear.
git-svn-id: trunk@19465 -
2011-10-11 10:34:52 +00:00
sergei
9df8be501a - Removed outdated FPC_HAS_RIP_RELATIVE defines, these seem to be the last ones in RTL.
git-svn-id: trunk@19464 -
2011-10-11 09:11:32 +00:00
sergei
4a3c7f7ef4 * Get8087CW: use fixed stack.
* Set8087CW: updated to i386 version, eliminates need of PIC code in assembler.
* GetSSECSR: updated similar to Get8087CW, it is somewhat shorter that way.

git-svn-id: trunk@19463 -
2011-10-11 09:08:09 +00:00
paul
21ac5dfb3b compiler: output ansistring constants in explicit codepage if codepage is explicitly defined using either $codepage directive or compiler switch or for SystemCodepage modeswitch
git-svn-id: trunk@19462 -
2011-10-11 08:58:56 +00:00
paul
6ec879219e compiler: fix tstringconstnode.changestringtype() for case of unicode to ansi conversion. remove hackish and incorrect change of ansistring def
git-svn-id: trunk@19461 -
2011-10-11 08:56:29 +00:00
sergei
1404b7397a - Win64, EXE_Entry: removed messing with gs:[0], it won't work anyway.
- Also don't modify rsp in the middle of procedure, x86_64 targets use fixed stack.
- Cleaned outdated FPC_HAS_RIP_RELATIVE and VER2_2 defines.

git-svn-id: trunk@19460 -
2011-10-11 08:38:10 +00:00
paul
b1b0b2bb1f compiler: move ansistring codepage number replacement code from the asm generator to one level up. output both 0 and CP_NONE ansistring constants as constants with codepage 0. codepage 0 means CP_ACP and it will be properly understood of RTL routines while codepage CP_NONE means no codepage. For delphi unicode mode output them in compiler codepage as before.
git-svn-id: trunk@19459 -
2011-10-11 07:22:49 +00:00
paul
9bc540e1c2 compiler: cleanup old code
git-svn-id: trunk@19458 -
2011-10-11 03:58:13 +00:00
paul
a99ffb3097 compiler: apply patches from Inoussa and Jonas:
defcmp: Address code paged' string type comparison taking care of the code page
  ncnv: Remove un-needed code page comparison to CP_UTF8, some fixes regarding shortstrings and wide char/string 
  ncon: For the case of tstringconstnode.changestringtype (ncon.pas) where the code page are of CP_NONE or 0 no translation is done as :
    * CP_NONE is compatible to all
    * For 0 the raw bytes are just copied.
 My changes:
  - change ascii2unicode to allow pass source codepage, 
  - convert in both cases when source or destination is UTF8

git-svn-id: trunk@19457 -
2011-10-11 01:21:07 +00:00
Tomas Hajny
cf81d39682 * fixed wrong dependency of fppkg on fcl-web for all targets
git-svn-id: trunk@19456 -
2011-10-10 23:06:10 +00:00
Tomas Hajny
f10fbba180 * /etc/ location hardcoded only for Unix targets, support for retrieval from the environment added for platforms using it
git-svn-id: trunk@19455 -
2011-10-10 22:50:34 +00:00
pierre
0bc02701bd * Fix missing pkgwget unit for OpenBSD due to a typing error
git-svn-id: trunk@19454 -
2011-10-10 22:38:47 +00:00
pierre
fb6f01714a + cthreads added to units list
git-svn-id: trunk@19453 -
2011-10-10 22:20:39 +00:00
pierre
6e3c6319c2 * New file for cthreads unit support
git-svn-id: trunk@19452 -
2011-10-10 22:19:11 +00:00
pierre
0cd15043b3 * Set a default dynamic linker for OpenBSD
git-svn-id: trunk@19451 -
2011-10-10 21:45:21 +00:00
pierre
4601bca836 * i386 OpenBSD target also uses GOT for pic code
git-svn-id: trunk@19450 -
2011-10-10 21:44:44 +00:00
pierre
473829f8bd i386 cpu specific units rules updated
git-svn-id: trunk@19449 -
2011-10-10 21:43:07 +00:00
pierre
ec6e21d15b Make __progname_storage external
git-svn-id: trunk@19448 -
2011-10-10 21:39:39 +00:00
pierre
ad40c306cd * Use recent libc __errno function for OpenBSD
git-svn-id: trunk@19447 -
2011-10-10 21:33:58 +00:00
marco
929342aaf0 * added unit bsd (needed for kevent/lnet). OpenBSD seems to have it.
git-svn-id: trunk@19446 -
2011-10-10 20:35:00 +00:00
marco
c8457e8ffe * Patch to add ftcurrency and ftbcd support to memds, Lacak2, Mantis #20451
git-svn-id: trunk@19445 -
2011-10-10 11:14:59 +00:00
paul
908673e48b rtl: don't convert strings on compare if one of them is empty
git-svn-id: trunk@19444 -
2011-10-10 06:43:53 +00:00
pierre
6bf90dfc7d Fix linking problems for programs using C lib
git-svn-id: trunk@19443 -
2011-10-09 23:16:41 +00:00
sergei
6e23565edf + Initialize/finalize variants using dedicated helpers, produces both smaller (no RTTI loading necessary) and faster (direct path taken) code.
git-svn-id: trunk@19442 -
2011-10-09 20:34:58 +00:00
marco
04b5c342d2 * OpenBSD fixes.
git-svn-id: trunk@19441 -
2011-10-09 20:21:14 +00:00
marco
199f7535b4 * fix pipe call for openbsd. fpmake now seems to work.
git-svn-id: trunk@19440 -
2011-10-09 19:34:21 +00:00
florian
1977b90195 *szAdapterName:GUID; -> szAdapterName:PTCHAR; in conmgr.LPCONNMGR_CONNECTION_DETAILED_STATUS, resolves #20440
git-svn-id: trunk@19439 -
2011-10-09 17:33:53 +00:00
florian
ad5ad8ed4f * outdated defines removed
git-svn-id: trunk@19438 -
2011-10-09 17:33:03 +00:00
florian
6800465021 + fix compilation on wince
git-svn-id: trunk@19437 -
2011-10-09 17:32:29 +00:00
pierre
318232ebb8 i386 openbsd C objects added
git-svn-id: trunk@19436 -
2011-10-09 16:37:49 +00:00
pierre
61eaa53fc9 Use old 3.5 version of getdirentries
git-svn-id: trunk@19423 -
2011-10-09 15:34:19 +00:00
marco
5955d477e9 * add openbsd set own target
git-svn-id: trunk@19422 -
2011-10-08 19:56:20 +00:00
marco
a80330de0b * units dl and termio added that were implictely built.
git-svn-id: trunk@19421 -
2011-10-08 19:49:12 +00:00
paul
1c41680c58 rtl: don't perform string conversion if source string is in CP_NONE encoding (rawbytestring)
git-svn-id: trunk@19420 -
2011-10-08 17:56:43 +00:00
paul
7013237317 tests: fix tencodingtest to use internal bytes instead of external files
git-svn-id: trunk@19419 -
2011-10-08 17:18:00 +00:00
pierre
a6280de177 * Fix getdirentries problem for openbsd
git-svn-id: trunk@19418 -
2011-10-08 16:46:38 +00:00
michael
a5cff8099c * Patch from Reinier Olieslagers to fix typo in property
git-svn-id: trunk@19417 -
2011-10-08 14:49:02 +00:00