OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [struct/] [wo_prof_escape_return.c] - Diff between revs 298 and 384

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

Rev 298 Rev 384
/* { dg-options "-O3 -fno-inline -fipa-type-escape -fdump-ipa-all -fipa-struct-reorg -fwhole-program -combine" } */
/* { dg-options "-O3 -fno-inline -fipa-type-escape -fdump-ipa-all -fipa-struct-reorg -fwhole-program -combine" } */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-do run } */
/* { dg-do run } */
 
 
#include <stdlib.h>
#include <stdlib.h>
 
 
struct A {
struct A {
  int d;
  int d;
};
};
 
 
struct A a;
struct A a;
 
 
struct A foo ()
struct A foo ()
{
{
  a.d = 5;
  a.d = 5;
  return a;
  return a;
}
}
 
 
int
int
main ()
main ()
{
{
  a.d = 0;
  a.d = 0;
  foo ();
  foo ();
 
 
  if (a.d != 5)
  if (a.d != 5)
    abort ();
    abort ();
 
 
  return 0;
  return 0;
}
}
 
 
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/* { dg-final { scan-ipa-dump "is return type of function...Excluded" "ipa_struct_reorg" } } */
/* { dg-final { scan-ipa-dump "is return type of function...Excluded" "ipa_struct_reorg" } } */
/* { dg-final { cleanup-ipa-dump "*" } } */
/* { dg-final { cleanup-ipa-dump "*" } } */
 
 

powered by: WebSVN 2.1.0

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