public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed
@ 2020-11-19 7:07 zhendong.su at inf dot ethz.ch
2020-11-19 8:59 ` [Bug tree-optimization/97901] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2020-11-19 7:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
Bug ID: 97901
Summary: ICE at -Os: verify_gimple failed
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zhendong.su at inf dot ethz.ch
Target Milestone: ---
[539] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++
--disable-werror --enable-multilib --with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20201119 (experimental) [master revision
25bb75f841c:9f334878639:700337494e1b0d5ff608e1a3c77852381e264653] (GCC)
[540] %
[540] % gcctk -Os small.c
small.c: In function ‘main’:
small.c:3:5: error: invalid address operand in ‘mem_ref’
3 | int main() {
| ^~~~
a[0];
# VUSE <.MEM_22>
_5 = a[0];
during GIMPLE pass: loopdone
small.c:3:5: internal compiler error: verify_gimple failed
0xd62975 verify_gimple_in_cfg(function*, bool)
../../gcc-trunk/gcc/tree-cfg.c:5461
0xc118ee execute_function_todo
../../gcc-trunk/gcc/passes.c:2039
0xc127d2 execute_todo
../../gcc-trunk/gcc/passes.c:2093
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.
[541] %
[541] % cat small.c
int a[1], b, *c, *d;
int main() {
L:
d = c;
for (b = 0; b < 2; b++)
d = &a[0];
if (c)
goto L;
if (*d)
__builtin_abort ();
return 0;
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97901] ICE at -Os: verify_gimple failed
2020-11-19 7:07 [Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed zhendong.su at inf dot ethz.ch
@ 2020-11-19 8:59 ` rguenth at gcc dot gnu.org
2020-11-19 10:01 ` marxin at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-19 8:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
CC| |guojiufu at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2020-11-19
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look, caused by g:d87ee7f1c9cd2ffa6302cdfd0686d72e5bb7463b for
sure.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97901] ICE at -Os: verify_gimple failed
2020-11-19 7:07 [Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed zhendong.su at inf dot ethz.ch
2020-11-19 8:59 ` [Bug tree-optimization/97901] " rguenth at gcc dot gnu.org
@ 2020-11-19 10:01 ` marxin at gcc dot gnu.org
2020-11-19 10:35 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-19 10:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
Priority|P3 |P1
CC| |marxin at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97901] ICE at -Os: verify_gimple failed
2020-11-19 7:07 [Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed zhendong.su at inf dot ethz.ch
2020-11-19 8:59 ` [Bug tree-optimization/97901] " rguenth at gcc dot gnu.org
2020-11-19 10:01 ` marxin at gcc dot gnu.org
@ 2020-11-19 10:35 ` cvs-commit at gcc dot gnu.org
2020-11-19 10:36 ` rguenth at gcc dot gnu.org
2020-11-20 4:31 ` guojiufu at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-11-19 10:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
--- 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:ec383f0bdb4077b744d493d02afff5f13f33029e
commit r11-5158-gec383f0bdb4077b744d493d02afff5f13f33029e
Author: Richard Biener <rguenther@suse.de>
Date: Thu Nov 19 10:43:35 2020 +0100
tree-optimization/97901 - ICE propagating out LC PHIs
We need to fold the stmt to canonicalize MEM_REFs which means
we're back to using replace_uses_by. Which means we need dominators
to not require a CFG cleanup upthread.
2020-11-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/97901
* tree-ssa-propagate.c (clean_up_loop_closed_phi): Compute
dominators and use replace_uses_by.
* gcc.dg/torture/pr97901.c: New testcase.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/97901] ICE at -Os: verify_gimple failed
2020-11-19 7:07 [Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed zhendong.su at inf dot ethz.ch
` (2 preceding siblings ...)
2020-11-19 10:35 ` cvs-commit at gcc dot gnu.org
@ 2020-11-19 10:36 ` rguenth at gcc dot gnu.org
2020-11-20 4:31 ` guojiufu at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-19 10:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
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] 6+ messages in thread
* [Bug tree-optimization/97901] ICE at -Os: verify_gimple failed
2020-11-19 7:07 [Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed zhendong.su at inf dot ethz.ch
` (3 preceding siblings ...)
2020-11-19 10:36 ` rguenth at gcc dot gnu.org
@ 2020-11-20 4:31 ` guojiufu at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2020-11-20 4:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
--- Comment #4 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> ---
Hi Richard, thank you to handle this!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-11-20 4:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 7:07 [Bug tree-optimization/97901] New: ICE at -Os: verify_gimple failed zhendong.su at inf dot ethz.ch
2020-11-19 8:59 ` [Bug tree-optimization/97901] " rguenth at gcc dot gnu.org
2020-11-19 10:01 ` marxin at gcc dot gnu.org
2020-11-19 10:35 ` cvs-commit at gcc dot gnu.org
2020-11-19 10:36 ` rguenth at gcc dot gnu.org
2020-11-20 4:31 ` guojiufu 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).