990208-1.c: Add noinline attributes as needed.
authorJan Hubicka <jh@suse.cz>
Tue, 21 Jan 2003 19:43:53 +0000 (20:43 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 21 Jan 2003 19:43:53 +0000 (19:43 +0000)
* 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.

From-SVN: r61563

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 3f53ca43469551e801efb909dfd4233ca1ed58c0..6144f2d3956f9974cfcaea3c3fbba2fe07c706d2 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 9d7d71403238418de68eabd154a9500283b18a1f..786e664f35b8495b31d3ba7e6bded935f0e2c2cf 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 6dad7ec5a73404d5486ebe00653607d93571f5fd..248b8ccbe0125a5318335b0af0f336fbedaef9bd 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 a516ed940c3ef357fb95950f3ed161af904a35eb..174477e57b3b155d1c52d8290b74a059959f433e 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 dbdc812fe6b3eb2b9114db8d482f1857729dcbda..f5316d418639177a4f53174a462cd3a79c58ec9a 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 e917205c249f9d3e2c79fbc77a00a1163ad5c8a9..833017ee5472091f722ce23ac73d5f77c452731d 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 fb56a3ff54072af6b09156974be799e87d16cdb5..afc76a2171670a03dc2f0762d51d4f44dd86bbc5 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 2210a04e29704b7df6576f531a3b1e5c7870b3b3..6b59c10f29b7a8e59aa45f4e345efe55ceb2b66a 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 e1a271d0aeb8c84d6cc79471cfde00354734aed5..dc31dc5fb7d5ef7acbb7efea3f4f13083bf4440a 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 cad19c945b29ea23f6d6dc0b690eeaf660adc86f..0aa186299df261f3db289b8bd2a488c56dd627fc 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 b9df9c2d1cb36ad233b77a5d1aebef7bc84f8375..1d20f1e6708976cbdc5bc1cbb964c9e031bb5876 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 3060f911ff3f00fc1ab10d1e3ffab80158db2340..9d79ef0d81740cb6e2fc7c41ebfd33a200c06b59 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 f1b7bfb1e5779bb6bcfaaa3c7830cf7a51e5cf2c..cb0bfcb9dff8f8dee1abb6aa473629df757ea2b2 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 b08ff9b66e5432bad25b034fbc545a3dd9708514..2cf73da151c5f015d1bcca3bcf38001e72d1a1c5 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 a28cdb04271d7fe50e36fbc5c66af4589a888397..2948b641b4ccd4996c7ee353930fba0f04646f37 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 47fe42db62865716ff137d0a64c20c76c9cd351f..744f14629270fa43f0d29afee9831a3bbb3c39d3 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 7b9bcbf873dfeb5d62b09050543160842ea92d78..d8ebb77be514aa165c7df0488e6ff5bfaed472b7 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 61718f2900f6ffa5e73bd4c4aba45c016528ecc6..c6f019b45513a7246830713d3e1d9f3ac4b18b1f 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 d82bb69a2abac98e8e0f39af50f26fea47c5e054..9182eb278387ee0c4de6baeb2aad7b1852c54597 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 efd502f7b8311187bbb50af298dce547e274f646..c684dbd4f13e4bc1ded40f8e6c05642e2dc0a02e 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 144d9f110729cebd3fdff41dabad1e5444385039..ed1b2a4095ab5f4478f787b88b25006c0c72cc93 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 0e0e7bb5fb8c1760459d822ef78eb722ab5e7e1e..8fef5b53734e0de492f867b9b57b125ac0dea2e6 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 ba248a06ad745ff2db2a1012bd66a743472eb45e..0a3edbeb99ec303675071ee7865a09b15fdfe3fa 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)
 {