OSDN Git Service

* gcc.c-torture/execute/990208-1.c: Add noinline attributes as needed.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jan 2003 19:43:53 +0000 (19:43 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jan 2003 19:43:53 +0000 (19:43 +0000)
* gcc.c-torture/execute/eeprof-1.c:  Likewise.
* gcc.c-torture/execute/stdio-opt-*.c: Likewise.
* gcc.c-torture/execute/string-opt-*.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61563 138bc75d-0d04-0410-961f-82ee72b054a4

23 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/990208-1.c
gcc/testsuite/gcc.c-torture/execute/eeprof-1.c
gcc/testsuite/gcc.c-torture/execute/pure-1.c
gcc/testsuite/gcc.c-torture/execute/stdio-opt-1.c
gcc/testsuite/gcc.c-torture/execute/stdio-opt-2.c
gcc/testsuite/gcc.c-torture/execute/stdio-opt-3.c
gcc/testsuite/gcc.c-torture/execute/string-opt-1.c
gcc/testsuite/gcc.c-torture/execute/string-opt-10.c
gcc/testsuite/gcc.c-torture/execute/string-opt-11.c
gcc/testsuite/gcc.c-torture/execute/string-opt-12.c
gcc/testsuite/gcc.c-torture/execute/string-opt-13.c
gcc/testsuite/gcc.c-torture/execute/string-opt-14.c
gcc/testsuite/gcc.c-torture/execute/string-opt-15.c
gcc/testsuite/gcc.c-torture/execute/string-opt-16.c
gcc/testsuite/gcc.c-torture/execute/string-opt-17.c
gcc/testsuite/gcc.c-torture/execute/string-opt-2.c
gcc/testsuite/gcc.c-torture/execute/string-opt-3.c
gcc/testsuite/gcc.c-torture/execute/string-opt-4.c
gcc/testsuite/gcc.c-torture/execute/string-opt-6.c
gcc/testsuite/gcc.c-torture/execute/string-opt-7.c
gcc/testsuite/gcc.c-torture/execute/string-opt-8.c
gcc/testsuite/gcc.c-torture/execute/string-opt-9.c

index 3f53ca4..6144f2d 100644 (file)
@@ -1,3 +1,10 @@
+Tue Jan 21 18:01:35 CET 2003  Jan Hubicka  <jh@suse.cz>
+
+       * gcc.c-torture/execute/990208-1.c:  Add noinline attributes as needed.
+       * gcc.c-torture/execute/eeprof-1.c:  Likewise.
+       * gcc.c-torture/execute/stdio-opt-*.c: Likewise.
+       * gcc.c-torture/execute/string-opt-*.c: Likewise.
+
 2003-01-20  Nick Clifton  <nickc@redhat.com>
 
        * gcc.c-torture/execute/20030117-1.c: New test case.  Exposes
index 9d7d714..786e664 100644 (file)
@@ -14,16 +14,19 @@ static __inline__ void doit(void **pptr, int cond)
   }
 }
 
+__attribute__ ((noinline))
 static void f(int cond)
 {
   doit (&ptr1, cond);
 }
 
+__attribute__ ((noinline))
 static void g(int cond)
 {
   doit (&ptr2, cond);
 }
 
+__attribute__ ((noinline))
 static void bar(void);
 
 int main()
index 6dad7ec..248b8cc 100644 (file)
@@ -5,13 +5,16 @@ int entry_calls, exit_calls;
 void (*last_fn_entered)();
 void (*last_fn_exited)();
 
+__attribute__ ((noinline))
 int main () NOCHK;
 
+__attribute__ ((noinline))
 void foo ()
 {
   ASSERT (last_fn_entered == foo);
 }
 
+__attribute__ ((noinline))
 static void foo2 ()
 {
   ASSERT (entry_calls == 1 && exit_calls == 0);
@@ -22,6 +25,7 @@ static void foo2 ()
   ASSERT (last_fn_exited == foo);
 }
 
