Commit 018e1b3b by Kazu Hirata Committed by Kazu Hirata

sibcall-3.c (recurser_void1, [...]): Make them static.

	* gcc.dg/sibcall-3.c (recurser_void1, recurser_void2): Make
	them static.
	* gcc.dg/sibcall-4.c (recurser_void1, recurser_void2): Likewise.

From-SVN: r79042
parent 75a65ed9
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> 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
PR c/14465 PR c/14465
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
(except targets where the test does not work due to the return address (except targets where the test does not work due to the return address
not saved on the regular stack). */ not saved on the regular stack). */
extern void recurser_void1 (int); static void recurser_void1 (int);
extern void recurser_void2 (int); static void recurser_void2 (int);
extern void track (int); extern void track (int);
int main () int main ()
...@@ -27,7 +27,7 @@ int main () ...@@ -27,7 +27,7 @@ int main ()
reasonably sure is to make them have the same contents (regarding the reasonably sure is to make them have the same contents (regarding the
n tests). */ n tests). */
void __attribute__((noinline)) static void __attribute__((noinline))
recurser_void1 (int n) recurser_void1 (int n)
{ {
if (n == 0 || n == 7 || n == 8) if (n == 0 || n == 7 || n == 8)
...@@ -39,7 +39,7 @@ recurser_void1 (int n) ...@@ -39,7 +39,7 @@ recurser_void1 (int n)
recurser_void2 (n + 1); recurser_void2 (n + 1);
} }
void __attribute__((noinline)) static void __attribute__((noinline))
recurser_void2 (int n) recurser_void2 (int n)
{ {
if (n == 0 || n == 7 || n == 8) if (n == 0 || n == 7 || n == 8)
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
(except targets where the test does not work due to the return address (except targets where the test does not work due to the return address
not saved on the regular stack). */ not saved on the regular stack). */
extern void recurser_void1 (void); static void recurser_void1 (void);
extern void recurser_void2 (void); static void recurser_void2 (void);
extern void track (void); extern void track (void);
int n = 0; int n = 0;
...@@ -28,7 +28,7 @@ int main () ...@@ -28,7 +28,7 @@ int main ()
reasonably sure is to make them have the same contents (regarding the reasonably sure is to make them have the same contents (regarding the
n tests). */ n tests). */
void __attribute__((noinline)) static void __attribute__((noinline))
recurser_void1 (void) recurser_void1 (void)
{ {
if (n == 0 || n == 7 || n == 8) if (n == 0 || n == 7 || n == 8)
...@@ -40,7 +40,7 @@ recurser_void1 (void) ...@@ -40,7 +40,7 @@ recurser_void1 (void)
recurser_void2 (); recurser_void2 ();
} }
void __attribute__((noinline)) static void __attribute__((noinline))
recurser_void2 (void) recurser_void2 (void)
{ {
if (n == 0 || n == 7 || n == 8) if (n == 0 || n == 7 || n == 8)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment