This is approved on Forge here:
https://forge.sourceware.org/gcc/gcc-TEST/pulls/140#issuecomment-5229 so
committed it
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=bef3d986109c65ccd8b802fb5b0381979ec36389
On 3/6/2026 2:10 PM, Saurabh Jha via Sourceware Forge wrote:
Hi gcc-patches mailing list,
Saurabh Jha <[email protected]> has requested that the following
forgejo pull request
be published on the mailing list.
Created on: 2026-02-25 09:00:11+00:00
Latest update: 2026-03-06 14:10:51+00:00
Changes: 5 changed files, 16 additions, 6 deletions
Head revision: saurabh.jha/gcc-TEST ref mingw-eh commit
d1f2ffc2a37dbbbf76c73126de98deaba7e2c0ce
Base revision: gcc/gcc-TEST ref trunk commit
acf7028b79b72176f8ab2f6ebc4dbb9b5fb11a48 r16-7923-gacf7028b79b721
Merge base: acf7028b79b72176f8ab2f6ebc4dbb9b5fb11a48
Full diff url: https://forge.sourceware.org/gcc/gcc-TEST/pulls/140.diff
Discussion: https://forge.sourceware.org/gcc/gcc-TEST/pulls/140
Requested Reviewers:
Hey,
Revised version of
https://gcc.gnu.org/pipermail/gcc-patches/2026-February/709213.html.
With comments addressed from Evgeny, Jason, and Tamar.
Changes in v1 -> v2:
* Change C++ test extension from .cc to .C.
* Remove the comment about DWARF2_UNWIND_INFO from config.host.
* Instead of creating a new aarch64/t-seh-eh, move i386/t-seh-eh to
mingw/t-seh-eh and change references to t-seh-eh in config.host.
* Remove t-sjlj-eh file.
Regression tested for aarch64-linux-gnu and confirmed that it builds C++
for aarch64-w64-mingw32 target.
Ok for gcc-16?
Thanks,
Saurabh
Saurabh Jha (1):
aarch64: mingw: Fix regression in C++ support
gcc/testsuite/gcc.target/aarch64/mingw/mingw.exp | 2 +-
.../gcc.target/aarch64/mingw/minimal_new_del.C | 12 ++++++++++++
libgcc/config.host | 6 +++---
libgcc/config/aarch64/t-no-eh | 2 --
libgcc/config/{i386 => mingw}/t-seh-eh | 0
5 files changed, 16 insertions(+), 6 deletions(-)
create mode 100644 gcc/testsuite/gcc.target/aarch64/mingw/minimal_new_del.C
delete mode 100644 libgcc/config/aarch64/t-no-eh
rename libgcc/config/{i386 => mingw}/t-seh-eh (100%)
--
2.34.1
Changed files:
- A: gcc/testsuite/gcc.target/aarch64/mingw/minimal_new_del.C
- A: libgcc/config/mingw/t-seh-eh
- D: libgcc/config/aarch64/t-no-eh
- D: libgcc/config/i386/t-seh-eh
- M: gcc/testsuite/gcc.target/aarch64/mingw/mingw.exp
- M: libgcc/config.host
Saurabh Jha (1):
aarch64: mingw: Fix regression in C++ support
gcc/testsuite/gcc.target/aarch64/mingw/mingw.exp | 2 +-
.../gcc.target/aarch64/mingw/minimal_new_del.C | 12 ++++++++++++
libgcc/config.host | 6 +++---
libgcc/config/aarch64/t-no-eh | 2 --
libgcc/config/{i386 => mingw}/t-seh-eh | 0
5 files changed, 16 insertions(+), 6 deletions(-)
create mode 100644 gcc/testsuite/gcc.target/aarch64/mingw/minimal_new_del.C
delete mode 100644 libgcc/config/aarch64/t-no-eh
rename libgcc/config/{i386 => mingw}/t-seh-eh (100%)
Range-diff against v2:
1: 388cbe79fbd8 ! 1: d1f2ffc2a37d aarch64: mingw: Fix regression in C++
support
@@ Commit message
libgcc/ChangeLog:
* config.host: Set tmake_eh_file for aarch64-*-mingw* and update
- it for x86_64-*-mingw* and x86_64-*-cygwin*.
+ it for x86_64-*-mingw* and x86_64-*-cygwin*.
* config/i386/t-seh-eh: Move to...
* config/mingw/t-seh-eh: ...here.
* config/aarch64/t-no-eh: Removed.