From: Kazu Hirata Date: Sun, 29 Feb 2004 15:11:12 +0000 (+0000) Subject: sibcall-3.c (recurser_void1): Make it an extern function with __attribute__((noinline)). X-Git-Tag: releases/gcc-4.0.0~9753 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d404d7c3bdcc6a05c878648dacfa9c9b644dda;p=thirdparty%2Fgcc.git sibcall-3.c (recurser_void1): Make it an extern function with __attribute__((noinline)). * gcc.dg/sibcall-3.c (recurser_void1): Make it an extern function with __attribute__((noinline)). (recurser_void2): Likewise. * gcc.dg/sibcall-4.c (recurser_void1): Likewise. (recurser_void2): Likewise. From-SVN: r78652 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1b768d027331..c4efeb98385c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2004-02-28 Kazu Hirata + + * gcc.dg/sibcall-3.c (recurser_void1): Make it an extern + function with __attribute__((noinline)). + (recurser_void2): Likewise. + * gcc.dg/sibcall-4.c (recurser_void1): Likewise. + (recurser_void2): Likewise. + 2004-02-29 Roger Sayle PR middle-end/14203 diff --git a/gcc/testsuite/gcc.dg/sibcall-3.c b/gcc/testsuite/gcc.dg/sibcall-3.c index f1e9fa1ca7f0..4806e15ee897 100644 --- a/gcc/testsuite/gcc.dg/sibcall-3.c +++ b/gcc/testsuite/gcc.dg/sibcall-3.c @@ -13,8 +13,8 @@ (except targets where the test does not work due to the return address not saved on the regular stack). */ -static void recurser_void1 (int); -static void recurser_void2 (int); +extern void recurser_void1 (int); +extern void recurser_void2 (int); extern void track (int); int main () @@ -27,7 +27,7 @@ int main () reasonably sure is to make them have the same contents (regarding the n tests). */ -static void +void __attribute__((noinline)) recurser_void1 (int n) { if (n == 0 || n == 7 || n == 8) @@ -39,7 +39,7 @@ recurser_void1 (int n) recurser_void2 (n + 1); } -static void +void __attribute__((noinline)) recurser_void2 (int n) { if (n == 0 || n == 7 || n == 8) diff --git a/gcc/testsuite/gcc.dg/sibcall-4.c b/gcc/testsuite/gcc.dg/sibcall-4.c index 1624b897874f..85b18a9e3108 100644 --- a/gcc/testsuite/gcc.dg/sibcall-4.c +++ b/gcc/testsuite/gcc.dg/sibcall-4.c @@ -13,8 +13,8 @@ (except targets where the test does not work due to the return address not saved on the regular stack). */ -static void recurser_void1 (void); -static void recurser_void2 (void); +extern void recurser_void1 (void); +extern void recurser_void2 (void); extern void track (void); int n = 0; @@ -28,7 +28,7 @@ int main () reasonably sure is to make them have the same contents (regarding the n tests). */ -static void +void __attribute__((noinline)) recurser_void1 (void) { if (n == 0 || n == 7 || n == 8) @@ -40,7 +40,7 @@ recurser_void1 (void) recurser_void2 (); } -static void +void __attribute__((noinline)) recurser_void2 (void) { if (n == 0 || n == 7 || n == 8)