From: H.J. Lu Date: Thu, 15 Jan 2015 18:03:20 +0000 (+0000) Subject: Make test2/test1 static in libitm.c/stackundo.c X-Git-Tag: upstream/12.2.0~57442 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a07b1609142cfdccd568cfb44f8ad0dd7f0d846;p=platform%2Fupstream%2Fgcc.git 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. From-SVN: r219673 --- diff --git a/libitm/ChangeLog b/libitm/ChangeLog index 74e2940..e46819c 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,3 +1,9 @@ +2015-01-15 H.J. Lu + + PR libitm/64360 + * libitm.c/stackundo.c (test2): Make it static. + (test1): Likewise. + 2015-01-05 Jakub Jelinek Update copyright years. diff --git a/libitm/testsuite/libitm.c/stackundo.c b/libitm/testsuite/libitm.c/stackundo.c index 02759d7..c7d585e 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;