function with __attribute__((noinline)).
(recurser_void2): Likewise.
* gcc.dg/sibcall-4.c (recurser_void1): Likewise.
(recurser_void2): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78652
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
+
+ * 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 <roger@eyesopen.com>
PR middle-end/14203
(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 ()
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)
recurser_void2 (n + 1);
}
-static void
+void __attribute__((noinline))
recurser_void2 (int n)
{
if (n == 0 || n == 7 || n == 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;
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)
recurser_void2 ();
}
-static void
+void __attribute__((noinline))
recurser_void2 (void)
{
if (n == 0 || n == 7 || n == 8)