OSDN Git Service

* sibcall-6.c: Add no-ipa-cp argument and mark the function to be
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 May 2009 16:43:38 +0000 (16:43 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 May 2009 16:43:38 +0000 (16:43 +0000)
optimized by sibcall noinline.

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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sibcall-6.c

index 15bbef1..bbc8a9b 100644 (file)
@@ -1,5 +1,10 @@
 2009-05-15  Jan Hubicka  <jh@suse.cz>
 
+       * sibcall-6.c: Add no-ipa-cp argument and mark the function to be
+       optimized by sibcall noinline.
+
+2009-05-15  Jan Hubicka  <jh@suse.cz>
+
        * sibcall-1.c (track): Mark noinline.
        * sibcall-2.c (track): Mark noinline.
        * sibcall-3.c (track): Mark noinline.
index 6f2f218..3dba764 100644 (file)
@@ -8,7 +8,7 @@
 
 /* { dg-do run { target i?86-*-* x86_64-*-* s390*-*-* } } */
 /* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ilp32 && { ! nonpic } } } { "*" } { "" } } */
-/* { dg-options "-O2 -foptimize-sibling-calls" } */
+/* { dg-options "-O2 -foptimize-sibling-calls -fno-ipa-cp" } */
 
 extern void abort (void);
 extern void exit (int);
@@ -27,7 +27,7 @@ main ()
   exit (0);
 }
 
-int
+int __attribute__ ((noinline))
 bar (b)
      int b;
 {
@@ -37,7 +37,7 @@ bar (b)
     abort ();
 }
 
-int
+int __attribute__ ((noinline))
 foo (f)
      int f;
 {