Commit Graph

40175 Commits

Author SHA1 Message Date
Jonas Maebe
11d5d4f79d * check range of enums and booleans in typed constant expressions when
using the asmlist generator (mantis #24428)

git-svn-id: trunk@24495 -
2013-05-14 12:05:00 +00:00
yury
f174c4df83 * pas2jni: Removed debug stuff.
git-svn-id: trunk@24494 -
2013-05-14 11:47:23 +00:00
nickysn
e2cd2813ce + stop with an internal error if GetNextReg is called with a non-imaginary register
git-svn-id: trunk@24493 -
2013-05-13 22:34:13 +00:00
joost
2555885541 * Added fpmake.pp files for pas2fpm, pas2jni and pas2ut
git-svn-id: trunk@24492 -
2013-05-13 19:56:36 +00:00
nickysn
ae74cd17d2 * tarraydef.ppuload/ppuwrite: use ppufile.getasizeint/putasizeint for reading/writing lowrange and highrange as they're asizeint type, not aint
git-svn-id: trunk@24491 -
2013-05-13 12:37:11 +00:00
reiniero
ec720322bc * fcl-db/fpdbfexport: fix automatic export field name truncation for DBase files
git-svn-id: trunk@24490 -
2013-05-13 09:51:11 +00:00
paul
a65cb866d1 rtl: add unicodenumtable to install units
git-svn-id: trunk@24489 -
2013-05-13 02:19:46 +00:00
joost
555ea23209 * Added fpmake.pp for unicode utils
git-svn-id: trunk@24488 -
2013-05-12 20:13:35 +00:00
joost
534e8e2a0c * Scripts to generate Makefiles which call fpmake
git-svn-id: trunk@24487 -
2013-05-12 19:30:19 +00:00
michael
27fc72b4b3 * Fixed bug #24419
git-svn-id: trunk@24486 -
2013-05-12 13:46:39 +00:00
nickysn
3109d0a58c + enabled compilation of the dos unit for msdos-i8086
git-svn-id: trunk@24485 -
2013-05-11 22:11:55 +00:00
nickysn
0d58fd6cd0 * fixed tppufile.getaint for 8/16-bit CPUs
git-svn-id: trunk@24484 -
2013-05-11 22:04:56 +00:00
joost
478243254e * Removed double addition of ptop
* Added fpcreslipo compilation to fpmake

git-svn-id: trunk@24483 -
2013-05-11 12:07:12 +00:00
joost
2b413c3075 * Fixed path-issues in fpmake.pp file
git-svn-id: trunk@24482 -
2013-05-11 09:33:45 +00:00
joost
436d0bbdae * Added some bin2obj rules to the fpmake.pp file
git-svn-id: trunk@24481 -
2013-05-11 09:03:24 +00:00
paul
8b98a38b56 rtl: add a helper method to get TProcedureSignature parameter by index
git-svn-id: trunk@24480 -
2013-05-10 12:41:37 +00:00
joost
756ca5f318 * On a zipdistinstall, call fpmake zipinstall with examples enabled
* Pass the zipprefix as used in the install/makepack script to fpmake
   Both changes are only done in packages/Makefile.fpc for now. The
   changes are not applied to all packages individually because in
   practice those aren''t used for doing a zipinstall anymore. These
   changes can be done later if the packages/*/Makefile.fpc's are
   re-generated.

git-svn-id: trunk@24479 -
2013-05-09 21:10:40 +00:00
joost
9e37374186 * Added ability to supply prefix for the archive-name (zipprefix)
git-svn-id: trunk@24478 -
2013-05-09 20:57:55 +00:00
nickysn
92afd7cccd + R_SUBH support added in x86/aasmcpu.spilling_create_load and spilling_create_store
git-svn-id: trunk@24477 -
2013-05-09 14:10:45 +00:00
nickysn
2a9d38d878 + proper spilling support for R_SUBH (i.e. AH,BH,CH,DH) x86 registers in trgx86.do_spill_replace
git-svn-id: trunk@24476 -
2013-05-09 11:57:00 +00:00
Jonas Maebe
1358618c36 * only display and allow ABIs that are actually supported by the current
compiler binary

git-svn-id: trunk@24475 -
2013-05-08 14:30:38 +00:00
nickysn
c4dd85a0eb + implemented tcg8086.a_op_reg_ref
git-svn-id: trunk@24474 -
2013-05-08 11:49:39 +00:00
nickysn
85b98671bd + implemented tcg8086.a_op_const_ref for op_add/and/or/sub/xor/move/none; this fixes inc(longint) among other things
git-svn-id: trunk@24473 -
2013-05-08 08:23:46 +00:00
paul
72fd58d62e rtl: fix possible division by zero
git-svn-id: trunk@24472 -
2013-05-08 06:00:44 +00:00
paul
980bc634b4 compiler:
- add write_rtti_reference method, 
  - minor refactoring, 
  - always write nil as RTTI reference for objc types and void types

git-svn-id: trunk@24471 -
2013-05-08 05:47:48 +00:00
paul
fceb6c3cc5 compiler: skip objc types in ProcVar rtti arguments and result type
git-svn-id: trunk@24470 -
2013-05-08 03:40:01 +00:00
paul
cd8690c197 rtl: typo
git-svn-id: trunk@24469 -
2013-05-08 03:10:03 +00:00
paul
bc973e538d compiler: write extended RTTI for tkProcVar (tkProcedure in Delphi)
rtl: add appropriate types for tkProcVar RTTI (based on Delphi help)
+ test

git-svn-id: trunk@24468 -
2013-05-08 02:52:13 +00:00
nickysn
2d67a3169d * i8086 fixes in tcg8086.g_copyvaluepara_openarray
git-svn-id: trunk@24467 -
2013-05-07 22:34:26 +00:00
nickysn
502c2ffb94 * fixed tcg8086.a_load_reg_reg when doing an unsigned extension in the same superregister; this fixes the taddbool test
git-svn-id: trunk@24466 -
2013-05-07 21:20:40 +00:00
Jonas Maebe
b16677a75b * only pass --gc-sections to the linker if smart linking is enabled
(mantis #24396)

git-svn-id: trunk@24465 -
2013-05-07 20:28:54 +00:00
nickysn
5a4a3cbbc3 + implemented tcg8086.a_op_ref_reg; supports op_add/sub/xor/or/and
git-svn-id: trunk@24464 -
2013-05-07 19:19:55 +00:00
nickysn
b2c95c851a * fixed bug in the intr and msdos functions, introduced in r24462
git-svn-id: trunk@24463 -
2013-05-07 19:15:39 +00:00
nickysn
0a8e008a0d + the ES register made volatile on i8086 as per the 16-bit x86 calling conventions
git-svn-id: trunk@24462 -
2013-05-07 14:27:21 +00:00
marco
80fadeae41 * versioncheck: change default to 2.6.2 and add a note that using
overridecheck is unsupported.

git-svn-id: trunk@24461 -
2013-05-07 12:29:59 +00:00
paul
fe04dedbab compiler: change RTTI size of record field offset from fixed 32bit to platform dependent integer (sizeint) since it is stored this way in the compiler. This is also Delphi compatible, rtl: adopt rtl appropriately
git-svn-id: trunk@24460 -
2013-05-07 11:25:41 +00:00
paul
5f709430d4 compiler: fix indentation
git-svn-id: trunk@24459 -
2013-05-07 10:39:47 +00:00
paul
dce960c97b compiler: write Delphi compatible tkArray RTTI:
- TotalSize of all array dimensions instead of first dimension size
  - Element type of last array dimension
  - dimension information
rtl:
  - adopt array initialization/finalization/copy for the new tkArray RTTI
  - add Delphi compatible TArrayTypeData member for typinfo.TTypeData structure
tests:
  - add a test which checks RTTI information for 2 dimension array

git-svn-id: trunk@24458 -
2013-05-07 09:12:18 +00:00
michael
bef9b11dad * Allow disable of registering of message file
git-svn-id: trunk@24457 -
2013-05-07 08:05:39 +00:00
paul
d38bd1b9bd compiler: remove dummy ado_none from tarraydefoption. It is probably a leftover from time when tarraydefoptions was not present, comment options
ppudump: simplify readarraydefoptions

git-svn-id: trunk@24456 -
2013-05-07 06:51:32 +00:00
nickysn
f1861a71d6 + fixed startup hang in the i8086-msdos rtl on systems without an FPU
git-svn-id: trunk@24455 -
2013-05-06 21:36:37 +00:00
paul
39cee28f01 compiler: don't write reference to objc classes/protocols when writing tkClassRef rtti
git-svn-id: trunk@24454 -
2013-05-06 13:12:09 +00:00
nickysn
b0f7786782 + added support for special versions of near data pointers associated with a x86 segment register. They are supported on all x86 platforms: i8086, i386 and x86_64
git-svn-id: trunk@24453 -
2013-05-05 17:22:37 +00:00
marco
833c9b7bc7 * More unicode fixes shlobj.
git-svn-id: trunk@24452 -
2013-05-05 15:00:36 +00:00
marco
912d8f1c52 * set namevalueseparator to =, mantis #24116
git-svn-id: trunk@24451 -
2013-05-05 14:04:15 +00:00
marco
548879f450 * set tchar to ansichar if ifndef unicode. Probably doesn't matter, since but
reads cleaner.

git-svn-id: trunk@24450 -
2013-05-05 10:25:10 +00:00
marco
3af8cab1de * corrections from Mantis #20194.
- tbitmapheader is not a redef, from redef -> struct
     - some -A types had char types that were $ifdef unicode dependent. Fixed.
     - some -A types had char types in numeric form (bchar), where Delphi
	uses Pascal char types (ansichar)  

git-svn-id: trunk@24449 -
2013-05-05 10:23:06 +00:00
marco
ea86dcb668 * parts of #23953 done. Deprecation of old shlobj structures that are still in unit windows. However shlobj first needs to honour ifdef unicode. It currently
only supports -A and -W variants, and not the suffixless aliases.

git-svn-id: trunk@24448 -
2013-05-05 09:37:00 +00:00
marco
f080e173c5 * some {$ifdef unicode} added. + FPC_OS_UNICODE shebang.
git-svn-id: trunk@24447 -
2013-05-05 09:32:24 +00:00
marco
c9dce154fd * add boolean that can be changed to avoid shutting down winsock. This can trouble other DLLs. Mantis #22597
git-svn-id: trunk@24446 -
2013-05-05 08:42:08 +00:00