public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures
@ 2009-05-10 19:10 hjl dot tools at gmail dot com
2009-05-10 19:51 ` [Bug middle-end/40095] " hubicka at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-10 19:10 UTC (permalink / raw)
To: gcc-bugs
Revision 147342/147343 caused:
FAIL: gcc.dg/Wunreachable-2.c (test for excess errors)
FAIL: gcc.dg/tree-ssa/flatten-2.c scan-assembler-not indirect[12][: \t\n]
on Linux/ia32 and Linux/x86-64.
--
Summary: [4.5 Regression] Revision 147342/147343 caused extra
failures
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
@ 2009-05-10 19:51 ` hubicka at gcc dot gnu dot org
2009-05-10 20:39 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2009-05-10 19:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hubicka at gcc dot gnu dot org 2009-05-10 19:51 -------
This is latent problem in -Wunreachable.
We now unroll the loop:
void bar (void)
{
int i;
for (i = 0; i < 2; i++)
if (! foo (a[i]))
return;
baz (); /* { dg-bogus "will never be executed" } */
baz ();
baz ();
and last iteration of the loop gets copied including the i<2 test and thus the
following code is rendered dead.
I guess we can either
1) Fix testcase so it is no longer unrolled again :) (or XFAIL it)
2) Mark duplicated statements in some way and suppress unreachable warning on
them
3) Teach unroller to not copy the last iteration including the code after
exit condition.
Honza
--
hubicka at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-05-10 19:51:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
2009-05-10 19:51 ` [Bug middle-end/40095] " hubicka at gcc dot gnu dot org
@ 2009-05-10 20:39 ` rguenth at gcc dot gnu dot org
2009-05-10 22:08 ` hp at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-10 20:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-05-10 20:39 -------
-Wunreachable is completely bogus anyway, I suggest to XFAIL the testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
2009-05-10 19:51 ` [Bug middle-end/40095] " hubicka at gcc dot gnu dot org
2009-05-10 20:39 ` rguenth at gcc dot gnu dot org
@ 2009-05-10 22:08 ` hp at gcc dot gnu dot org
2009-05-13 17:51 ` matz at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-05-10 22:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hp at gcc dot gnu dot org 2009-05-10 22:07 -------
cris-elf too...
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2009-05-10 22:08 ` hp at gcc dot gnu dot org
@ 2009-05-13 17:51 ` matz at gcc dot gnu dot org
2009-05-21 10:30 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: matz at gcc dot gnu dot org @ 2009-05-13 17:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from matz at gcc dot gnu dot org 2009-05-13 17:51 -------
flatten-2.c is the more important one. We leave the static function
doubleindirect1 in there, which we shouldn't.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2009-05-13 17:51 ` matz at gcc dot gnu dot org
@ 2009-05-21 10:30 ` rguenth at gcc dot gnu dot org
2009-05-21 10:53 ` rguenth at gcc dot gnu dot org
2009-06-22 0:26 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-21 10:30 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2009-05-21 10:30 ` rguenth at gcc dot gnu dot org
@ 2009-05-21 10:53 ` rguenth at gcc dot gnu dot org
2009-06-22 0:26 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-21 10:53 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/40095] [4.5 Regression] Revision 147342/147343 caused extra failures
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
` (5 preceding siblings ...)
2009-05-21 10:53 ` rguenth at gcc dot gnu dot org
@ 2009-06-22 0:26 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-22 0:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2009-06-22 00:25 -------
Both of these have been fixed for a while now.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40095
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-06-22 0:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-10 19:10 [Bug middle-end/40095] New: [4.5 Regression] Revision 147342/147343 caused extra failures hjl dot tools at gmail dot com
2009-05-10 19:51 ` [Bug middle-end/40095] " hubicka at gcc dot gnu dot org
2009-05-10 20:39 ` rguenth at gcc dot gnu dot org
2009-05-10 22:08 ` hp at gcc dot gnu dot org
2009-05-13 17:51 ` matz at gcc dot gnu dot org
2009-05-21 10:30 ` rguenth at gcc dot gnu dot org
2009-05-21 10:53 ` rguenth at gcc dot gnu dot org
2009-06-22 0:26 ` pinskia at gcc dot gnu dot 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).