* [Bug debug/113636] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
@ 2024-01-29 3:51 ` pinskia at gcc dot gnu.org
2024-01-29 3:53 ` [Bug debug/113636] [14 Regression] " pinskia at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29 3:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |aarch64-linux-gnu
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can reproduce this with a cross to aarch64-linux-gnu too.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
2024-01-29 3:51 ` [Bug debug/113636] " pinskia at gcc dot gnu.org
@ 2024-01-29 3:53 ` pinskia at gcc dot gnu.org
2024-01-29 3:56 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29 3:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: in |[14 Regression] internal
|dead_debug_global_find, at |compiler error: in
|valtrack.cc:275 |dead_debug_global_find, at
| |valtrack.cc:275
Target Milestone|--- |14.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
It has been failing since at least `Wed Dec 13 06:06:19 UTC 2023` for me.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
2024-01-29 3:51 ` [Bug debug/113636] " pinskia at gcc dot gnu.org
2024-01-29 3:53 ` [Bug debug/113636] [14 Regression] " pinskia at gcc dot gnu.org
@ 2024-01-29 3:56 ` pinskia at gcc dot gnu.org
2024-01-29 4:26 ` pinskia at gcc dot gnu.org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29 3:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Started between r14-5889-c9d691a7daa162d6d2092 and r14-6443-g3e93a3f09dc I
think.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (2 preceding siblings ...)
2024-01-29 3:56 ` pinskia at gcc dot gnu.org
@ 2024-01-29 4:26 ` pinskia at gcc dot gnu.org
2024-01-29 4:48 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29 4:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Just FYI (just recording on how to reproduce it once the build is finished,
needed to modify some scripts to get the command line out in the first place):
cd /home/apinski/src/upstream-full-cross/gcc/libgo/go/math/cmplx
/home/apinski/src/upstream-full-cross/gcc/objdir-stage2/./gcc/gccgo
-B/home/apinski/src/upstream-full-cross/gcc/objdir-stage2/./gcc/
-B/home/apinski/src/upstream-full-cross/install/aarch64-linux-gnu/bin/
-B/home/apinski/src/upstream-full-cross/install/aarch64-linux-gnu/lib/ -isystem
/home/apinski/src/upstream-full-cross/install/aarch64-linux-gnu/include
-isystem
/home/apinski/src/upstream-full-cross/install/aarch64-linux-gnu/sys-include -g
-O2 -L
/home/apinski/src/upstream-full-cross/gcc/objdir-stage2/aarch64-linux-gnu/libgo
-L
/home/apinski/src/upstream-full-cross/gcc/objdir-stage2/aarch64-linux-gnu/libgo/.libs
-g -fgo-pkgpath=math/cmplx -c -I . -fno-toplevel-reorder -o _gotest_.o
cmath_test.go huge_test.go abs.go asin.go conj.go exp.go isinf.go isnan.go
log.go phase.go polar.go pow.go rect.go sin.go sqrt.go tan.go
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (3 preceding siblings ...)
2024-01-29 4:26 ` pinskia at gcc dot gnu.org
@ 2024-01-29 4:48 ` pinskia at gcc dot gnu.org
2024-01-29 5:16 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29 4:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-bisection,
| |needs-reduction
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Trying to reduce this slightly.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (4 preceding siblings ...)
2024-01-29 4:48 ` pinskia at gcc dot gnu.org
@ 2024-01-29 5:16 ` pinskia at gcc dot gnu.org
2024-01-29 5:59 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29 5:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 57248
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57248&action=edit
Reduced so far
But this might still need some external modules, need to understand that ...
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (5 preceding siblings ...)
2024-01-29 5:16 ` pinskia at gcc dot gnu.org
@ 2024-01-29 5:59 ` pinskia at gcc dot gnu.org
2024-01-29 12:20 ` claudio.bantaloukas at arm dot com
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-29 5:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rsandifo at gcc dot gnu.org
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like it is early RA which exposing/causing this.
Adding `-mearly-ra=none` to the command line causes the ICE to go away.
I tried to create a C testcase but I am unable to so far. Plus it requires
debugging info so it is harder to recreate with inlining and such.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (6 preceding siblings ...)
2024-01-29 5:59 ` pinskia at gcc dot gnu.org
@ 2024-01-29 12:20 ` claudio.bantaloukas at arm dot com
2024-01-29 13:50 ` claudio.bantaloukas at arm dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: claudio.bantaloukas at arm dot com @ 2024-01-29 12:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
Claudio Bantaloukas <claudio.bantaloukas at arm dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |claudio.bantaloukas at arm dot com
--- Comment #8 from Claudio Bantaloukas <claudio.bantaloukas at arm dot com> ---
Created attachment 57250
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57250&action=edit
Further reduction
Further reduced test case
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (7 preceding siblings ...)
2024-01-29 12:20 ` claudio.bantaloukas at arm dot com
@ 2024-01-29 13:50 ` claudio.bantaloukas at arm dot com
2024-01-29 14:10 ` [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275 since r14-6290-g9f0f7d802482a8 rsandifo at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: claudio.bantaloukas at arm dot com @ 2024-01-29 13:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
--- Comment #9 from Claudio Bantaloukas <claudio.bantaloukas at arm dot com> ---
git bisect "gccgo -g -O3 -mtune=thunderxt88 -c -o __case.o case.go" starting
with $(git merge-base origin/releases/gcc-13 origin/trunk) as a first good
commit points at [9f0f7d802482a8958d6cdc72f1fe0c8549db2182] aarch64: Add an
early RA for strided registers
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275 since r14-6290-g9f0f7d802482a8
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (8 preceding siblings ...)
2024-01-29 13:50 ` claudio.bantaloukas at arm dot com
@ 2024-01-29 14:10 ` rsandifo at gcc dot gnu.org
2024-01-30 9:30 ` cvs-commit at gcc dot gnu.org
2024-01-30 9:37 ` rsandifo at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2024-01-29 14:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
Richard Sandiford <rsandifo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |rsandifo at gcc dot gnu.org
Last reconfirmed| |2024-01-29
--- Comment #10 from Richard Sandiford <rsandifo at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275 since r14-6290-g9f0f7d802482a8
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (9 preceding siblings ...)
2024-01-29 14:10 ` [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275 since r14-6290-g9f0f7d802482a8 rsandifo at gcc dot gnu.org
@ 2024-01-30 9:30 ` cvs-commit at gcc dot gnu.org
2024-01-30 9:37 ` rsandifo at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-30 9:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Richard Sandiford <rsandifo@gcc.gnu.org>:
https://gcc.gnu.org/g:aeec7d87a28ac80c64ebfa88cef3dccee3ba8efc
commit r14-8518-gaeec7d87a28ac80c64ebfa88cef3dccee3ba8efc
Author: Richard Sandiford <richard.sandiford@arm.com>
Date: Tue Jan 30 09:30:35 2024 +0000
aarch64: Handle debug references to removed registers [PR113636]
In this PR, we entered early-ra with quite a bit of dead code.
The code was duly removed (to avoid wasting registers), but there
was a dangling reference in debug instructions, which caused an
ICE later.
Fixed by resetting a debug instruction if it references a register
that is no longer needed by non-debug instructions.
gcc/
PR target/113636
* config/aarch64/aarch64-early-ra.cc (early_ra::replace_regs): Take
the containing insn as an extra parameter. Reset debug
instructions
if they reference a register that is no longer used by real insns.
(early_ra::apply_allocation): Update calls accordingly.
gcc/testsuite/
PR target/113636
* go.dg/pr113636.go: New test.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/113636] [14 Regression] internal compiler error: in dead_debug_global_find, at valtrack.cc:275 since r14-6290-g9f0f7d802482a8
2024-01-28 14:10 [Bug middle-end/113636] New: internal compiler error: in dead_debug_global_find, at valtrack.cc:275 toon at moene dot org
` (10 preceding siblings ...)
2024-01-30 9:30 ` cvs-commit at gcc dot gnu.org
@ 2024-01-30 9:37 ` rsandifo at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2024-01-30 9:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113636
Richard Sandiford <rsandifo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #12 from Richard Sandiford <rsandifo at gcc dot gnu.org> ---
Fixed. Thanks for the report and help with reproducing.
^ permalink raw reply [flat|nested] 13+ messages in thread