2 /* { dg-require-effective-target fstack_protector } */
3 /* { dg-options "-fstack-protector-all -O2" } */
5 extern volatile long *stack_chk_guard_ptr
;
10 return stack_chk_guard_ptr
;
13 void __attribute__ ((noipa
))
21 #define CHECK(REG) "\tcmp\tr0, " #REG "\n\tbeq\t1f\n"
26 " .globl stack_chk_guard_ptr\n"
27 "stack_chk_guard_ptr:\n"
28 " .word __stack_chk_guard\n"
29 " .weak __stack_chk_guard\n"
30 "__stack_chk_guard:\n"
34 " .type main, %function\n"