public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/60766] [4.8/4.9 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
@ 2014-04-05 0:05 ` pinskia at gcc dot gnu.org
2014-04-05 8:04 ` Joost.VandeVondele at mat dot ethz.ch
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-04-05 0:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Target| |x86_64-*-*-*
Known to work| |4.4.5
Target Milestone|--- |4.8.3
Summary|Wrong optimization with -O2 |[4.8/4.9 Regression] Wrong
| |optimization with -O2
Known to fail| |4.9.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like IV-opt is creating some overflows that were not there in the
original code.
Fails with:
g++ (GCC) 4.9.0 20131026 (experimental) [trunk revision 204095]
I have not updated my compiler since then.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.8/4.9 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
2014-04-05 0:05 ` [Bug tree-optimization/60766] [4.8/4.9 Regression] Wrong optimization with -O2 pinskia at gcc dot gnu.org
@ 2014-04-05 8:04 ` Joost.VandeVondele at mat dot ethz.ch
2014-04-06 8:20 ` netheril96 at gmail dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2014-04-05 8:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Joost.VandeVondele at mat dot ethz
| |.ch
Known to fail|4.9.0 |4.7.2, 4.8.3
--- Comment #2 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
fails for me with the (old) 4.7, 4.8 branch, works with 4.9.
gcc version 4.7.2 20120816 (prerelease) [gcc-4_7-branch revision 190437] (GCC)
: fail
gcc version 4.8.3 20140315 (prerelease) [gcc-4_8-branch revision 208588] : fail
gcc version 4.9.0 20140405 (experimental) [trunk revision 209137] (GCC) : OK
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.8/4.9 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
2014-04-05 0:05 ` [Bug tree-optimization/60766] [4.8/4.9 Regression] Wrong optimization with -O2 pinskia at gcc dot gnu.org
2014-04-05 8:04 ` Joost.VandeVondele at mat dot ethz.ch
@ 2014-04-06 8:20 ` netheril96 at gmail dot com
2014-04-06 12:44 ` mikpelinux at gmail dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: netheril96 at gmail dot com @ 2014-04-06 8:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
netheril96 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |netheril96 at gmail dot com
--- Comment #3 from netheril96 at gmail dot com ---
The bug is easily reproducible. It has the same behavior with gcc 4.7.3 on my
Ubuntu. I hope this bug can be fixed soon, since the source code is so simple,
and hence the bug may affect a lot of innocent programs.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.8/4.9 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2014-04-06 8:20 ` netheril96 at gmail dot com
@ 2014-04-06 12:44 ` mikpelinux at gmail dot com
2014-04-07 10:26 ` [Bug tree-optimization/60766] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: mikpelinux at gmail dot com @ 2014-04-06 12:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Mikael Pettersson <mikpelinux at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpelinux at gmail dot com
--- Comment #4 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Created attachment 32552
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32552&action=edit
self-contained test case, compilable as C and C++
The wrong-code reproduces for me with gcc 4.7 and 4.8 on x86_64-linux. For
trunk it was fixed by r204515, which doesn't appear to be a wrong-code fix.
Backporting r204515 to 4.8 fixes the wrong-code there too, but I haven't tested
it beyond this test case.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.7/4.8/4.9 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2014-04-06 12:44 ` mikpelinux at gmail dot com
@ 2014-04-07 10:26 ` rguenth at gcc dot gnu.org
2014-04-07 14:04 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-04-07 10:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-04-07
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.7/4.8/4.9 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2014-04-07 10:26 ` [Bug tree-optimization/60766] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
@ 2014-04-07 14:04 ` rguenth at gcc dot gnu.org
2014-04-07 14:10 ` [Bug tree-optimization/60766] [4.7/4.8 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-04-07 14:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Apr 7 14:03:55 2014
New Revision: 209190
URL: http://gcc.gnu.org/viewcvs?rev=209190&root=gcc&view=rev
Log:
2014-04-07 Richard Biener <rguenther@suse.de>
PR tree-optimization/60766
* tree-ssa-loop-ivopts.c (cand_value_at): Compute in an
unsigned type.
(may_eliminate_iv): Convert cand_value_at result to desired
type.
* gcc.dg/torture/pr60766.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr60766.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-loop-ivopts.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.7/4.8 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2014-04-07 14:04 ` rguenth at gcc dot gnu.org
@ 2014-04-07 14:10 ` rguenth at gcc dot gnu.org
2014-05-06 9:02 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-04-07 14:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
Known to work| |4.9.0
Summary|[4.7/4.8/4.9 Regression] |[4.7/4.8 Regression] Wrong
|Wrong optimization with -O2 |optimization with -O2
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.7/4.8 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2014-04-07 14:10 ` [Bug tree-optimization/60766] [4.7/4.8 " rguenth at gcc dot gnu.org
@ 2014-05-06 9:02 ` rguenth at gcc dot gnu.org
2014-05-06 9:03 ` [Bug tree-optimization/60766] [4.7 " rguenth at gcc dot gnu.org
2014-06-12 13:38 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-06 9:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue May 6 09:02:08 2014
New Revision: 210099
URL: http://gcc.gnu.org/viewcvs?rev=210099&root=gcc&view=rev
Log:
2014-05-06 Richard Biener <rguenther@suse.de>
Backport from mainline
2014-04-17 Richard Biener <rguenther@suse.de>
PR middle-end/60849
* tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
boolean results for comparisons.
* g++.dg/opt/pr60849.C: New testcase.
2014-04-07 Richard Biener <rguenther@suse.de>
PR tree-optimization/60766
* tree-ssa-loop-ivopts.c (cand_value_at): Compute in an
unsigned type.
(may_eliminate_iv): Convert cand_value_at result to desired
type.
* gcc.dg/torture/pr60766.c: New testcase.
2014-04-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/60903
* tree-ssa-loop-im.c (execute_sm_if_changed): Properly apply
IRREDUCIBLE_LOOP loop flags to newly created BBs and edges.
* gcc.dg/torture/pr60903.c: New testcase.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/opt/pr60849.C
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr60766.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr60903.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-ssa-loop-im.c
branches/gcc-4_8-branch/gcc/tree-ssa-loop-ivopts.c
branches/gcc-4_8-branch/gcc/tree-ssa-propagate.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.7 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2014-05-06 9:02 ` rguenth at gcc dot gnu.org
@ 2014-05-06 9:03 ` rguenth at gcc dot gnu.org
2014-06-12 13:38 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-06 9:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.8.3
Target Milestone|4.8.3 |4.7.4
Summary|[4.7/4.8 Regression] Wrong |[4.7 Regression] Wrong
|optimization with -O2 |optimization with -O2
Known to fail|4.8.3 |4.8.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/60766] [4.7 Regression] Wrong optimization with -O2
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2014-05-06 9:03 ` [Bug tree-optimization/60766] [4.7 " rguenth at gcc dot gnu.org
@ 2014-06-12 13:38 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|4.7.4 |4.8.3
Known to fail| |4.7.4
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for 4.8.3.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-06-12 13:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-60766-4@http.gcc.gnu.org/bugzilla/>
2014-04-05 0:05 ` [Bug tree-optimization/60766] [4.8/4.9 Regression] Wrong optimization with -O2 pinskia at gcc dot gnu.org
2014-04-05 8:04 ` Joost.VandeVondele at mat dot ethz.ch
2014-04-06 8:20 ` netheril96 at gmail dot com
2014-04-06 12:44 ` mikpelinux at gmail dot com
2014-04-07 10:26 ` [Bug tree-optimization/60766] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
2014-04-07 14:04 ` rguenth at gcc dot gnu.org
2014-04-07 14:10 ` [Bug tree-optimization/60766] [4.7/4.8 " rguenth at gcc dot gnu.org
2014-05-06 9:02 ` rguenth at gcc dot gnu.org
2014-05-06 9:03 ` [Bug tree-optimization/60766] [4.7 " rguenth at gcc dot gnu.org
2014-06-12 13:38 ` 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).