* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
@ 2023-03-30 18:59 ` piggynl at outlook dot com
2023-03-30 19:32 ` pinskia at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: piggynl at outlook dot com @ 2023-03-30 18:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #1 from Piggy NL <piggynl at outlook dot com> ---
Created attachment 54792
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54792&action=edit
Reproduce for mips64
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
2023-03-30 18:59 ` [Bug middle-end/109347] " piggynl at outlook dot com
@ 2023-03-30 19:32 ` pinskia at gcc dot gnu.org
2023-03-30 19:36 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Piggy NL from comment #0)
> The assertion was introduced in e3b3b59683c1.
r11-5002-ge3b3b59683c1e7
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
2023-03-30 18:59 ` [Bug middle-end/109347] " piggynl at outlook dot com
2023-03-30 19:32 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:36 ` pinskia at gcc dot gnu.org
2023-03-30 19:38 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
On the trunk I get:
t.c: In function ‘f’:
t.c:94:1: error: s0 cannot be used in ‘asm’ here
94 | }
| ^
First with the RISCV example.
After removing the s0 variable usage I still get the ICE.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
` (2 preceding siblings ...)
2023-03-30 19:36 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:38 ` pinskia at gcc dot gnu.org
2023-03-30 19:39 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 54793
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54793&action=edit
Fixed up riscv64 testcase
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
` (3 preceding siblings ...)
2023-03-30 19:38 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:39 ` pinskia at gcc dot gnu.org
2023-03-30 19:40 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 54794
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54794&action=edit
testcase for riscv32-elf
Here is a testcase which also fails for riscv32-elf. Note it only fails at -O0.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
` (4 preceding siblings ...)
2023-03-30 19:39 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:40 ` pinskia at gcc dot gnu.org
2023-03-30 19:42 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Oh if we add back the s0 case, it fails at -O1 and above too.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
` (5 preceding siblings ...)
2023-03-30 19:40 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:42 ` pinskia at gcc dot gnu.org
2023-03-30 19:42 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #54791|0 |1
is obsolete| |
Attachment #54793|0 |1
is obsolete| |
Attachment #54794|0 |1
is obsolete| |
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 54795
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54795&action=edit
testcase for riscv64-elf and riscv32-elf
This is new testcase fails for both riscv32 and riscv64 at -O0 and -O1.
disabling s0 for -O0 too.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
` (6 preceding siblings ...)
2023-03-30 19:42 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:42 ` pinskia at gcc dot gnu.org
2023-03-30 19:46 ` pinskia at gcc dot gnu.org
2023-03-30 19:47 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Target| |riscv32-elf, riscv64-elf,
| |mips64-eabi
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-03-30
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
` (7 preceding siblings ...)
2023-03-30 19:42 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:46 ` pinskia at gcc dot gnu.org
2023-03-30 19:47 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |7.3.0
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
MIPS64 fails even for GCC 7:
t.c: In function ‘f’:
t.c:91:1: error: unable to find a register to spill
}
^
t.c:91:1: error: this is the insn:
(insn 36 73 72 2 (set (reg:DI 200 [198])
(plus:DI (reg:DI 201 [orig:194 t9.0_1 ] [194])
(const_int 1 [0x1]))) "t.c":60 14 {*adddi3}
(expr_list:REG_DEAD (reg:DI 201 [orig:194 t9.0_1 ] [194])
(nil)))
t.c:91:1: internal compiler error: in assign_by_spills, at lra-assigns.c:1476
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/109347] [lra] Spill failure for architecture without CC
2023-03-30 18:59 [Bug middle-end/109347] New: [lra] Spill failure for architecture without CC piggynl at outlook dot com
` (8 preceding siblings ...)
2023-03-30 19:46 ` pinskia at gcc dot gnu.org
@ 2023-03-30 19:47 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-30 19:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109347
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Even for pre-LRA with reload in GCC 4.7.0:
t.c: In function ‘f’:
t.c:91:1: note: unable to find a register to spill in class ‘GR_REGS’
t.c:91:1: note: this is the insn:
(insn 33 32 34 2 (set (reg:DI 198)
(plus:DI (reg:DI 194 [ t9.0 ])
(const_int 1 [0x1]))) t.c:60 11 {*adddi3}
(expr_list:REG_DEAD (reg:DI 194 [ t9.0 ])
(nil)))
t.c:91:1: internal compiler error: in spill_failure, at reload1.c:2120
unrecognized DWARF version in .debug_info at 6
0x70e2bf _fatal_insn
/bajas/pinskia/src/toolchain-47/scripts/../src/gcc/rtl-error.c:106
0x705bab spill_failure
/bajas/pinskia/src/toolchain-47/scripts/../src/gcc/reload1.c:2120
0x705bab find_reload_regs
/bajas/pinskia/src/toolchain-47/scripts/../src/gcc/reload1.c:2046
0x705bab select_reload_regs
/bajas/pinskia/src/toolchain-47/scripts/../src/gcc/reload1.c:2066
0x705bab reload
/bajas/pinskia/src/toolchain-47/scripts/../src/gcc/reload1.c:993
0x65fe6e do_reload
/bajas/pinskia/src/toolchain-47/scripts/../src/gcc/ira.c:3733
0x65fe6e rest_of_handle_reload
/bajas/pinskia/src/toolchain-47/scripts/../src/gcc/ira.c:3824
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
So I am sure this is almost not a regression.
^ permalink raw reply [flat|nested] 11+ messages in thread