diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-15 18:03:20 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-15 18:03:20 +0000 |
commit | ff8084f17211551840e63aaf3445cd396a730d70 (patch) | |
tree | 9120223d7d07774768af1db5e06542723b3b83e5 /libitm | |
parent | ea30d751f1abc850d2dba7f43a94b29c1991bd5e (diff) | |
download | linaro-gcc-ff8084f17211551840e63aaf3445cd396a730d70.tar.gz linaro-gcc-ff8084f17211551840e63aaf3445cd396a730d70.tar.bz2 linaro-gcc-ff8084f17211551840e63aaf3445cd396a730d70.zip |
Make test2/test1 static in libitm.c/stackundo.c
libitm.c/stackundo.c fails with -fpic since test1 and test2 may be
preempted with -fpic. This patch makes those 2 functions static.
PR libitm/64360
* libitm.c/stackundo.c (test2): Make it static.
(test1): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219673 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm')
-rw-r--r-- | libitm/ChangeLog | 6 | ||||
-rw-r--r-- | libitm/testsuite/libitm.c/stackundo.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libitm/ChangeLog b/libitm/ChangeLog index 74e2940a9c7..e46819cf3af 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,3 +1,9 @@ +2015-01-15 H.J. Lu <hongjiu.lu@intel.com> + + PR libitm/64360 + * libitm.c/stackundo.c (test2): Make it static. + (test1): Likewise. + 2015-01-05 Jakub Jelinek <jakub@redhat.com> Update copyright years. diff --git a/libitm/testsuite/libitm.c/stackundo.c b/libitm/testsuite/libitm.c/stackundo.c index 02759d77014..c7d585ef937 100644 --- a/libitm/testsuite/libitm.c/stackundo.c +++ b/libitm/testsuite/libitm.c/stackundo.c @@ -1,10 +1,10 @@ -int __attribute__((noinline)) test2(int x[1000]) +static int __attribute__((noinline)) test2(int x[1000]) { int i; return x[12]; } -int __attribute__((noinline)) test1() +static int __attribute__((noinline)) test1() { int x[1000], i; |