1 /* builtin_frame_address(n) with n>0 has always been troublesome ...
2 especially when the S/390 packed stack layout comes into play. */
5 /* { dg-options "-O3 -fno-optimize-sibling-calls -mbackchain -mpacked-stack -msoft-float" } */
8 /* 64bit: 3 words to be saved: backchain, r14 and r15 */
9 #define SAVE_AREA_SIZE 3*8
11 /* 32bit: 4 words to be saved: backchain, r13, r14 and r15 */
12 #define SAVE_AREA_SIZE 4*4
14 extern void abort(void);
16 #define EXPAND_CHECK(n) \
17 void __attribute__((noinline)) \
20 if (p - __builtin_frame_address (n) != SAVE_AREA_SIZE) \
23 void __attribute__((noinline)) \
26 if (p - __builtin_frame_address (n) != SAVE_AREA_SIZE) \
28 foo1_##n (__builtin_frame_address (n)); \
30 void __attribute__((noinline)) \
33 foo2_##n (__builtin_frame_address (n)); \
35 void __attribute__((noinline)) \