From 4436a80d12ba748d790b0c699641a065a5599a3d Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Fri, 14 Aug 2015 09:54:54 +0000 Subject: [PATCH] [AArch64][obvious] Fix some target attribute inlining tests for -fPIC * gcc.target/aarch64/target_attr_5.c: Add static modifier to bar. * gcc.target/aarch64/target_attr_8.c: Likewise. * gcc.target/aarch64/target_attr_14.c: Likewise. From-SVN: r226889 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/aarch64/target_attr_14.c | 2 +- gcc/testsuite/gcc.target/aarch64/target_attr_5.c | 2 +- gcc/testsuite/gcc.target/aarch64/target_attr_8.c | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 377c17c3042..c4dc432d951 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-08-14 Kyrylo Tkachov + + * gcc.target/aarch64/target_attr_5.c: Add static modifier to bar. + * gcc.target/aarch64/target_attr_8.c: Likewise. + * gcc.target/aarch64/target_attr_14.c: Likewise. + 2015-08-14 Kyrylo Tkachov * gcc.target/aarch64/target_attr_1.c: Make test compile-only. diff --git a/gcc/testsuite/gcc.target/aarch64/target_attr_14.c b/gcc/testsuite/gcc.target/aarch64/target_attr_14.c index a4e481d2dc5..916b5a6f98d 100644 --- a/gcc/testsuite/gcc.target/aarch64/target_attr_14.c +++ b/gcc/testsuite/gcc.target/aarch64/target_attr_14.c @@ -4,7 +4,7 @@ /* Inlining non-strict-align functions into strict-align functions is allowed. */ -int +static int bar (int a) { return a - 6; diff --git a/gcc/testsuite/gcc.target/aarch64/target_attr_5.c b/gcc/testsuite/gcc.target/aarch64/target_attr_5.c index 4fc0709be81..9eac06eacd4 100644 --- a/gcc/testsuite/gcc.target/aarch64/target_attr_5.c +++ b/gcc/testsuite/gcc.target/aarch64/target_attr_5.c @@ -4,7 +4,7 @@ /* Make sure that bar is inlined into bam. */ __attribute__ ((target ("arch=armv8-a+nocrc"))) -int +static int bar (int a) { return a - 6; diff --git a/gcc/testsuite/gcc.target/aarch64/target_attr_8.c b/gcc/testsuite/gcc.target/aarch64/target_attr_8.c index 32d173cb25b..00ebd8c2507 100644 --- a/gcc/testsuite/gcc.target/aarch64/target_attr_8.c +++ b/gcc/testsuite/gcc.target/aarch64/target_attr_8.c @@ -5,7 +5,7 @@ Inlining should be allowed. */ __attribute__ ((target ("arch=armv8-a+nocrc"))) -int +static int bar (int a) { return a - 6; -- 2.30.2