Commit Graph

62909 Commits

Author SHA1 Message Date
Yuriy Sydorov
07dcd22b1c * sizeof(array) and length(array) must return sizeUint in case the array
size does not fit in sizeint. This fixes a range check error during
  compilation on small CPU targets where allowed array size is 64K, but
  sizeint is 32K max.
2021-08-16 21:54:46 +03:00
Ondrej Pokorny
40c359a551 TFPCustomHTTPClient: do not reconnect when terminated 2021-08-16 18:51:02 +00:00
florian
2efaee6d85 * include fcl-json in regression tests
* switch extension to .pas for files which shall be ignored
    by the regression tests (they are found by the compiler automatically)
2021-08-16 20:20:46 +02:00
Yuriy Sydorov
3ca73da912 * In TP-style INLINE, allowed the > modifier for global vars and relaxed range checks. 2021-08-16 17:36:12 +03:00
Ondrej Pokorny
fdaa1a12d0 fphttpclient: new DoDataWrite/OnDataSent event 2021-08-16 13:59:51 +00:00
Yuriy Sydorov
bd814c58c3 * Instruct GitLab to use the Pascal syntax highlighter for .pp and .inc files. 2021-08-16 16:32:00 +03:00
Yuriy Sydorov
fc3685819c + Added a test for the TP-style INLINE() statement. 2021-08-16 16:12:47 +03:00
Ondrej Pokorny
d502a38f20 TFPHTTPConnection: clear FBuffer when read from it in ReadRequestContent 2021-08-16 11:33:53 +02:00
Ondrej Pokorny
675312c201 *http client: rewind RequestBody in SendRequest 2021-08-16 07:04:20 +02:00
Yuriy Sydorov
64ddf22e1b * TP compatibility: For retro CPUs always copy the function result to
the register(s) on function exit if assembler blocks are present.
2021-08-16 00:40:34 +03:00
Yuriy Sydorov
c78e9557f8 * Added support for the old Turbo Pascal INLINE(data/data/...) statement.
It is available only in the TP mode.
2021-08-16 00:40:34 +03:00
Yuriy Sydorov
122ed4b76a * Support for sleb128 and uleb128 constants in the NASM writer.
* Added sleb128tostr() and uleb128tostr() methods to TExternalAssembler.
* Use these methods in assembler writers instead of code duplication.
2021-08-16 00:40:34 +03:00
Ondrej Pokorny
5479663e56 Move GetStatusCode from fphttpserver.pp to httpprotocol.pp in order to use it outside fphttpserver 2021-08-15 11:47:01 +00:00
Ondrej Pokorny
c64c0e617d fphttpclient keepalive: failed socket operations raise exceptions - try to reconnect also in this case 2021-08-15 11:39:05 +00:00
florian
246bff92d2 + include fcl-passrc in regression tests 2021-08-15 11:51:42 +02:00
Karl-Michael Schindler
dd4b4af6a5 compiler/msg/errord*.msg: Update of German error messages 2021-08-14 23:48:45 +02:00
FPK
bc2ed1a560 Merge branch 'main' into 'main'
Remove "r" from FPC revision.

See merge request freepascal.org/fpc/source!7
2021-08-13 20:39:18 +00:00
Michaël Van Canneyt
5022d0e772 Merge branch 'main' of gitlab.com:freepascal.org/fpc/source into main 2021-08-13 14:09:43 +02:00
Michaël Van Canneyt
a7d608dd43 * Add DB testsuite config file to ignore list 2021-08-13 14:09:34 +02:00
Yuriy Sydorov
07698050e5 * Before r35961 (back in 2017) some simple assignment optimizations, such as "x:=x+y" to "inc(x,y)", were performed when -O2 in tassignmentnode.simplify. In r35961 these optimizations were moved to a separate pass which is enabled only when -O3 by cs_opt_use_load_modify_store. This separate pass can benefit from other optimization. But worse code is generated with -O2 since then.
This commit restores applying of simple assignment optimizations when -O2.
2021-08-13 13:53:40 +03:00
Don
d147533c94 Remove "r" from FPC revision. 2021-08-13 11:18:42 +01:00
florian
777d536d9b * extended routines int/frac/trunc shouldn't mess with precision or exception flags, should fix #39275 2021-08-12 21:20:30 +02:00
florian
306fae299e * patch by J. Gareth Moreton: AND/CMP optimisation, resolves #39287 2021-08-11 23:01:30 +02:00
Michaël Van Canneyt
25e937b0c9 * Correct reader signatures 2021-08-11 22:03:36 +02:00
Michaël Van Canneyt
2f81580e04 * cast empty string to char no longer compiles 2021-08-11 21:54:10 +02:00
Michaël Van Canneyt
776790d014 * Rework packet handling 2021-08-11 21:54:10 +02:00
Michael Van Canneyt
5221388659 Merge branch 'ZeroSeparators' into 'main'
DateTimeToString: do not write #0 separators