+__attribute__ ((noinline))
 void nfoo (void) NOCHK;
 void nfoo ()
 {
@@ -55,11 +59,13 @@ int main ()
 void __cyg_profile_func_enter (void (*fn)(), void (*parent)()) NOCHK;
 void __cyg_profile_func_exit (void (*fn)(), void (*parent)()) NOCHK;
 
+__attribute__ ((noinline))
 void __cyg_profile_func_enter (void (*fn)(), void (*parent)())
 {
   entry_calls++;
   last_fn_entered = fn;
 }
+__attribute__ ((noinline))
 void __cyg_profile_func_exit (void (*fn)(), void (*parent)())
 {
   exit_calls++;
index a516ed9..174477e 100644 (file)
@@ -1,3 +1,4 @@
+
 /* Origin: Kaveh Ghazi <ghazi@caip.rutgers.edu> 2002-05-27.  */
 
 /* Use a different function for each test so the link failures
index dbdc812..f5316d4 100644 (file)
@@ -58,6 +58,7 @@ int main()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static int
 fputs(const char *string, FILE *stream)
 {
index e917205..833017e 100644 (file)
@@ -45,6 +45,7 @@ int main()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static int
 printf (const char *string, ...)
 {
index fb56a3f..afc76a2 100644 (file)
@@ -57,6 +57,7 @@ int main()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static int
 fprintf (FILE *stream, const char *string, ...)
 {
index 2210a04..6b59c10 100644 (file)
@@ -37,6 +37,7 @@ int main()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static char *
 strstr(const char *s1, const char *s2)
 {
index e1a271d..dc31dc5 100644 (file)
@@ -76,6 +76,7 @@ int main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static char *
 strncat (char *s1, const char *s2, size_t n)
 {
index cad19c9..0aa1862 100644 (file)
@@ -58,6 +58,7 @@ int main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static size_t
 strspn (const char *s1, const char *s2)
 {
index b9df9c2..1d20f1e 100644 (file)
@@ -58,6 +58,7 @@ int main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static size_t
 strcspn (const char *s1, const char *s2)
 {
index 3060f91..9d79ef0 100644 (file)
@@ -49,6 +49,7 @@ main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static size_t
 strlen (const char *s)
 {
index f1b7bfb..cb0bfcb 100644 (file)
@@ -25,12 +25,14 @@ main ()
    something else.  So any remaining calls to the original function
    should abort.  */
 
+__attribute__ ((noinline))
 static void *
 memset (void *s, int c, size_t n)
 {
   abort ();
 }
 
+__attribute__ ((noinline))
 static void *
 memcpy (void *dest, const void *src, size_t n)
 {
index b08ff9b..2cf73da 100644 (file)
@@ -37,6 +37,7 @@ main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static int
 memcmp (const char *p1, const char *p2, size_t len)
 {
index a28cdb0..2948b64 100644 (file)
@@ -28,6 +28,7 @@ main (int argc)
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static int
 memcmp (const void *s1, const void *s2, size_t len)
 {
@@ -36,6 +37,7 @@ memcmp (const void *s1, const void *s2, size_t len)
 #else
 /* When not optimizing, the above tests may generate references to
    the function link_error, but should never actually call it.  */
+__attribute__ ((noinline))
 static void
 link_error ()
 {
index 47fe42d..744f146 100644 (file)
@@ -40,6 +40,7 @@ main (int argc)
 /* When optimizing, most of the above cases should be transformed into
    something else.  So any remaining calls to the original function
    for short lengths should abort.  */
+__attribute__ ((noinline))
 static void *
 memset (void *dst, int c, size_t len)
 {
index 7b9bcbf..d8ebb77 100644 (file)
@@ -46,6 +46,7 @@ int main()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static char *
 strpbrk(const char *s1, const char *s2)
 {
index 61718f2..c6f019b 100644 (file)
@@ -104,18 +104,21 @@ rindex (const char *s, int c)
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static __SIZE_TYPE__
 strlen (const char *s)
 {
   abort ();
 }
 
+__attribute__ ((noinline))
 static int
 strcmp (const char *s1, const char *s2)
 {
   abort ();
 }
 
+__attribute__ ((noinline))
 static char *
 strrchr (const char *s, int c)
 {
index d82bb69..9182eb2 100644 (file)
@@ -53,6 +53,7 @@ index (const char *s, int c)
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static char *
 strchr (const char *s, int c)
 {
index efd502f..c684dbd 100644 (file)
@@ -45,6 +45,7 @@ int main()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static char *
 strcpy (char *d, const char *s)
 {
index 144d9f1..ed1b2a4 100644 (file)
@@ -69,6 +69,7 @@ int main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static char *
 strncpy(char *s1, const char *s2, size_t n)
 {
index 0e0e7bb..8fef5b5 100644 (file)
@@ -231,6 +231,7 @@ int main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static int
 strncmp(const char *s1, const char *s2, size_t n)
 {
index ba248a0..0a3edbe 100644 (file)
@@ -46,6 +46,7 @@ int main ()
 /* When optimizing, all the above cases should be transformed into
    something else.  So any remaining calls to the original function
    should abort.  */
+__attribute__ ((noinline))
 static char *
 strcat (char *s1, const char *s2)
 {