OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr20920.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
/* This was causing a failure in the out of SSA pass because VRP was
/* This was causing a failure in the out of SSA pass because VRP was
   trying to insert assertions for SSA names that flow through
   trying to insert assertions for SSA names that flow through
   abnormal edges.  */
   abnormal edges.  */
void f(int) __attribute__((__noreturn__));
void f(int) __attribute__((__noreturn__));
int d(const char *);
int d(const char *);
char * j ();
char * j ();
char *
char *
foo (int x)
foo (int x)
{
{
  char *path = __null;
  char *path = __null;
  try
  try
    {
    {
      path = j ();
      path = j ();
      if (path != __null)
      if (path != __null)
        if (d (path) != 0)
        if (d (path) != 0)
          f (127);
          f (127);
      f (127);
      f (127);
    }
    }
  catch (...) { }
  catch (...) { }
  return path;
  return path;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.