public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a
@ 2021-09-10 7:58 marxin at gcc dot gnu.org
2021-09-10 7:58 ` [Bug tree-optimization/102269] " marxin at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-10 7:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
Bug ID: 102269
Summary: [12 Regression] ICE in verify_gimple_stmt since
r12-3433-ga25e0b5e6ac8a77a
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: qing.zhao at oracle dot com
Target Milestone: ---
The following crashes:
$ cat auto-var.c
void fn() { int a[0]; }
$ gcc auto-var.c -c -ftrivial-auto-var-init=zero -fdump-tree-all
auto-var.c: In function ‘fn’:
auto-var.c:1:6: internal compiler error: Segmentation fault
1 | void fn() { int a[0]; }
| ^~
0x14615f8 crash_signal
/home/marxin/Programming/gcc/gcc/toplev.c:328
0x7ffff786239f ???
../sysdeps/unix/sysv/linux/sigaction.c:10
0x14c1ffc verify_gimple_call
/home/marxin/Programming/gcc/gcc/tree-cfg.c:3466
0x14c8d13 verify_gimple_stmt
/home/marxin/Programming/gcc/gcc/tree-cfg.c:5032
0x14c92f4 verify_gimple_in_seq_2
/home/marxin/Programming/gcc/gcc/tree-cfg.c:5188
0x14c91e3 verify_gimple_in_seq_2
/home/marxin/Programming/gcc/gcc/tree-cfg.c:5161
0x14c941c verify_gimple_in_seq(gimple*)
/home/marxin/Programming/gcc/gcc/tree-cfg.c:5227
0x1028655 gimplify_body(tree_node*, bool)
/home/marxin/Programming/gcc/gcc/gimplify.c:15746
0x1028922 gimplify_function_tree(tree_node*)
/home/marxin/Programming/gcc/gcc/gimplify.c:15817
0xd543d0 cgraph_node::analyze()
/home/marxin/Programming/gcc/gcc/cgraphunit.c:670
0xd5671d analyze_functions
/home/marxin/Programming/gcc/gcc/cgraphunit.c:1234
0xd59e59 symbol_table::finalize_compilation_unit()
/home/marxin/Programming/gcc/gcc/cgraphunit.c:2508
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] 9+ messages in thread
* [Bug tree-optimization/102269] [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
@ 2021-09-10 7:58 ` marxin at gcc dot gnu.org
2021-09-10 8:17 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-10 7:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Target Milestone|--- |12.0
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-09-10
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/102269] [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
2021-09-10 7:58 ` [Bug tree-optimization/102269] " marxin at gcc dot gnu.org
@ 2021-09-10 8:17 ` rguenth at gcc dot gnu.org
2021-09-10 8:53 ` [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-10 8:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The issue is that we elide assigns of zero size.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
2021-09-10 7:58 ` [Bug tree-optimization/102269] " marxin at gcc dot gnu.org
2021-09-10 8:17 ` rguenth at gcc dot gnu.org
@ 2021-09-10 8:53 ` pinskia at gcc dot gnu.org
2021-09-10 9:11 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-10 8:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[12 Regression] ICE in |ICE in verify_gimple_stmt
|verify_gimple_stmt since |and
|r12-3433-ga25e0b5e6ac8a77a |-ftrivial-auto-var-init=zer
| |o and zero size array
Target Milestone|12.0 |---
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2021-09-10 8:53 ` [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array pinskia at gcc dot gnu.org
@ 2021-09-10 9:11 ` cvs-commit at gcc dot gnu.org
2021-09-10 9:12 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-10 9:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:1dae802b685937b1dc52e49d0641c75f3186ba14
commit r12-3445-g1dae802b685937b1dc52e49d0641c75f3186ba14
Author: Richard Biener <rguenther@suse.de>
Date: Fri Sep 10 10:17:24 2021 +0200
middle-end/102269 - avoid auto-init of empty types
This avoids initializing empty types for which we'll eventually
leave a .DEFERRED_INIT call without a LHS.
2021-09-10 Richard Biener <rguenther@suse.de>
PR middle-end/102269
* gimplify.c (is_var_need_auto_init): Empty types do not need
initialization.
* gcc.dg/pr102269.c: New testcase.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2021-09-10 9:11 ` cvs-commit at gcc dot gnu.org
@ 2021-09-10 9:12 ` rguenth at gcc dot gnu.org
2021-09-10 9:55 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-10 9:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
` (4 preceding siblings ...)
2021-09-10 9:12 ` rguenth at gcc dot gnu.org
@ 2021-09-10 9:55 ` marxin at gcc dot gnu.org
2021-09-10 14:31 ` qinzhao at gcc dot gnu.org
2021-09-11 6:41 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-10 9:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 102271 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
` (5 preceding siblings ...)
2021-09-10 9:55 ` marxin at gcc dot gnu.org
@ 2021-09-10 14:31 ` qinzhao at gcc dot gnu.org
2021-09-11 6:41 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: qinzhao at gcc dot gnu.org @ 2021-09-10 14:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
qinzhao at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |qinzhao at gcc dot gnu.org
--- Comment #5 from qinzhao at gcc dot gnu.org ---
(In reply to Richard Biener from comment #3)
> Fixed.
thanks a lot for fixing this.
Qing
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
` (6 preceding siblings ...)
2021-09-10 14:31 ` qinzhao at gcc dot gnu.org
@ 2021-09-11 6:41 ` pinskia at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-11 6:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102269
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-09-11 6:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-10 7:58 [Bug tree-optimization/102269] New: [12 Regression] ICE in verify_gimple_stmt since r12-3433-ga25e0b5e6ac8a77a marxin at gcc dot gnu.org
2021-09-10 7:58 ` [Bug tree-optimization/102269] " marxin at gcc dot gnu.org
2021-09-10 8:17 ` rguenth at gcc dot gnu.org
2021-09-10 8:53 ` [Bug tree-optimization/102269] ICE in verify_gimple_stmt and -ftrivial-auto-var-init=zero and zero size array pinskia at gcc dot gnu.org
2021-09-10 9:11 ` cvs-commit at gcc dot gnu.org
2021-09-10 9:12 ` rguenth at gcc dot gnu.org
2021-09-10 9:55 ` marxin at gcc dot gnu.org
2021-09-10 14:31 ` qinzhao at gcc dot gnu.org
2021-09-11 6:41 ` pinskia 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).