* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
@ 2023-12-25 20:04 ` sjames at gcc dot gnu.org
2023-12-25 22:08 ` glaubitz at physik dot fu-berlin.de
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-12-25 20:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Could you try ro tun that failing command again with -save-temps appended, and
then upload qv4qobjectwrapper.ii? It should be somewhere in the builddir.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
2023-12-25 20:04 ` [Bug target/113140] " sjames at gcc dot gnu.org
@ 2023-12-25 22:08 ` glaubitz at physik dot fu-berlin.de
2023-12-26 5:18 ` pinskia at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2023-12-25 22:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #2 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Created attachment 56940
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56940&action=edit
Preprocessed source from building qt6-declarative with gcc-13
Sure, see attached.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
2023-12-25 20:04 ` [Bug target/113140] " sjames at gcc dot gnu.org
2023-12-25 22:08 ` glaubitz at physik dot fu-berlin.de
@ 2023-12-26 5:18 ` pinskia at gcc dot gnu.org
2024-01-02 14:54 ` ro at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-26 5:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The obvious workaround is -fno-delayed-branch because this is causing an ICE
during the delay slot scheduling.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (2 preceding siblings ...)
2023-12-26 5:18 ` pinskia at gcc dot gnu.org
@ 2024-01-02 14:54 ` ro at gcc dot gnu.org
2024-01-02 14:55 ` ro at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ro at gcc dot gnu.org @ 2024-01-02 14:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #4 from Rainer Orth <ro at gcc dot gnu.org> ---
Created attachment 56975
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56975&action=edit
reduced testcase
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (3 preceding siblings ...)
2024-01-02 14:54 ` ro at gcc dot gnu.org
@ 2024-01-02 14:55 ` ro at gcc dot gnu.org
2024-01-02 15:04 ` ro at CeBiTec dot Uni-Bielefeld.DE
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ro at gcc dot gnu.org @ 2024-01-02 14:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> ---
(In reply to John Paul Adrian Glaubitz from comment #2)
> Created attachment 56940 [details]
> Preprocessed source from building qt6-declarative with gcc-13
>
> Sure, see attached.
It's also helpful to include the cc1plus invocation from g++ -v; that includes
all you need to reproduce.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (4 preceding siblings ...)
2024-01-02 14:55 ` ro at gcc dot gnu.org
@ 2024-01-02 15:04 ` ro at CeBiTec dot Uni-Bielefeld.DE
2024-01-02 15:06 ` ro at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2024-01-02 15:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> ---
> It's also helpful to include the cc1plus invocation from g++ -v; that includes
> all you need to reproduce.
The full one is
cc1plus -fpreprocessed qv4qobjectwrapper.cpp.ii -mptr64 -mstack-bias
-mno-v8plus -quiet -m64 -mcpu=v9 -g -O2 -std=c++17 -version -flto=auto
-ffat-lto-objects -fstack-protector-strong -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -fno-exceptions -o qv4qobjectwrapper.cpp.s
With the original testcase and cc1plus from the gcc-13 branch, this can
be reduced to
cc1plus -fpreprocessed qv4qobjectwrapper.cpp.ii -mptr64 -mstack-bias
-mno-v8plus -quiet -m64 -mcpu=v9 -O2 -fno-exceptions -o qv4qobjectwrapper.cpp.s
while without -fno-exceptions the test compiles in this configuration.
Fortunately, I managed to reduce the testcase as attached, which SEGVs
even without -fno-exceptions.
On trunk, the original testcase compiles without issues, while the
reduced one SEGVs since gcc-8 (didn't try before) up to trunk.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (5 preceding siblings ...)
2024-01-02 15:04 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2024-01-02 15:06 ` ro at gcc dot gnu.org
2024-01-06 10:08 ` ebotcazou at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ro at gcc dot gnu.org @ 2024-01-02 15:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
Rainer Orth <ro at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu.org
Target|sparc64-linux-gnu |sparc*-*-*
Target Milestone|--- |14.0
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-01-02
Ever confirmed|0 |1
--- Comment #7 from Rainer Orth <ro at gcc dot gnu.org> ---
I forgot: the ICE also happens on sparc-sun-solaris2.11 (which I did the
testcase reduction).
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (6 preceding siblings ...)
2024-01-02 15:06 ` ro at gcc dot gnu.org
@ 2024-01-06 10:08 ` ebotcazou at gcc dot gnu.org
2024-01-08 14:02 ` [Bug target/113140] [13/14 regression] segmentation fault during delay slot scheduling rguenth at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2024-01-06 10:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |ebotcazou at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Investigating.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug target/113140] [13/14 regression] segmentation fault during delay slot scheduling
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (7 preceding siblings ...)
2024-01-06 10:08 ` ebotcazou at gcc dot gnu.org
@ 2024-01-08 14:02 ` rguenth at gcc dot gnu.org
2024-01-09 8:54 ` [Bug rtl-optimization/113140] " ebotcazou at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-08 14:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|14.0 |13.3
Summary|[13 regression] |[13/14 regression]
|segmentation fault during |segmentation fault during
|delay slot scheduling |delay slot scheduling
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/113140] [13/14 regression] segmentation fault during delay slot scheduling
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (8 preceding siblings ...)
2024-01-08 14:02 ` [Bug target/113140] [13/14 regression] segmentation fault during delay slot scheduling rguenth at gcc dot gnu.org
@ 2024-01-09 8:54 ` ebotcazou at gcc dot gnu.org
2024-01-09 9:25 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2024-01-09 8:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |rtl-optimization
--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Reclassifying.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/113140] [13/14 regression] segmentation fault during delay slot scheduling
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (9 preceding siblings ...)
2024-01-09 8:54 ` [Bug rtl-optimization/113140] " ebotcazou at gcc dot gnu.org
@ 2024-01-09 9:25 ` cvs-commit at gcc dot gnu.org
2024-01-09 9:26 ` cvs-commit at gcc dot gnu.org
2024-01-09 9:27 ` ebotcazou at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-09 9:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:f34141730266600b615b91d563a85a0b60223b3e
commit r14-7028-gf34141730266600b615b91d563a85a0b60223b3e
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Tue Jan 9 10:14:29 2024 +0100
Fix segfault during delay slot scheduling pass
This is a small regression present on the mainline and 13 branch, although
the underlying problem has probably been there for ages, in the form of a
segfault during the delay slot scheduling pass, for a function that falls
through to exit without any instruction generated for the end of function.
gcc/
PR rtl-optimization/113140
* reorg.cc (fill_slots_from_thread): If we are to branch after the
last instruction of the function, create an end label.
gcc/testsuite/
* g++.dg/opt/delay-slot-2.C: New test.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/113140] [13/14 regression] segmentation fault during delay slot scheduling
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (10 preceding siblings ...)
2024-01-09 9:25 ` cvs-commit at gcc dot gnu.org
@ 2024-01-09 9:26 ` cvs-commit at gcc dot gnu.org
2024-01-09 9:27 ` ebotcazou at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-09 9:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:6ddc3fe23ede844454584bc3699f879d3694a382
commit r13-8201-g6ddc3fe23ede844454584bc3699f879d3694a382
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Tue Jan 9 10:14:29 2024 +0100
Fix segfault during delay slot scheduling pass
This is a small regression present on the mainline and 13 branch, although
the underlying problem has probably been there for ages, in the form of a
segfault during the delay slot scheduling pass, for a function that falls
through to exit without any instruction generated for the end of function.
gcc/
PR rtl-optimization/113140
* reorg.cc (fill_slots_from_thread): If we are to branch after the
last instruction of the function, create an end label.
gcc/testsuite/
* g++.dg/opt/delay-slot-2.C: New test.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/113140] [13/14 regression] segmentation fault during delay slot scheduling
2023-12-25 19:52 [Bug target/113140] New: [SPARC] [13 Regression] Segmentation fault during RTL pass: dbr glaubitz at physik dot fu-berlin.de
` (11 preceding siblings ...)
2024-01-09 9:26 ` cvs-commit at gcc dot gnu.org
@ 2024-01-09 9:27 ` ebotcazou at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2024-01-09 9:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113140
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #12 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks for reporting the problem.
^ permalink raw reply [flat|nested] 14+ messages in thread