public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23234] New: ICE in verify_flow_info()
@ 2005-08-04 17:44 uttamp at us dot ibm dot com
  2005-08-04 17:55 ` [Bug tree-optimization/23234] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: uttamp at us dot ibm dot com @ 2005-08-04 17:44 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1462 bytes --]

Following test program causes an internal compiler error,
$ cat y.c

double func ( double a, double b, double c)
{
  double x0, x1, y0, y1;
  int type = 0;
  double ar;

  if(b==0.0){
      x0 = -c/a;
      return( x0 > 1.0? 1.0 : ( x0 < 0.0 ? 0.0: x0));
    }
  if(a==0.0) {
      y0 = -c/b;
      return( y0 > 1.0? 1.0 : ( y0 < 0.0 ? 0.0: y0));
    }


  x0 = -c/a;
  y0 = -c/b;

  type = ((y0>=1.0)&&(y1>=1.0) ? 16 : type);

  switch(type){
  case 3: ar = (0.5*(y0+y1)); break;
  }

   return ar;

}

$ /opt/mline-20050802/bin/gcc -c -ffast-math -O2 y.c
$ y.c: In function âfuncâ:
y.c:2: error: control flow in the middle of basic block 0
y.c:2: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This test case works with gcc_cvs code till 20050801. This is also a reason to 
fail eon benchmark.

-- 
           Summary: ICE in verify_flow_info()
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uttamp at us dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-linux
  GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linu


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


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

end of thread, other threads:[~2005-08-09  4:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-04 17:44 [Bug tree-optimization/23234] New: ICE in verify_flow_info() uttamp at us dot ibm dot com
2005-08-04 17:55 ` [Bug tree-optimization/23234] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-04 17:57 ` uttamp at us dot ibm dot com
2005-08-06 14:34 ` pinskia at gcc dot gnu dot org
2005-08-07 15:19 ` steven at gcc dot gnu dot org
2005-08-07 15:52 ` steven at gcc dot gnu dot org
2005-08-07 16:13 ` steven at gcc dot gnu dot org
2005-08-09  3:28 ` cvs-commit at gcc dot gnu dot org
2005-08-09  4:36 ` 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).