Commit Graph

47284 Commits

Author SHA1 Message Date
svenbarth
0ff87336aa Convert the Boolean parameters accept_equal, typeonly and hadspecialize of comp_expr(), sub_expr() and factor() to a set parameter and adjust all calls.
pexpr.pas:
  + new enum texprflag and corresponding set texprflags
  * comp_expr: replace accept_equal and typeonly with texprflags parameter
  * factor: replace typeonly and hadspecialize with texprflags parameter
  * sub_expr: replace accept_equal and typeonly with texprflags parameter
  * adjust calls to comp_expr(), factor() and sub_expr()
other units:
  * adjust calls to comp_expr(), factor() and sub_expr() 

git-svn-id: trunk@32269 -
2015-11-07 21:45:03 +00:00
nickysn
4edbd27774 * support writing omf libraries with size greater than 251 blocks
git-svn-id: trunk@32268 -
2015-11-07 16:54:23 +00:00
nickysn
e498bfc1ba * changed an internal error number to ensure it's unique
git-svn-id: trunk@32267 -
2015-11-07 13:41:00 +00:00
michael
745c1499df * Mark forgotten implementations with runerror 219
git-svn-id: trunk@32266 -
2015-11-07 12:36:32 +00:00
michael
6955106a13 * Fix TStringSplitOptions
git-svn-id: trunk@32265 -
2015-11-07 12:36:10 +00:00
michael
b86ef67a54 * Resolved conflict with none in TStringSplitoptions
git-svn-id: trunk@32264 -
2015-11-07 10:08:28 +00:00
michael
4a32135563 * no type helpers in version 2.6.*
git-svn-id: trunk@32263 -
2015-11-07 09:54:43 +00:00
michael
fde42ca8ef * Type helpers, compatible to Delphi XE 8
git-svn-id: trunk@32262 -
2015-11-07 09:40:54 +00:00
florian
094a3c4350 * fixes masm code generation for rep mov*
git-svn-id: trunk@32259 -
2015-11-06 19:06:57 +00:00
marco
a9ac2abc77 * fixed #28908 (add alias for ADDRINUSE to sockets) for win,os2,unix
git-svn-id: trunk@32258 -
2015-11-06 16:07:33 +00:00
marco
d95b95e648 * fix for #28940 also add PSizeUint
git-svn-id: trunk@32257 -
2015-11-06 15:54:54 +00:00
nickysn
ca24b006ef + support 'dw SEG symbol' in the inline assembler on i8086
git-svn-id: trunk@32256 -
2015-11-06 15:35:20 +00:00
marco
266ebc351b * remove some deprecated functions. Most have alternatives since at least 2.4, and more often 2.2
I left getdomainname in "unix" for now, I don't know the exact status.

git-svn-id: trunk@32255 -
2015-11-06 14:55:38 +00:00
marco
4484f793e7 * avoid deprecated warning.
git-svn-id: trunk@32254 -
2015-11-06 14:54:43 +00:00
marco
a441becb11 * enable mysql 5.7
git-svn-id: trunk@32253 -
2015-11-06 10:59:53 +00:00
nickysn
bb47eb4a2a + support aitconst_seg in the i8086 internal assembler as well
git-svn-id: trunk@32252 -
2015-11-05 16:38:04 +00:00
nickysn
ac97d20249 + added support for typed word/smallint constants, initialized with Seg(symbol) on the i8086
git-svn-id: trunk@32251 -
2015-11-05 16:18:47 +00:00
nickysn
44b04e250e + implemented support for aitconst_seg (emits a 'DW SEG symbol') in the nasm assembler writer for i8086
git-svn-id: trunk@32250 -
2015-11-05 16:05:22 +00:00
nickysn
8c81e93a96 * replaced setintvec(x,@proc) in i8086 tests with the memory model independent version setintvec(x,ptr(seg(proc),ofs(proc)))
git-svn-id: trunk@32249 -
2015-11-05 14:18:55 +00:00
Jonas Maebe
4f54f8b3bd * fixed expectloc for llvm bool_2_int typeconversions where the location
doesn't change

git-svn-id: trunk@32248 -
2015-11-04 22:23:50 +00:00
Jonas Maebe
69b832c1d0 * added in_sqr_x support for llvm
git-svn-id: trunk@32247 -
2015-11-04 22:23:47 +00:00
Jonas Maebe
98c08dee1a * fixed indentation
git-svn-id: trunk@32246 -
2015-11-04 22:23:44 +00:00
Jonas Maebe
22d8b273bd * the type of tvarrec fields that are passed by address is already a pointer
-> don't make a double pointer