See merge request freepascal.org/fpc/source!5
2021-08-11 12:22:54 +00:00
Ondrej Pokorny
a55794d80d DateTimeToString: do not write #0 separators 2021-08-11 12:22:29 +00:00
Michael Van Canneyt
5997c13615 Merge branch 'WinDateSeparator' into 'main'
Win date separator in ShortDateFormat and LongDateFormat

See merge request freepascal.org/fpc/source!4
2021-08-11 12:21:51 +00:00
Ondrej Pokorny
0ae0e741cf win: fix default ShortDateFormat and LongDateFormat 2021-08-11 11:37:43 +00:00
Ondrej Pokorny
2c81b44b1c win: fix default ShortDateFormat and LongDateFormat 2021-08-11 11:37:43 +00:00
Yuriy Sydorov
10acbca828 * x86: Added the "test $-1,%reg" condition to the MovAndTest2Test optimization. 2021-08-09 23:52:44 +03:00
Marcus Sackrow
c0d57d03c2 amiga: removed some debugging settings 2021-08-09 17:20:48 +01:00
Marcus Sackrow
8117c97d92 amiga: FPC_DOKEYCONVERSION env var if key conversation Ansi to IBM should be done for every key 2021-08-09 18:18:19 +02:00
Marcus Sackrow
e1a75bf658 Amiga: Implemented GetVar for 1.x 2021-08-09 18:18:19 +02:00
Yuriy Sydorov
6a3f32ba69 * optimize tests for a single bit "(a and one_bit_mask_const) = <> one_bit_mask_const" into "(a and one_bit_mask_const) <> = 0" to enable further CPU specific optimizations. 2021-08-09 18:38:58 +03:00
Michaël Van Canneyt
45c6833258 * --example-dir support 2021-08-09 16:46:30 +02:00
Michaël Van Canneyt
3cfec8f905 * Fix error in calclookupvalue 2021-08-09 16:34:35 +02:00
Michaël Van Canneyt
352435cb75 * only .pp is needed 2021-08-09 11:49:44 +02:00
Michaël Van Canneyt
5d826cfe3c * Some additional filters 2021-08-09 10:55:13 +02:00
Michaël Van Canneyt
c5a128fae7 * Gitlab client + example 2021-08-08 15:22:33 +02:00
Florian Klämpfl
58044c9632 * simplified .gitattributes as we do not do a two synchronization with svn 2021-08-07 11:12:50 +02:00
Marcus Sackrow
c1f6a7afdd Amiga: Workbench 1.x compatibilty via the AMIGA_V1_2_ONLY define 2021-08-06 20:50:13 +02:00
Yuriy Sydorov
136f042972 * It is still needed to release the temp allocated for the result of an assembler function if the result is not referenced. This fixes some EXTDEBUG warnings. 2021-08-06 21:43:10 +03:00
Yuriy Sydorov
5920d169c0 * Prevent double release of a temp. 2021-08-06 21:30:28 +03:00
Marcus Sackrow
5350ac7d65 fpts2junit: prevent double entries in junit xml (in test log are double entries, one for compiles, one for runs) 2021-08-06 17:41:51 +01:00
marcoonthegit
4ac5f5e433 Merge branch 'main' of gitlab.com:freepascal.org/fpc/source 2021-08-06 12:08:22 +02:00
marcoonthegit
9e1606f221 * add BI_ALPHABITFIELDS 2021-08-06 12:05:34 +02:00
Nikolay Nikolov
b3744bf11f + added dependency on unit xmd for unit dpms 2021-08-06 04:30:09 +03:00
Nikolay Nikolov
a061b2e763 + added unit xtestext1 (header translation of X11/extensions/xtestext1.h) 2021-08-06 04:29:12 +03:00