public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/33434]  New: [4.3 Regression] -fipa-cp miscompilation
@ 2007-09-14 12:10 belyshev at depni dot sinp dot msu dot ru
  2007-09-16 10:38 ` [Bug tree-optimization/33434] " razya at il dot ibm dot com
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2007-09-14 12:10 UTC (permalink / raw)
  To: gcc-bugs

Found this while trying to bootstrap with BOOT_CFLAGS="-O3 -fipa-cp" and it
miscompiled libcpp/macro.c at the stage2.  Appeared somewhere in between
r122374 and r124593:

/* { dg-do run } */
/* { dg-options "-O3 -fipa-cp" } */

int k;

void f1 (int a, int b)
{
  if (a)
    while (b --)
      k = 1;
  else
    if (b != 1)
      __builtin_abort ();
}

int main (void)
{
  f1 (1, 1);
  if (k != 1)
    __builtin_abort ();
  return 0;
}


-- 
           Summary: [4.3 Regression] -fipa-cp miscompilation
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belyshev at depni dot sinp dot msu dot ru


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


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

end of thread, other threads:[~2007-11-29 21:58 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-14 12:10 [Bug tree-optimization/33434] New: [4.3 Regression] -fipa-cp miscompilation belyshev at depni dot sinp dot msu dot ru
2007-09-16 10:38 ` [Bug tree-optimization/33434] " razya at il dot ibm dot com
2007-09-26 19:15 ` pinskia at gcc dot gnu dot org
2007-10-10 17:59 ` mmitchel at gcc dot gnu dot org
2007-10-12 13:38 ` jakub at gcc dot gnu dot org
2007-10-19 19:52 ` janis at gcc dot gnu dot org
2007-10-20  0:05 ` pinskia at gcc dot gnu dot org
2007-10-20  0:19 ` pinskia at gcc dot gnu dot org
2007-10-28  0:31 ` pinskia at gcc dot gnu dot org
2007-10-28  0:40 ` pinskia at gcc dot gnu dot org
2007-10-28 18:57 ` [Bug tree-optimization/33434] [4.3 Regression] inlining miscompilation rguenth at gcc dot gnu dot org
2007-10-28 19:17 ` hubicka at gcc dot gnu dot org
2007-10-29 12:08 ` razya at il dot ibm dot com
2007-10-29 12:15 ` rguenther at suse dot de
2007-10-29 13:00 ` razya at il dot ibm dot com
2007-10-29 13:12 ` rguenther at suse dot de
2007-10-30  9:14 ` razya at il dot ibm dot com
2007-11-08 12:42 ` hubicka at gcc dot gnu dot org
2007-11-16 20:30 ` jakub at gcc dot gnu dot org
2007-11-23  5:33 ` pinskia at gcc dot gnu dot org
2007-11-23  5:37 ` pinskia at gcc dot gnu dot org
2007-11-29 18:39 ` jakub at gcc dot gnu dot org
2007-11-29 21:58 ` jakub at gcc dot gnu dot org
2007-11-29 21:58 ` jakub 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).