git-svn-id: trunk@32245 -
2015-11-04 22:23:41 +00:00
pierre
f4cf58739f Add poWaitOnExit option to TProcess inside GetCompilerInfo
git-svn-id: trunk@32244 -
2015-11-04 21:51:14 +00:00
Jonas Maebe
fa3b0ca312 * support marking defs created via the getreusable*() class methods as
"don't free even if not registered"; use for defs that may not be written
    to a ppu file, but that must nevertheless survive the compilation of the
    current module
  * mark all defs created for para locations as "don't free even if not
    registered", because we don't discard and recalculate all para locations
    after a module has been compiled (since that's not needed)
   o solves issues if the paralocations for a routine in the interface of
     unit A are calculated while the implementation of unit B gets
     compiled, and a new reusable type is allocated at that point which
     is not used anywhere else (after r32160)

git-svn-id: trunk@32235 -
2015-11-04 20:46:18 +00:00
Jonas Maebe
d5aa498cf5 * fixed several issues related to dumping jvm ppu files
o don't use ifdefs related to symansistr or jvm, since these conditional
     defines are not set while compiling ppudump

git-svn-id: trunk@32234 -
2015-11-04 20:46:13 +00:00
Jonas Maebe
9914f02faa * always set the resultdef for variant array constructors correctly, so we
don't need to pull all kinds of special tricks pass_generate_code

git-svn-id: trunk@32233 -
2015-11-04 20:46:10 +00:00
Jonas Maebe
a3ba779b22 * fixed formatting
git-svn-id: trunk@32232 -
2015-11-04 20:46:07 +00:00
Jonas Maebe
5f4ba2c227 * ensure that the tai is an instruction in PostPeepHoleOptsCpu before
casting as such

git-svn-id: trunk@32231 -
2015-11-04 20:46:02 +00:00
Jonas Maebe
c8839d487b * fixed accidentally committed (harmless) typo in r32202
git-svn-id: trunk@32226 -
2015-11-04 13:03:45 +00:00
Jonas Maebe
745249295e * don't reserve never used space for parameter and function result location
info on the callnoside and callbothsides "sides"

git-svn-id: trunk@32225 -
2015-11-04 12:50:47 +00:00
joost
18b66865ac * Added fppkg option to gather info on a package
git-svn-id: trunk@32224 -
2015-11-03 20:53:34 +00:00
Jonas Maebe
f004227d91 * ignore the name of class con- and destructors (patch by Ondrej Pokorny,
mantis #28801)

git-svn-id: trunk@32223 -
2015-11-03 18:10:08 +00:00
nickysn
75dc2ad7e1 + implemented Seg(procedure) on i8086
git-svn-id: trunk@32222 -
2015-11-02 16:37:19 +00:00
pierre
51d849ae3b Handle collect2 -plugin option and avoid error output on non-existing gdb.exe
git-svn-id: trunk@32221 -
2015-11-02 15:07:33 +00:00
pierre
d25a768b1d Handle SPECIALLINK environment variable in the same way it was used in old Makefile.fpc
git-svn-id: trunk@32220 -
2015-11-02 10:27:13 +00:00
Jonas Maebe
8087389f63 * support assigning static methods to regular procvars in (obj)fpc mode
(patch by Ondrej Pokorny, mantis #27414)

git-svn-id: trunk@32216 -
2015-11-01 18:02:46 +00:00
Jonas Maebe
2c5187cb97 * fixed size when storing arrayconstructor vtype field
git-svn-id: trunk@32215 -
2015-10-31 14:25:56 +00:00
Jonas Maebe
af4d69f446 * always write the entire integer field when storing a value < integer in an
arrayconstructor, so the upper bits get zeroed (tbs/tb0581)

git-svn-id: trunk@32214 -
2015-10-31 14:25:54 +00:00
Jonas Maebe
5e32590741 * handle variant record fields in
thlcgllvm.g_set_addr_nonbitpacked_record_field_ref()

git-svn-id: trunk@32213 -
2015-10-31 14:25:50 +00:00
nickysn
94a5364c2c * fixed 'array of const' in the i8086 tiny/small/medium memory models
git-svn-id: trunk@32212 -
2015-10-31 11:43:04 +00:00
nickysn
a55b728d34 * optimizations for ofs() on i8086 to load only the offset (in a temporary
register), without the segment

git-svn-id: trunk@32211 -
2015-10-30 21:27:35 +00:00
Jonas Maebe
998cdbfe79 - removed useless ansistring pointer def creation from r32209
git-svn-id: trunk@32210 -
2015-10-30 20:56:34 +00:00
Jonas Maebe
0dee7cb4a0 * converted emitting resourcestring references to the high level typed
constant builder

git-svn-id: trunk@32209 -
2015-10-30 20:45:22 +00:00
Jonas Maebe
0c904e92ff * moved TResourceStringRecord from the objpas to the system unit so it can be
used in the compiler when emitting resourcestrings

git-svn-id: trunk@32208 -
2015-10-30 20:45:19 +00:00
Jonas Maebe
4670e0abc9 * converted "array of const" handling to the high level code generator
git-svn-id: trunk@32207 -
2015-10-30 20:45:15 +00:00
Jonas Maebe
ccf1c67665 * converted large set constant emission to high level typed const builder
git-svn-id: trunk@32206 -
2015-10-30 20:45:11 +00:00
nickysn
072139cdb7 * fixed ofs(procedure) as well
git-svn-id: trunk@32205 -
2015-10-30 19:30:33 +00:00
nickysn
c25585daee * fixed addr(procedure), mantis #28775
git-svn-id: trunk@32204 -
2015-10-30 15:17:48 +00:00
Jonas Maebe
79866f9824 * free a bunch of extra data after a unit is compiled, as it is no longer
needed

git-svn-id: trunk@32203 -
2015-10-30 15:12:37 +00:00