public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103025] New: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524
@ 2021-11-01 14:58 marxin at gcc dot gnu.org
2021-11-01 14:58 ` [Bug tree-optimization/103025] " marxin at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-01 14:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103025
Bug ID: 103025
Summary: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: rguenth at gcc dot gnu.org
Target Milestone: ---
The following ICEs:
$ cat vect.i
static void __get_cpuid_count(int __leaf) {
unsigned __eax;
__asm__ __volatile__("" : "=a"(__eax));
if (__eax == 0 || __eax < __leaf)
__asm__("");
}
void main() {
int want_b;
__get_cpuid_count(7);
}
$ gcc vect.i -fno-tree-ccp -ftrivial-auto-var-init=pattern -fno-tree-dce
-fnon-call-exceptions -fno-tree-forwprop -fno-tree-fre -O1
during GIMPLE pass: reassoc
vect.i: In function ‘main’:
vect.i:7:6: internal compiler error: in insert_stmt_after, at
tree-ssa-reassoc.c:1524
7 | void main() {
| ^~~~
0x7b2b4a insert_stmt_after
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:1524
0x10d0a4b build_and_add_sum
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:1589
0x10dcebb eliminate_redundant_comparison
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:2312
0x10dcebb optimize_ops_list
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:2450
0x10e290b reassociate_bb
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:6634
0x10e2f7b reassociate_bb
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:6796
0x10e52fe do_reassoc
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:6908
0x10e52fe execute_reassoc
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:6997
0x10e52fe execute
/home/marxin/Programming/gcc/gcc/tree-ssa-reassoc.c:7038
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/103025] ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524
2021-11-01 14:58 [Bug tree-optimization/103025] New: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524 marxin at gcc dot gnu.org
@ 2021-11-01 14:58 ` marxin at gcc dot gnu.org
2021-11-02 8:30 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-01 14:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103025
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-11-01
Target Milestone|--- |12.0
CC| |qinzhao at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/103025] ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524
2021-11-01 14:58 [Bug tree-optimization/103025] New: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524 marxin at gcc dot gnu.org
2021-11-01 14:58 ` [Bug tree-optimization/103025] " marxin at gcc dot gnu.org
@ 2021-11-02 8:30 ` rguenth at gcc dot gnu.org
2021-11-02 8:34 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-02 8:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103025
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
Target Milestone|12.0 |---
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can't reproduce.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/103025] ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524
2021-11-01 14:58 [Bug tree-optimization/103025] New: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524 marxin at gcc dot gnu.org
2021-11-01 14:58 ` [Bug tree-optimization/103025] " marxin at gcc dot gnu.org
2021-11-02 8:30 ` rguenth at gcc dot gnu.org
@ 2021-11-02 8:34 ` pinskia at gcc dot gnu.org
2021-11-02 8:39 ` marxin at gcc dot gnu.org
2021-11-02 15:54 ` qinzhao at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-02 8:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103025
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I could reproduce it with r12-4642 but I think after r12-4829 it is no longer
reproducible.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/103025] ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524
2021-11-01 14:58 [Bug tree-optimization/103025] New: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524 marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2021-11-02 8:34 ` pinskia at gcc dot gnu.org
@ 2021-11-02 8:39 ` marxin at gcc dot gnu.org
2021-11-02 15:54 ` qinzhao at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-02 8:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103025
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> I could reproduce it with r12-4642 but I think after r12-4829 it is no
> longer reproducible.
Yes, it's fixed with r12-4829-g429e3b7d8bf6609d.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/103025] ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524
2021-11-01 14:58 [Bug tree-optimization/103025] New: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524 marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2021-11-02 8:39 ` marxin at gcc dot gnu.org
@ 2021-11-02 15:54 ` qinzhao at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: qinzhao at gcc dot gnu.org @ 2021-11-02 15:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103025
qinzhao at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from qinzhao at gcc dot gnu.org ---
This is fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-11-02 15:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 14:58 [Bug tree-optimization/103025] New: ICE in insert_stmt_after, at tree-ssa-reassoc.c:1524 marxin at gcc dot gnu.org
2021-11-01 14:58 ` [Bug tree-optimization/103025] " marxin at gcc dot gnu.org
2021-11-02 8:30 ` rguenth at gcc dot gnu.org
2021-11-02 8:34 ` pinskia at gcc dot gnu.org
2021-11-02 8:39 ` marxin at gcc dot gnu.org
2021-11-02 15:54 ` qinzhao at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).