[llvm-commits] [llvm-gcc-4.2] r55081 - in /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg: sibcall-1.c sibcall-2.c

Dale Johannesen dalej at apple.com
Wed Aug 20 15:01:05 PDT 2008


Author: johannes
Date: Wed Aug 20 17:01:05 2008
New Revision: 55081

URL: http://llvm.org/viewvc/llvm-project?rev=55081&view=rev
Log:
Hack these tests to force inlining off.  It should be
off at -O2 anyway, and is explicitly so documented,
but I've been unable to convince people the right fix
is to make -O2 not do inlining.


Modified:
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-1.c
    llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-2.c

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-1.c?rev=55081&r1=55080&r2=55081&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-1.c Wed Aug 20 17:01:05 2008
@@ -5,7 +5,7 @@
    Contributed by Hans-Peter Nilsson  <hp at bitrange.com>  */
 
 /* { dg-do run } */
-/* { dg-options "-O2 -foptimize-sibling-calls" } */
+/* { dg-options "-O2 -foptimize-sibling-calls -fno-inline-functions" } */
 
 /* The option -foptimize-sibling-calls is the default, but serves as
    marker.  Self-recursion tail calls are optimized for all targets,

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-2.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-2.c?rev=55081&r1=55080&r2=55081&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-2.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.dg/sibcall-2.c Wed Aug 20 17:01:05 2008
@@ -5,7 +5,7 @@
    Contributed by Hans-Peter Nilsson  <hp at bitrange.com>  */
 
 /* { dg-do run } */
-/* { dg-options "-O2 -foptimize-sibling-calls" } */
+/* { dg-options "-O2 -foptimize-sibling-calls -fno-inline-functions" } */
 
 /* The option -foptimize-sibling-calls is the default, but serves as
    marker.  Self-recursion tail calls are optimized for all targets,





More information about the llvm-commits mailing list