Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-H-O0.c
blob97221462c0238632fcdeb23ea18d7222d07be2e1
1 /* PR 14204 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall -Werror" } */
5 #if defined __alpha__
6 # define ASM __asm__("$30")
7 #elif defined __i386__
8 # define ASM __asm__("esp")
9 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) || defined (_POWER)
10 # define ASM __asm__("r1")
11 #elif defined __s390__
12 # define ASM __asm__("r15")
13 #elif defined __mips
14 # define ASM __asm__("$sp")
15 #elif defined __sparc__
16 # define ASM __asm__("sp")
17 #elif defined __ia64__
18 # define ASM __asm__("r12")
19 #elif defined __hppa__
20 # define ASM __asm__("%r30")
21 #elif defined __xtensa__
22 # define ASM __asm__("sp")
23 #else
24 /* The register name should be target-dependent so for other targets,
25 we just silence the test. */
26 # define ASM = 0
27 #endif
29 void *load_PCB (void)
31 register void *sp ASM;
32 return sp; /* { dg-bogus "uninitialized" } */