Commit Graph

21350 Commits

Author SHA1 Message Date
pierre
2dbe24fec5 * Merge commit #39997
------------------------------------------------------------------------
r39997 | pierre | 2018-10-20 18:11:25 +0000 (Sat, 20 Oct 2018) | 1 line

 Also fix first_abs_real like in rev 39988
------------------------------------------------------------------------
--- Merging r39997 into '.':
U    compiler/ninl.pas
--- Recording mergeinfo for merge of r39997 into '.':
 U   .

git-svn-id: branches/fixes_3_2@46555 -
2020-08-22 21:12:55 +00:00
pierre
922c95d317 * Merge 39989 to allow correct fullcycle with -O4
------------------------------------------------------------------------
r39989 | florian | 2018-10-20 09:16:51 +0000 (Sat, 20 Oct 2018) | 2 lines

* wrong ifdef exposed by warning with -O3 fixed

------------------------------------------------------------------------
--- Merging r39989 into '.':
U    compiler/ppcgen/hlcgppc.pas
--- Recording mergeinfo for merge of r39989 into '.':
 U   .

git-svn-id: branches/fixes_3_2@46286 -
2020-08-06 09:31:05 +00:00
pierre
4ba3bfb227 * Also merge 39991 to avoid wrong typecast in first_sqrt_real
------------------------------------------------------------------------
r39991 | florian | 2018-10-20 10:18:45 +0000 (Sat, 20 Oct 2018) | 2 lines

* same fix as in r39988 for fpc_first_sqrt

------------------------------------------------------------------------
--- Merging r39991 into '.':
U    compiler/ninl.pas
--- Recording mergeinfo for merge of r39991 into '.':
 U   .

git-svn-id: branches/fixes_3_2@46285 -
2020-08-06 09:13:20 +00:00
svenbarth
1e64c9947e Merged revision(s) 45974 from trunk:
* fix for Mantis #37355: the method name and the named parameters need to be separated by a single #0
+ added test
........

git-svn-id: branches/fixes_3_2@46278 -
2020-08-05 21:33:45 +00:00
pierre
cc46cc56e2 Merge invalid typecast fix 39988
------------------------------------------------------------------------
r39988 | pierre | 2018-10-19 23:04:55 +0000 (Fri, 19 Oct 2018) | 1 line

 Fix wrong explicit typecast that lead to memory corruption in first_sqr_real
------------------------------------------------------------------------
--- Merging r39988 into '.':
U    compiler/ninl.pas
--- Recording mergeinfo for merge of r39988 into '.':
 U   .

git-svn-id: branches/fixes_3_2@46238 -
2020-08-05 06:33:11 +00:00
pierre
ec4954111e Remove multiple calls to cg.g_check_for_fpu_exception, only keep call to cg.maybe_check_for_fpu_exception (merging error)
git-svn-id: branches/fixes_3_2@46231 -
2020-08-04 15:30:31 +00:00
pierre
d1f31fab15 Merge commits 42525 and 45891 that add
checks for fpu exceptions for arm and aarch64.
------------------------------------------------------------------------
r42525 | florian | 2019-07-28 21:06:36 +0000 (Sun, 28 Jul 2019) | 2 lines

+ software handling of exceptions on arm
* reworked software handling of exceptions so they can be check lazily
------------------------------------------------------------------------
--- Merging r42525 into '.':
U    compiler/arm/cgcpu.pas
U    compiler/arm/narmadd.pas
U    compiler/arm/narminl.pas
U    compiler/arm/narmmat.pas
U    compiler/ncgcal.pas
U    compiler/procinfo.pas
U    rtl/arm/arm.inc
--- Recording mergeinfo for merge of r42525 into '.':
 U   .
Summary of conflicts:
  Tree conflicts: 1
------------------------------------------------------------------------
r42891 | florian | 2019-09-01 17:26:11 +0000 (Sun, 01 Sep 2019) | 1 line

