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
This commit is contained in:
parent
c23127ce74
commit
3a07b16091
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user