Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr56727-1.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
130:e108057fa461 | 132:d34655255c78 |
---|---|
1 /* { dg-do compile { target fpic } } */ | 1 /* { dg-do compile { target fpic } } */ |
2 /* { dg-options "-O2 -fPIC" } */ | 2 /* { dg-options "-O2 -fPIC" } */ |
3 /* { dg-final { scan-assembler-not "@(PLT|plt)" { target i?86-*-* x86_64-*-* powerpc*-*-* } } } */ | |
4 | 3 |
5 #define define_func(type) \ | 4 #define define_func(type) \ |
6 void f_ ## type (type b) { f_ ## type (0); } \ | 5 void f_ ## type (type b) { f_ ## type (0); } \ |
7 void __attribute__((noinline, noclone)) f_noinline_ ## type (type b) \ | 6 void __attribute__((noinline, noclone)) f_noinline_ ## type (type b) \ |
8 { f_noinline_ ## type (0); } | 7 { f_noinline_ ## type (0); } |
19 | 18 |
20 int __attribute__((noinline, noclone)) foo_noinline(int n) | 19 int __attribute__((noinline, noclone)) foo_noinline(int n) |
21 { | 20 { |
22 return (n == 1 || n == 2) ? 1 : foo_noinline(n-1) * foo_noinline(n-2); | 21 return (n == 1 || n == 2) ? 1 : foo_noinline(n-1) * foo_noinline(n-2); |
23 } | 22 } |
23 | |
24 /* { dg-final { scan-assembler-not "@(PLT|plt)" { target i?86-*-* x86_64-*-* } } } */ | |
25 /* { dg-final { scan-assembler-not "@(PLT|plt)" { target { powerpc*-*-* && ilp32 } } } } */ | |
26 /* { dg-final { scan-assembler-not "bl \[a-z_\]*\n\\s*nop" { target { powerpc*-*-* && lp64 } } } } */ |