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/] [gcc.dg/] [20021029-1.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
/* Test whether difference of local labels doesn't force
/* Test whether difference of local labels doesn't force
   variables into writable sections.  */
   variables into writable sections.  */
/* { dg-do compile { target fpic } } */
/* { dg-do compile { target fpic } } */
/* { dg-options "-O2 -fpic" } */
/* { dg-options "-O2 -fpic" } */
/* { dg-options "-O2 -fpic -mpt-fixed" { target sh64*-*-* } } */
/* { dg-options "-O2 -fpic -mpt-fixed" { target sh64*-*-* } } */
/* { dg-final { scan-assembler-not ".data.rel.ro.local" } } */
/* { dg-final { scan-assembler-not ".data.rel.ro.local" } } */
 
 
int foo (int a)
int foo (int a)
{
{
  static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
  static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
  void *p = &&l1 + ar[a];
  void *p = &&l1 + ar[a];
  goto *p;
  goto *p;
  l1:
  l1:
    return 1;
    return 1;
  l2:
  l2:
    return 2;
    return 2;
}
}
 
 

powered by: WebSVN 2.1.0

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