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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr45852.c] - Rev 695

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

/* PR middle-end/45852 */
/* { dg-options "-O2 -mcmodel=small" } */
/* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && { ! { ia32 } } } } } */
/* { dg-require-visibility "" } */
 
struct S { int s; };
 
volatile struct S globvar __attribute__((visibility ("hidden"))) = { -6 };
 
void
foo (void)
{
  globvar = globvar;
}
 
/* { dg-final { scan-assembler-times "globvar.%?rip" 2 } } */
 

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.