summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-07 00:59:25 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-07 00:59:25 +0000
commit422b912ec28e4aca826922ccbef3bba99ffc3367 (patch)
treea679a88635331226965c37fcc567501e5fe40df9
parent550b036fdc4c1034ce5f97706f0f19cb83dba84c (diff)
downloadgcc-422b912ec28e4aca826922ccbef3bba99ffc3367.tar.gz
* gcc.dg/sibcall-3.c (recurser_void1, recurser_void2): Make
them static. * gcc.dg/sibcall-4.c (recurser_void1, recurser_void2): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79042 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/sibcall-3.c8
-rw-r--r--gcc/testsuite/gcc.dg/sibcall-4.c8
3 files changed, 14 insertions, 8 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a89e534c58b..d80f1cf00c8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
+
+ * gcc.dg/sibcall-3.c (recurser_void1, recurser_void2): Make
+ them static.
+ * gcc.dg/sibcall-4.c (recurser_void1, recurser_void2): Likewise.
+
2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
PR c/14465
diff --git a/gcc/testsuite/gcc.dg/sibcall-3.c b/gcc/testsuite/gcc.dg/sibcall-3.c
index 4806e15ee89..d0908a2289c 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). */
-extern void recurser_void1 (int);
-extern void recurser_void2 (int);
+static void recurser_void1 (int);
+static 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). */
-void __attribute__((noinline))
+static 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);
}
-void __attribute__((noinline))
+static 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 85b18a9e310..3980879536c 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). */
-extern void recurser_void1 (void);
-extern void recurser_void2 (void);
+static void recurser_void1 (void);
+static 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). */
-void __attribute__((noinline))
+static void __attribute__((noinline))
recurser_void1 (void)
{
if (n == 0 || n == 7 || n == 8)
@@ -40,7 +40,7 @@ recurser_void1 (void)
recurser_void2 ();
}
-void __attribute__((noinline))
+static void __attribute__((noinline))
recurser_void2 (void)
{
if (n == 0 || n == 7 || n == 8)