annotate gcc/testsuite/gcc.dg/uninit-H-O0.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR 14204 */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-options "-Wall -Werror" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 #if defined __alpha__
kono
parents:
diff changeset
6 # define ASM __asm__("$30")
kono
parents:
diff changeset
7 #elif defined __i386__
kono
parents:
diff changeset
8 # define ASM __asm__("esp")
kono
parents:
diff changeset
9 #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) || defined (_POWER)
kono
parents:
diff changeset
10 # define ASM __asm__("r1")
kono
parents:
diff changeset
11 #elif defined __s390__
kono
parents:
diff changeset
12 # define ASM __asm__("r15")
kono
parents:
diff changeset
13 #elif defined __mips
kono
parents:
diff changeset
14 # define ASM __asm__("$sp")
kono
parents:
diff changeset
15 #elif defined __sparc__
kono
parents:
diff changeset
16 # define ASM __asm__("sp")
kono
parents:
diff changeset
17 #elif defined __ia64__
kono
parents:
diff changeset
18 # define ASM __asm__("r12")
kono
parents:
diff changeset
19 #elif defined __hppa__
kono
parents:
diff changeset
20 # define ASM __asm__("%r30")
kono
parents:
diff changeset
21 #elif defined __xtensa__
kono
parents:
diff changeset
22 # define ASM __asm__("sp")
kono
parents:
diff changeset
23 #else
kono
parents:
diff changeset
24 /* The register name should be target-dependent so for other targets,
kono
parents:
diff changeset
25 we just silence the test. */
kono
parents:
diff changeset
26 # define ASM = 0
kono
parents:
diff changeset
27 #endif
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 void *load_PCB (void)
kono
parents:
diff changeset
30 {
kono
parents:
diff changeset
31 register void *sp ASM;
kono
parents:
diff changeset
32 return sp; /* { dg-bogus "uninitialized" } */
kono
parents:
diff changeset
33 }