+ support for software floating point exception handling on AArch64 (-CE)
------------------------------------------------------------------------
--- Merging r42891 into '.':
U    compiler/aarch64/cgcpu.pas
U    compiler/aarch64/ncpuadd.pas
U    compiler/aarch64/ncpuinl.pas
U    compiler/aarch64/ncpumat.pas
U    rtl/aarch64/aarch64.inc
U    rtl/aarch64/math.inc
U    rtl/aarch64/mathu.inc
--- Recording mergeinfo for merge of r42891 into '.':
 G   .

git-svn-id: branches/fixes_3_2@46225 -
2020-08-04 10:30:50 +00:00
svenbarth
52be8c6631 Merged revision(s) 42776 from trunk:
* fix for Mantis #35981: ensure that the "specialize" token is only really used in non-Delphi modes
........

git-svn-id: branches/fixes_3_2@45994 -
2020-08-02 17:51:34 +00:00
pierre
80553119b5 Merge cs_check_fpu_exception part of commit 39813
Adapt ppudump to added entry to tlocalswitch enum type.

git-svn-id: branches/fixes_3_2@45984 -
2020-08-02 09:02:10 +00:00
pierre
43b80d4afa Merge commit #42582:
------------------------------------------------------------------------
r42582 | pierre | 2019-08-05 09:02:16 +0000 (Mon, 05 Aug 2019) | 1 line

 Do not use -Sew (turn warnings into errors) if CYCLELEVEL is equal to 1
------------------------------------------------------------------------
--- Merging r42582 into '.':
U    compiler/Makefile
U    compiler/Makefile.fpc
--- Recording mergeinfo for merge of r42582 into '.':
 U   .

git-svn-id: branches/fixes_3_2@45869 -
2020-07-28 14:51:42 +00:00
marco
775567e8f7 # revisions: 44598,45635,45757,45764,45772
git-svn-id: branches/fixes_3_2@45849 -
2020-07-24 21:09:00 +00:00
Jonas Maebe
bd4f2057e5 --- Merging r43186 into '.':
U    compiler/ngtcon.pas
A    tests/webtbs/tw36156.pp
--- Recording mergeinfo for merge of r43186 into '.':
 U   .
--- Merging r43594 into '.':
U    compiler/ncnv.pas
A    tests/test/units/cocoaall/tw36362.pp
--- Recording mergeinfo for merge of r43594 into '.':
 G   .
--- Merging r44788 into '.':
U    packages/fpmkunit/src/fpmkunit.pp
--- Recording mergeinfo for merge of r44788 into '.':
 G   .
--- Merging r45380 into '.':
G    packages/fpmkunit/src/fpmkunit.pp
--- Recording mergeinfo for merge of r45380 into '.':
 G   .
--- Merging r45673 into '.':
U    compiler/pinline.pas
A    tests/webtbs/tw37228.pp
--- Recording mergeinfo for merge of r45673 into '.':
 G   .

git-svn-id: branches/fixes_3_2@45770 -
2020-07-11 14:40:18 +00:00
svenbarth
a5f9ff9507 Merged revision(s) 45692-45694 from trunk:
* partial fix for Mantis #37253: po_hascallingconvention needs to be set as well when setting tprocdef.proccalloption
........
- partial fix for Mantis #37253: use SOCKADDR_STORAGE provided by the WinSock2 unit (which also has the correct size)
........
- remove FPC 3.0 compatibility IFDEF
........

git-svn-id: branches/fixes_3_2@45699 -
2020-06-26 21:15:22 +00:00
marco
522350a85d * fixes to 3.2.1
git-svn-id: branches/fixes_3_2@45662 -
2020-06-20 16:47:24 +00:00
marco
9b25c9bda6 # revisions: 45424
git-svn-id: branches/fixes_3_2@45428 -
2020-05-18 19:06:19 +00:00
marco
921fb2f4ec --- Merging r45410 into '.':
U    compiler/scandir.pas
A    tests/webtbs/tw37095.pp
A    tests/webtbs/tw37095d
A    tests/webtbs/tw37095d/uw37095.pp
--- Recording mergeinfo for merge of r45410 into '.':
 U   .

