public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/95049] New: GCC never terminates with trivial input program
@ 2020-05-11 9:00 luis at luismarques dot eu
2020-05-11 9:36 ` [Bug tree-optimization/95049] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: luis at luismarques dot eu @ 2020-05-11 9:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95049
Bug ID: 95049
Summary: GCC never terminates with trivial input program
Product: gcc
Version: 9.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: luis at luismarques dot eu
Target Milestone: ---
Since at least GCC 9.1 the following trivial program results in an infinite
compilation time when compiling with -O2 or higher. This continues to happen
with GCC trunk as of the date of filing this bug.
void a() {
for (int b; b; b = !b) {
}
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/95049] GCC never terminates with trivial input program
2020-05-11 9:00 [Bug c/95049] New: GCC never terminates with trivial input program luis at luismarques dot eu
@ 2020-05-11 9:36 ` rguenth at gcc dot gnu.org
2020-05-11 11:44 ` [Bug tree-optimization/95049] [9/10/11 Regression] " rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-11 9:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95049
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |tree-optimization
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
Last reconfirmed| |2020-05-11
Status|UNCONFIRMED |ASSIGNED
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/95049] [9/10/11 Regression] GCC never terminates with trivial input program
2020-05-11 9:00 [Bug c/95049] New: GCC never terminates with trivial input program luis at luismarques dot eu
2020-05-11 9:36 ` [Bug tree-optimization/95049] " rguenth at gcc dot gnu.org
@ 2020-05-11 11:44 ` rguenth at gcc dot gnu.org
2020-05-11 15:53 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-11 11:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95049
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|GCC never terminates with |[9/10/11 Regression] GCC
|trivial input program |never terminates with
| |trivial input program
Target Milestone|--- |9.4
Priority|P3 |P2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/95049] [9/10/11 Regression] GCC never terminates with trivial input program
2020-05-11 9:00 [Bug c/95049] New: GCC never terminates with trivial input program luis at luismarques dot eu
2020-05-11 9:36 ` [Bug tree-optimization/95049] " rguenth at gcc dot gnu.org
2020-05-11 11:44 ` [Bug tree-optimization/95049] [9/10/11 Regression] " rguenth at gcc dot gnu.org
@ 2020-05-11 15:53 ` cvs-commit at gcc dot gnu.org
2020-06-23 11:06 ` [Bug tree-optimization/95049] [9/10 " cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-11 15:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95049
--- 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:84f4954c38228e4cb3e6f0b5471883e6c2523631
commit r11-277-g84f4954c38228e4cb3e6f0b5471883e6c2523631
Author: Richard Biener <rguenther@suse.de>
Date: Mon May 11 13:40:37 2020 +0200
tree-optimization/95049 - fix not terminating RPO VN iteration
This rejects lattice changes from one constant to another.
2020-05-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/95049
* tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
between different constants.
* gcc.dg/torture/pr95049.c: New testcase.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/95049] [9/10 Regression] GCC never terminates with trivial input program
2020-05-11 9:00 [Bug c/95049] New: GCC never terminates with trivial input program luis at luismarques dot eu
` (2 preceding siblings ...)
2020-05-11 15:53 ` cvs-commit at gcc dot gnu.org
@ 2020-06-23 11:06 ` cvs-commit at gcc dot gnu.org
2020-09-11 10:38 ` [Bug tree-optimization/95049] [9 " cvs-commit at gcc dot gnu.org
2020-09-11 10:39 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-23 11:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95049
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:80416aac46779533476425424e06753bac67e148
commit r10-8348-g80416aac46779533476425424e06753bac67e148
Author: Richard Biener <rguenther@suse.de>
Date: Mon May 11 13:40:37 2020 +0200
tree-optimization/95049 - fix not terminating RPO VN iteration
This rejects lattice changes from one constant to another.
2020-05-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/95049
* tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
between different constants.
* gcc.dg/torture/pr95049.c: New testcase.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/95049] [9 Regression] GCC never terminates with trivial input program
2020-05-11 9:00 [Bug c/95049] New: GCC never terminates with trivial input program luis at luismarques dot eu
` (3 preceding siblings ...)
2020-06-23 11:06 ` [Bug tree-optimization/95049] [9/10 " cvs-commit at gcc dot gnu.org
@ 2020-09-11 10:38 ` cvs-commit at gcc dot gnu.org
2020-09-11 10:39 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-09-11 10:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95049
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:0c7ae564f42b605e21001e5e6968a58cc454be9b
commit r9-8863-g0c7ae564f42b605e21001e5e6968a58cc454be9b
Author: Richard Biener <rguenther@suse.de>
Date: Mon May 11 13:40:37 2020 +0200
tree-optimization/95049 - fix not terminating RPO VN iteration
This rejects lattice changes from one constant to another.
2020-05-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/95049
* tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
between different constants.
* gcc.dg/torture/pr95049.c: New testcase.
(cherry picked from commit 84f4954c38228e4cb3e6f0b5471883e6c2523631)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/95049] [9 Regression] GCC never terminates with trivial input program
2020-05-11 9:00 [Bug c/95049] New: GCC never terminates with trivial input program luis at luismarques dot eu
` (4 preceding siblings ...)
2020-09-11 10:38 ` [Bug tree-optimization/95049] [9 " cvs-commit at gcc dot gnu.org
@ 2020-09-11 10:39 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-11 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95049
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Known to work| |9.3.1
Status|ASSIGNED |RESOLVED
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-09-11 10:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 9:00 [Bug c/95049] New: GCC never terminates with trivial input program luis at luismarques dot eu
2020-05-11 9:36 ` [Bug tree-optimization/95049] " rguenth at gcc dot gnu.org
2020-05-11 11:44 ` [Bug tree-optimization/95049] [9/10/11 Regression] " rguenth at gcc dot gnu.org
2020-05-11 15:53 ` cvs-commit at gcc dot gnu.org
2020-06-23 11:06 ` [Bug tree-optimization/95049] [9/10 " cvs-commit at gcc dot gnu.org
2020-09-11 10:38 ` [Bug tree-optimization/95049] [9 " cvs-commit at gcc dot gnu.org
2020-09-11 10:39 ` rguenth 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).