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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20030907-2.c] - Diff between revs 154 and 816

Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* PR optimization/12109
/* PR optimization/12109
 
 
   This would ICE in tree-ssa-dce.c:process_worklist() when
   This would ICE in tree-ssa-dce.c:process_worklist() when
   the function was expecting an SSA_NAME but found a VAR_DECL.  */
   the function was expecting an SSA_NAME but found a VAR_DECL.  */
 
 
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O -ftree-dce" } */
/* { dg-options "-O -ftree-dce" } */
 
 
void *do_it(void * dest, const void * src);
void *do_it(void * dest, const void * src);
double *create_float(void);
double *create_float(void);
 
 
void parse_rvalue(void **DataPtr)
void parse_rvalue(void **DataPtr)
{
{
  double local = 0.0;
  double local = 0.0;
  int terms = 1;
  int terms = 1;
 
 
  *DataPtr = create_float();
  *DataPtr = create_float();
 
 
  switch (terms)
  switch (terms)
    {
    {
    case 1:
    case 1:
      *((double *)*DataPtr) = local;
      *((double *)*DataPtr) = local;
      break;
      break;
 
 
    case 2:
    case 2:
      do_it(*DataPtr, &local);
      do_it(*DataPtr, &local);
      break;
      break;
    }
    }
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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