public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/17861] New: loop optimizer generates wrong code
@ 2004-10-06 13:05 rguenth at tat dot physik dot uni-tuebingen dot de
  2004-10-06 13:06 ` [Bug rtl-optimization/17861] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: rguenth at tat dot physik dot uni-tuebingen dot de @ 2004-10-06 13:05 UTC (permalink / raw)
  To: gcc-bugs

extern void abort();
int foo=100;
inline int f ()
{
 foo = 0;
}
void main ()
{
 int i;
 for (i = 0; i < foo; i++)
     f ();
 if (i != 1)
   abort();
}

generates wrong code with 2.95.x through 3.4.x (but fixed / worked around on
mainline) with -O2.  Maybe someone can trigger the failure on mainline by
disabling the right tree-optimization.

See http://gcc.gnu.org/ml/gcc/2004-10/msg00172.html and followups.

-- 
           Summary: loop optimizer generates wrong code
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at tat dot physik dot uni-tuebingen dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17861


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug rtl-optimization/17861] loop optimizer generates wrong code
  2004-10-06 13:05 [Bug rtl-optimization/17861] New: loop optimizer generates wrong code rguenth at tat dot physik dot uni-tuebingen dot de
@ 2004-10-06 13:06 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-06 13:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-06 13:06 -------


*** This bug has been marked as a duplicate of 17860 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17861


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-06 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 13:05 [Bug rtl-optimization/17861] New: loop optimizer generates wrong code rguenth at tat dot physik dot uni-tuebingen dot de
2004-10-06 13:06 ` [Bug rtl-optimization/17861] " 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).