yury
0a3c94bc72
* Moved inline methods to the beginning in order to allow them to be actually inlined in this unit.
...
git-svn-id: trunk@40219 -
2018-11-04 19:50:09 +00:00
Károly Balogh
7bd590c9a7
fix the missing semicolos in the previous fix..
...
git-svn-id: trunk@40218 -
2018-11-04 18:15:24 +00:00
Károly Balogh
12a22b593d
initialize result before passing it to FindFile()
...
git-svn-id: trunk@40217 -
2018-11-04 18:03:00 +00:00
yury
4682ac269d
* Further improvement for r40180:
...
An uninitialized function Result of a managed type needs special handling.
When passing it as a var parameter a warning need to be emitted, since a user
may expect Result to be empty (nil) by default as it happens with local vars
of a managed type. But this is not true for Result and may lead to serious issues.
The only exception is SetLength(Result, ?) for a string Result. A user always
expects undefined contents of the string after calling SetLength(). In such
case a hint need to be emitted.
+ Tests for this.
git-svn-id: trunk@40216 -
2018-11-04 15:37:52 +00:00
michael
79dc736a69
* Patch from Margérs to fix bug #32281 (zip/unzip files >4Gb)
...
git-svn-id: trunk@40215 -
2018-11-04 12:03:32 +00:00
marco
cf4496aa1e
* more moderate growing for large collections, Mantis #34420 .
...
git-svn-id: trunk@40214 -
2018-11-03 22:56:09 +00:00
marco
a1904a055c
* simple clear functions for some types.
...
git-svn-id: trunk@40213 -
2018-11-03 22:50:55 +00:00
Mattias Gaertner
ebdf451cb5
pastojs: test result:=inherited;
...
git-svn-id: trunk@40211 -
2018-11-03 21:53:51 +00:00
Mattias Gaertner
1ca522a27e
pastojs: clean up
...
git-svn-id: trunk@40210 -
2018-11-03 21:53:32 +00:00
Mattias Gaertner
767938dac7
pastojs: less hints
...
git-svn-id: trunk@40209 -
2018-11-03 21:53:09 +00:00
Mattias Gaertner
c160d93750
fcl-passrc: no hint on hiding inherited constructor, fixed Result:=inherited;
...
git-svn-id: trunk@40204 -
2018-11-03 21:37:55 +00:00
Mattias Gaertner
1bd8e903d7
fcl-js: simplified
...
git-svn-id: trunk@40203 -
2018-11-03 21:36:36 +00:00
florian
34d11046e0
* wrapcomplexinlinepara takes care of function results which need different temp. handling, resolves #34438
...
* tw34438 failed with -O3, fixes also dfa for inline functions returning results as "complex" parameter
git-svn-id: trunk@40202 -
2018-11-03 17:31:10 +00:00
yury
e63433c88c
* Fixed obtaining a time zone information for 64-bit android.
...
git-svn-id: trunk@40201 -
2018-11-03 14:33:41 +00:00
yury
8958d94091
* Fixed locale detection on new Android versions.
...
git-svn-id: trunk@40200 -
2018-11-03 14:16:21 +00:00
yury
d27c16f024
* ICU v3.8 on Android 1.5-2.1 is buggy and can't be unloaded properly.
...
git-svn-id: trunk@40199 -
2018-11-03 13:56:27 +00:00
yury
b717a149b6
* android: Removed cwstring from the uses clause of the unix unit. Use cwstring indirectly. It allows to avoid using cwstring if needed.
...
git-svn-id: trunk@40198 -
2018-11-03 12:34:59 +00:00
florian
42e54c1ad5
* max_operands needs only to be 2 on avr
...
git-svn-id: trunk@40197 -
2018-11-03 10:39:58 +00:00
pierre
0e546d47ca
Fix 3 operand version of MatchOpType
...
git-svn-id: trunk@40196 -
2018-11-02 23:18:54 +00:00
Mattias Gaertner
fe7805c5fe
fcl-web: fixed simpleserver on darwin
...
git-svn-id: trunk@40195 -
2018-11-02 22:55:52 +00:00
Mattias Gaertner
3d2322512e
pastojs: stack trace in nodejs
...
git-svn-id: trunk@40194 -
2018-11-02 22:55:20 +00:00
Mattias Gaertner
bdb3a9175d
pastojs: fixed escaping invalid UTF-16 in string literals
...
git-svn-id: trunk@40193 -
2018-11-02 22:54:26 +00:00
Mattias Gaertner
59414e3030
pastojs: fixed escaping invalid UTF-16 i string literals
...
git-svn-id: trunk@40192 -
2018-11-02 22:53:36 +00:00
Mattias Gaertner
f0e75cdbbb
fcl-js: fixed escaping invalid UTF-16 i string literals
...
git-svn-id: trunk@40191 -
2018-11-02 22:52:22 +00:00
florian
9b0ff05ee8
- get rid of MaxOps, it is redundant with max_operands
...
* MatchOpType with three operands is only available of max_operands>2
git-svn-id: trunk@40190 -
2018-11-02 21:32:29 +00:00
Jonas Maebe
513481ad71
* fixed overzealous removal of an assigned(t1) check in r40142 (it was for a
...
ttryexceptnode instead of for a ttryfinally node)
git-svn-id: trunk@40189 -
2018-11-02 21:12:18 +00:00
yury
a19528efa1
* Fixed warnings.
...
git-svn-id: trunk@40188 -
2018-11-02 19:22:46 +00:00
yury
78a26e53f8
* Fixed warnings.
...
git-svn-id: trunk@40187 -
2018-11-02 19:04:52 +00:00
yury
a077e0dd90
* Fixed comparison.
...
git-svn-id: trunk@40186 -
2018-11-02 19:04:26 +00:00
yury
30d64cec68
* Removed unused local vars.
...
git-svn-id: trunk@40185 -
2018-11-02 18:51:19 +00:00
yury
a026252508
* Commented out unused "size" local var.
...
git-svn-id: trunk@40184 -
2018-11-02 18:47:34 +00:00
yury
4357caaad8
* Removed unused local vars.
...
git-svn-id: trunk@40183 -
2018-11-02 18:44:29 +00:00
yury
2dc64e5fae
* Reverted r40181 because the "not inlined" notes are issued not due to access to private fields, but due to string conversion. It need to be fixed by overloaded versions of some methods.
...
git-svn-id: trunk@40182 -
2018-11-02 18:21:26 +00:00
yury
fa2d82f879
* Removed 'inline' from public methods of TFPObjectList and TFPHashObjectList since they use private fields and can not be inlined when called from other units.
...
git-svn-id: trunk@40181 -
2018-11-02 16:55:33 +00:00
yury
1b151df89f
* Make SetLength() to emit hint "Local variable "s" of a managed type does not seem to be initialized" instead of the warning. This change is needed because when calling a regular procedure with a ver parameter of a managed type the hint is generated. Now SetLength() behaves the same.
...
git-svn-id: trunk@40180 -
2018-11-02 16:19:18 +00:00
yury
bfbe50bc04
* pas2jni: Added option: -N - Do not generate a Java code for auto-loading of the shared library.
...
* pas2jni: Do not generate TClass helper code if no classes are used at all.
git-svn-id: trunk@40179 -
2018-11-02 15:18:26 +00:00
Mattias Gaertner
2aab88ee4e
pastojs: fixed range check of o.aArray[index]
...
git-svn-id: trunk@40177 -
2018-11-02 00:20:48 +00:00
Mattias Gaertner
3979f9922a
pastojs: fixed range check of o.aString[index]
...
git-svn-id: trunk@40175 -
2018-11-02 00:06:29 +00:00
Mattias Gaertner
f116d51fd9
pastojs: load include file from cache
...
git-svn-id: trunk@40173 -
2018-11-01 23:41:06 +00:00
Mattias Gaertner
571094912b
fcl-passrc: fixed error position on include file not found
...
git-svn-id: trunk@40171 -
2018-11-01 23:23:34 +00:00
pierre
2a9ce2ed6c
Disable three operand overload of MatchOpType for avr and jvm targets, which only have 2 operands max
...
git-svn-id: trunk@40170 -
2018-11-01 23:04:18 +00:00
Mattias Gaertner
c39cc4475f
pastojs: fixed assigning class var of descended classes
...
git-svn-id: trunk@40168 -
2018-11-01 22:40:57 +00:00
Mattias Gaertner
3f50c51225
fcl-passrc: added TPasResolver.IsClassField
...
git-svn-id: trunk@40166 -
2018-11-01 22:36:46 +00:00
Mattias Gaertner
2070df21ac
fcl-passrc: debug check
...
git-svn-id: trunk@40165 -
2018-11-01 22:36:24 +00:00
Mattias Gaertner
2f5d081b5d
nodepas2js: clean up
...
git-svn-id: trunk@40164 -
2018-11-01 22:35:17 +00:00
pierre
e49025a086
More -CriotR fixes:
...
* entfile.pas: Change PPU header falgs filed from longint to dword.
* ngtcon.pas: Change local variable startoffset type to aword.
* omfbase.pas: Avoid calling move with a nil string s indexed as s[1],
to avoid a range check error.
* owomflib.pas: Disable range check explicitly in hash computation.
* utils/ppuutils/ppudump.pp: Adapt to flags type change in entfile.pas
git-svn-id: trunk@40163 -
2018-11-01 21:58:54 +00:00
florian
59d5d6ec95
+ factored out TX86AsmOptimizer.PrePeepholeOptIMUL, used now by x86-64 and i386
...
* generalized and simplified the code
git-svn-id: trunk@40162 -
2018-11-01 20:49:20 +00:00
florian
47c9bca7f2
* number of cycles slightly increased for better measurements
...
git-svn-id: trunk@40161 -
2018-11-01 20:49:19 +00:00
florian
2a016889de
* skip align directives after unconditional jumps
...
git-svn-id: trunk@40160 -
2018-11-01 20:49:18 +00:00
florian
a092da723a
+ new fields for more precise control of alignment
...
+ support of new alignment control values for GNU AS writer
+ support of new alignment control values for binary writer
* better alignment settings on i386-win32
* improved inserted align directives for if nodes
git-svn-id: trunk@40159 -
2018-11-01 20:49:17 +00:00