diff options
Diffstat (limited to 'ld/testsuite/ld-elf/pr18718.c')
-rw-r--r-- | ld/testsuite/ld-elf/pr18718.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/pr18718.c b/ld/testsuite/ld-elf/pr18718.c index 2f4c2a3..5ec1b9e 100644 --- a/ld/testsuite/ld-elf/pr18718.c +++ b/ld/testsuite/ld-elf/pr18718.c @@ -11,7 +11,11 @@ new_foo (void) __asm__(".symver new_foo, foo@@VERS_2.0"); +#if defined(__GNUC__) && (__GNUC__ * 1000 + __GNUC_MINOR__) >= 4005 __attribute__ ((noinline, noclone)) +#else +__attribute__ ((noinline)) +#endif int bar (void) { |