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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-pta-2.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O -fipa-pta -fdump-ipa-pta-details" } */
 
int (*fn)(int *);
 
static int __attribute__((noinline,noclone))
foo (int *p)
{
  return *p;
}
 
extern void bar (void);
 
int main()
{
  fn = foo;
  bar ();
  return 0;
}
 
/* Make sure that when a local function escapes its argument points-to sets
   are properly adjusted.  */
 
/* { dg-final { scan-ipa-dump "foo.arg0 = { ESCAPED NONLOCAL }" "pta" } } */
/* { dg-final { cleanup-ipa-dump "pta" } } */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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