3 #if defined(__arm__) || defined(__aarch64__) || defined (__mips__) || defined(__powerpc64__)
4 // Clang does not accept regparm attribute on these platforms.
5 // Fortunately, the default calling convention passes arguments in registers
9 #define REGPARM(N) __attribute__((regparm(N)))
17 void f1(int a
, struct bar
*b
) __attribute__((noinline
)) REGPARM(2);
18 void f1(int a
, struct bar
*b
)
20 b
->m2
= b
->m1
+ a
; // set breakpoint here
23 void f2(struct bar
*b
) __attribute__((noinline
)) REGPARM(1);
24 void f2(struct bar
*b
)
27 printf("%d\n", c
); // set breakpoint here
30 float f3() __attribute__((noinline
));
37 struct bar myBar
= { 3, 4 };
42 printf("%f\n", f
); // set breakpoint here