# revisions: 45410
r45410 | jonas | 2020-05-17 23:27:00 +0200 (Sun, 17 May 2020) | 2 lines
Changed paths:
   M /trunk/compiler/scandir.pas
   A /trunk/tests/webtbs/tw37095.pp
   A /trunk/tests/webtbs/tw37095d
   A /trunk/tests/webtbs/tw37095d/uw37095.pp

  * fixed unitdir directive for relative paths in case the current module's
    path is not set, broken by r43312 (mantis #37095)

git-svn-id: branches/fixes_3_2@45412 -
2020-05-18 06:52:17 +00:00
Jonas Maebe
68457f0dc5 - disabled cs_opt_use_load_modify_store by default, because it does not
handle LOC_(C)SUBSETREF/REG. The optimisation itself has been fixed
    in trunk (r45301-r45305), the changes are too invasive to merge to
    fixes_3_2 at this time (mantis #37018)

git-svn-id: branches/fixes_3_2@45317 -
2020-05-09 11:07:58 +00:00
Jonas Maebe
481b48eecb --- Merging r45199 into '.':
U    compiler/powerpc64/cpupara.pas
A    tests/webtbs/tw36934.pp
--- Recording mergeinfo for merge of r45199 into '.':
 U   .

git-svn-id: branches/fixes_3_2@45235 -
2020-05-03 17:39:38 +00:00
marco
85e6640553 --- Merging r43182 into '.':
U    compiler/dbgdwarf.pas
--- Recording mergeinfo for merge of r43182 into '.':
 U   .

# revisions: 43182

git-svn-id: branches/fixes_3_2@45074 -
2020-04-25 16:06:26 +00:00
svenbarth
364db85ec9 Merged revision(s) 44887 from trunk:
* fix WinAPI directive: the purpose is to present the OS' default calling convention which for Windows means stdcall (at least on those platforms that support stdcall) on other platforms it is cdecl (for now)
........

git-svn-id: branches/fixes_3_2@45070 -
2020-04-25 14:08:12 +00:00
svenbarth
c3f5006c86 Merged revision(s) 43769 from trunk:
* fixed output of line numbers/columns with -vR
........

git-svn-id: branches/fixes_3_2@44874 -
2020-04-19 21:11:37 +00:00
Jonas Maebe
947f6825c9 --- Merging r43485 into '.':
U    compiler/systems/t_bsd.pas
--- Recording mergeinfo for merge of r43485 into '.':
 U   .

git-svn-id: branches/fixes_3_2@44732 -
2020-04-16 17:09:03 +00:00
pierre
e3a9cad8d5 Merge commit #44108 into fixes branch.
------------------------------------------------------------------------
r44108 | pierre | 2020-02-03 22:35:25 +0000 (Mon, 03 Feb 2020) | 1 line

 Fix invalid typecast revealed by -CriotR option
------------------------------------------------------------------------
--- Merging r44108 into '.':
U    compiler/ncnv.pas
--- Recording mergeinfo for merge of r44108 into '.':
 U   .

git-svn-id: branches/fixes_3_2@44680 -
2020-04-10 20:57:02 +00:00
Jonas Maebe
5c417b9211 --- Merging r44395 into '.':
U    compiler/utils/fpc.pp
--- Recording mergeinfo for merge of r44395 into '.':
 U   .

git-svn-id: branches/fixes_3_2@44434 -
2020-03-30 19:01:58 +00:00
marco
8172b79be1 --- Merging r44055 into '.':
U    compiler/ncnv.pas
--- Recording mergeinfo for merge of r44055 into '.':
 U   .
--- Merging r44098 into '.':
G    compiler/ncnv.pas
--- Recording mergeinfo for merge of r44098 into '.':
 G   .
--- Merging r44099 into '.':
G    compiler/ncnv.pas
--- Recording mergeinfo for merge of r44099 into '.':
 G   .

# revisions: 44055,44098,44099

git-svn-id: branches/fixes_3_2@44223 -
2020-02-21 11:37:26 +00:00
joost
8efb6f8970 --- Merging r41184 into '.':
U    compiler/utils/samplecfg
U    utils/fpcmkcfg/fppkg.cfg
U    utils/fpcmkcfg/fppkg.inc
--- Recording mergeinfo for merge of r41184 into '.':
 U   .

git-svn-id: branches/fixes_3_2@44213 -
2020-02-18 22:27:08 +00:00
svenbarth
a1f78b242a Merged revision(s) 44082 from trunk:
* fix for Mantis #36631: it's an error if a POINT after an array is not followed by an identifier
+ added tests
........

git-svn-id: branches/fixes_3_2@44143 -
2020-02-09 19:05:38 +00:00
svenbarth
cbe9654b04 Merged revision(s) 44072-44074 from trunk:
* have the module keep track whether it was loaded from a PPU with a different endianess than the current host system
........
* for deciding whether to swap a generic's buffer use the module's flag instead of the def's
........
- remove generic_buf_needs_swapping again as that is now handled with tmodule.change_endian of the generic's module
........

git-svn-id: branches/fixes_3_2@44080 -
2020-02-01 15:06:24 +00:00
joost
8d73e8cfaa --- Merging r43831 into '.':
U    compiler/msg/errore.msg
--- Recording mergeinfo for merge of r43831 into '.':
 U   .

git-svn-id: branches/fixes_3_2@44079 -
2020-02-01 14:51:57 +00:00
pierre
7062177e1b Merge of commit r44056
------------------------------------------------------------------------
r44056 | pierre | 2020-01-28 23:43:56 +0000 (Tue, 28 Jan 2020) | 1 line

 Hopefully fix problems related to loading of ppufile generated with other endianess for generics
------------------------------------------------------------------------
--- Merging r44056 into '.':
U    compiler/pdecl.pas
U    compiler/pgenutil.pas
U    compiler/scanner.pas
U    compiler/symdef.pas
--- Recording mergeinfo for merge of r44056 into '.':
 U   .

git-svn-id: branches/fixes_3_2@44060 -
2020-01-29 21:50:42 +00:00
yury
abe5757702 Merged revision(s) 44002 from trunk:
* android: Changed additions to the linker script to prevent misalignment of the .data section. It fixes crash when linking using recent versions of LD where the "relro" option is default. Issue #35641.
* android: Always pass "-z relro" to the linker.
........

git-svn-id: branches/fixes_3_2@44044 -
2020-01-26 22:08:13 +00:00
Jonas Maebe
eeb8c747d5 --- Merging r42499 into '.':
U    packages/univint/fpmake.pp
...
--- Recording mergeinfo for merge of r42499 into '.':
 U   .
--- Merging r42500 into '.':
U    packages/cocoaint/fpmake.pp
...
--- Recording mergeinfo for merge of r42500 into '.':
 G   .
--- Merging r42548 into '.':
G    packages/univint/src/AUComponent.pas
G    packages/univint/src/AudioUnitProperties.pas
--- Recording mergeinfo for merge of r42548 into '.':
 G   .
--- Merging r43684 into '.':
U    compiler/msg/errore.msg
...
--- Recording mergeinfo for merge of r43684 into '.':
 G   .
--- Merging r43687 into '.':
G    packages/univint/src/AudioComponents.pas
U    packages/univint/src/AudioServices.pas
--- Recording mergeinfo for merge of r43687 into '.':
 G   .

git-svn-id: branches/fixes_3_2@44035 -
2020-01-26 12:48:42 +00:00
marco
d1070172f8 * merged 44008,44009, but due to conflicts ran it manually.
git-svn-id: branches/fixes_3_2@44014 -
2020-01-22 10:52:00 +00:00
Jonas Maebe
3129605195 --- Merging r40180 into '.':
U    compiler/ninl.pas
--- Recording mergeinfo for merge of r40180 into '.':
 U   .
--- Merging r40216 into '.':
U    compiler/htypechk.pas
G    compiler/ninl.pas
U    tests/tbf/tb0258.pp
A    tests/tbf/tb0259.pp
A    tests/tbf/tb0260.pp
A    tests/tbs/tb0653.pp
--- Recording mergeinfo for merge of r40216 into '.':
 G   .
--- Merging r40217 into '.':
U    compiler/systems/t_bsd.pas
--- Recording mergeinfo for merge of r40217 into '.':
 G   .
--- Merging r40218 into '.':
G    compiler/systems/t_bsd.pas
--- Recording mergeinfo for merge of r40218 into '.':
 G   .

git-svn-id: branches/fixes_3_2@44000 -
2020-01-19 19:20:31 +00:00
joost
e70c001dad --- Merging r42115 into '.':
U    compiler/i386/n386flw.pas
--- Recording mergeinfo for merge of r42115 into '.':
 U   .
--- Merging r43830 into '.':
U    compiler/i386/cpunode.pas
U    compiler/options.pas
--- Recording mergeinfo for merge of r43830 into '.':
 G   .

git-svn-id: branches/fixes_3_2@43978 -
2020-01-19 12:48:36 +00:00
marco
ab533f43aa # revisions: 43409,43473,43474,43482
git-svn-id: branches/fixes_3_2@43944 -
2020-01-14 13:28:25 +00:00
marco
fdb477df1e # revisions: 43566,43567,43568,43586,43629,43823
git-svn-id: branches/fixes_3_2@43941 -
2020-01-14 10:41:39 +00:00
florian
636c4419a0 -- Zusammenführen von r43696 in ».«:
U    compiler/systems/t_bsd.pas
U    utils/fppkg/fpmake.pp
-- Aufzeichnung der Informationen für Zusammenführung von r43696 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@43708 -
2019-12-22 21:02:15 +00:00
Jonas Maebe
c4bcb45fea --- Merging r43650 into '.':
U    compiler/i386/cpupi.pas
U    compiler/ncgcal.pas
U    compiler/ncgutil.pas
U    compiler/systems/i_bsd.pas
U    compiler/systems/i_linux.pas
U    compiler/systems.inc

git-svn-id: branches/fixes_3_2@43683 -
2019-12-14 16:20:28 +00:00
pierre
f2f4a29dbb * Merge r43604 to fix i8086-embedded utils compilation
------------------------------------------------------------------------
r43604 | pierre | 2019-11-28 14:50:55 +0000 (Thu, 28 Nov 2019) | 1 line

 Set default stack size for i8086-embedded target: 16384 for far data model, and 2048 for other memory models
------------------------------------------------------------------------
--- Merging r43604 into '.':
U    compiler/parser.pas
--- Recording mergeinfo for merge of r43604 into '.':
 U   .

git-svn-id: branches/fixes_3_2@43667 -
2019-12-09 12:32:16 +00:00
pierre
06ef4e6ca8 Merge of commits 43634 and 43635 for currency problems
------------------------------------------------------------------------
r43634 | pierre | 2019-12-03 16:05:30 +0000 (Tue, 03 Dec 2019) | 1 line

 Use PInt64(@value_currency)^ construct to avoid internal error when starting from 3.0.4 ppcarm compiler
------------------------------------------------------------------------
--- Merging r43634 into '.':
U    compiler/nadd.pas
--- Recording mergeinfo for merge of r43634 into '.':
 U   .
------------------------------------------------------------------------
r43635 | florian | 2019-12-03 19:31:50 +0000 (Tue, 03 Dec 2019) | 1 line

  * more currency fixes, should resolve #36176
------------------------------------------------------------------------
--- Merging r43635 into '.':
G    compiler/nadd.pas
U    tests/test/tcurrency1.pp
--- Recording mergeinfo for merge of r43635 into '.':
 G   .

git-svn-id: branches/fixes_3_2@43661 -
2019-12-06 16:20:37 +00:00
michael
3450e79ce2 * Merging revisions 43481 from trunk:
------------------------------------------------------------------------
    r43481 | michael | 2019-11-15 16:37:58 +0100 (Fri, 15 Nov 2019) | 1 line
    
    * Fix overflow of compiler messages  (bug id 27973)
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@43660 -
2019-12-06 10:55:45 +00:00
florian
b3dbf75026 -- Zusammenführen von r43651 in ».«:
U    compiler/systems/t_linux.pas
-- Aufzeichnung der Informationen für Zusammenführung von r43651 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@43652 -
2019-12-05 20:11:43 +00:00
pierre
3da4ccfb3e Merge r43631 to fixes branch
------------------------------------------------------------------------
--- Merging r43631 into '.':
U    compiler/nadd.pas
--- Recording mergeinfo for merge of r43631 into '.':
 U   .

git-svn-id: branches/fixes_3_2@43633 -
2019-12-02 23:20:40 +00:00
florian
532410ef1f -- Zusammenführen von r43553 in ».«:
U    compiler/ncal.pas
-- Aufzeichnung der Informationen für Zusammenführung von r43553 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@43622 -
2019-12-01 20:39:37 +00:00
florian
aadd93847f -- Zusammenführen von r43620 in ».«:
U    compiler/nadd.pas
U    compiler/ncnv.pas
U    compiler/ncon.pas
U    compiler/node.pas
A    tests/test/tcurrency1.pp
A    tests/webtbs/tw33963.pp
A    tests/webtbs/tw36179.pp
-- Aufzeichnung der Informationen für Zusammenführung von r43620 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@43621 -
2019-12-01 20:29:52 +00:00
pierre
038e5067b9 Merge r43598
------------------------------------------------------------------------
r43598 | pierre | 2019-11-27 22:15:23 +0000 (Wed, 27 Nov 2019) | 1 line

 Use defined(aarch64) instead of defined(cpuaarch64) for FPC_HAS_INTERNAL_ABS_INT64
------------------------------------------------------------------------
--- Merging r43598 into '.':
U    compiler/options.pas
--- Recording mergeinfo for merge of r43598 into '.':
 U   .

git-svn-id: branches/fixes_3_2@43606 -
2019-11-28 17:04:55 +00:00
Jonas Maebe
94e6363b34 --- Merging r43560 into '.':
U    compiler/nmat.pas
--- Recording mergeinfo for merge of r43560 into '.':
 U   .

git-svn-id: branches/fixes_3_2@43597 -
2019-11-27 19:55:07 +00:00
florian
a3be76e22f -- Zusammenführen von r43570 in ».«:
U    compiler/systems/t_linux.pas
-- Aufzeichnung der Informationen für Zusammenführung von r43570 in ».«:
 U   .

git-svn-id: branches/fixes_3_2@43571 -
2019-11-24 12:19:23 +00:00
pierre
030e93414c Merge commit r43165
------------------------------------------------------------------------
r43165 | pierre | 2019-10-10 21:57:07 +0000 (Thu, 10 Oct 2019) | 1 line

 Fix m68k errors with -CriotR option
------------------------------------------------------------------------
--- Merging r43165 into '.':
U    compiler/m68k/cgcpu.pas
U    compiler/m68k/ra68kmot.pas
--- Recording mergeinfo for merge of r43165 into '.':
 U   .

git-svn-id: branches/fixes_3_2@43516 -
2019-11-20 09:49:22 +00:00