URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [mips-sdata-1.c] - Rev 154
Go to most recent revision | Compare with Previous | Blame | View Log
/* Check that sdata-accesses are applied regardless of size or ABI. */ /* { dg-options -mexplicit-relocs } */ /* { dg-do compile { target mips*-*-elf* } } */ struct s { int x[4]; }; struct s my_struct __attribute__((__section__(".sdata"))); int f() { return my_struct.x[0]; } /* { dg-final { scan-assembler {gp_?rel\(my_struct} } } */
Go to most recent revision | Compare with Previous | Blame | View Log