Commit 173536ed by Alexander Ivchenko Committed by Kirill Yukhin

ivinline-1.C: Add target nonpic.

        * g++.dg/ipa/ivinline-1.C: Add target nonpic.
        * g++.dg/ipa/ivinline-2.C: Likewise.
        * g++.dg/ipa/ivinline-3.C: Likewise.
        * g++.dg/ipa/ivinline-4.C: Likewise.
        * g++.dg/ipa/ivinline-5.C: Likewise.
        * g++.dg/ipa/ivinline-7.C: Likewise.
        * g++.dg/ipa/ivinline-8.C: Likewise.
        * g++.dg/ipa/ivinline-9.C: Likewise.
        * g++.dg/cpp0x/noexcept03.C: Likewise.
        * gcc.dg/const-1.c: Likewise.
        * gcc.dg/ipa/pure-const-1.c: Likewise.
        * gcc.dg/noreturn-8.c: Likewise.
        * gcc.target/i386/mmx-1.c: Likewise.
        * gcc.dg/tree-ssa/ipa-split-5.c: Likewise.
        * gcc.dg/tree-ssa/loadpre6.c: Likewise.
        * gcc.c-torture/execute/pr33992.x: New file.

From-SVN: r197157
parent 2f251a05
2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
* g++.dg/ipa/ivinline-1.C: Add target nonpic.
* g++.dg/ipa/ivinline-2.C: Likewise.
* g++.dg/ipa/ivinline-3.C: Likewise.
* g++.dg/ipa/ivinline-4.C: Likewise.
* g++.dg/ipa/ivinline-5.C: Likewise.
* g++.dg/ipa/ivinline-7.C: Likewise.
* g++.dg/ipa/ivinline-8.C: Likewise.
* g++.dg/ipa/ivinline-9.C: Likewise.
* g++.dg/cpp0x/noexcept03.C: Likewise.
* gcc.dg/const-1.c: Likewise.
* gcc.dg/ipa/pure-const-1.c: Likewise.
* gcc.dg/noreturn-8.c: Likewise.
* gcc.target/i386/mmx-1.c: Likewise.
* gcc.dg/tree-ssa/ipa-split-5.c: Likewise.
* gcc.dg/tree-ssa/loadpre6.c: Likewise.
* gcc.c-torture/execute/pr33992.x: New file.
2013-03-26 Eric Botcazou <ebotcazou@adacore.com> 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
* gcc.c-torture/execute/20011008-3.c: Cap VLEN with STACK_SIZE too. * gcc.c-torture/execute/20011008-3.c: Cap VLEN with STACK_SIZE too.
......
// Runtime test for noexcept-specification. // Runtime test for noexcept-specification.
// { dg-options "-std=c++0x -Wnoexcept" } // { dg-options "-std=c++0x -Wnoexcept" }
// { dg-do run } // { dg-do run { target nonpic } }
#include <exception> #include <exception>
#include <cstdlib> #include <cstdlib>
......
/* Verify that simple virtual calls are inlined even without early /* Verify that simple virtual calls are inlined even without early
inlining. */ inlining. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
/* Verify that simple virtual calls using this pointer are inlined /* Verify that simple virtual calls using this pointer are inlined
even without early inlining.. */ even without early inlining.. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
/* Verify that simple virtual calls on an object refrence are inlined /* Verify that simple virtual calls on an object refrence are inlined
even without early inlining. */ even without early inlining. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
/* Verify that simple virtual calls are inlined even without early /* Verify that simple virtual calls are inlined even without early
inlining, even when a typecast to an ancestor is involved along the inlining, even when a typecast to an ancestor is involved along the
way. */ way. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
/* Verify that virtual call inlining does not pick a wrong method when /* Verify that virtual call inlining does not pick a wrong method when
there is a user defined ancestor in an object. */ there is a user defined ancestor in an object. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
/* Verify that simple virtual calls are inlined even without early /* Verify that simple virtual calls are inlined even without early
inlining, even when a typecast to an ancestor is involved along the inlining, even when a typecast to an ancestor is involved along the
way and that ancestor is not the first one with virtual functions. */ way and that ancestor is not the first one with virtual functions. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
/* Verify that virtual calls are inlined (ithout early inlining) even /* Verify that virtual calls are inlined (ithout early inlining) even
when their caller is itself indirectly inlined. */ when their caller is itself indirectly inlined. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
inlining, even when a typecast to an ancestor is involved along the inlining, even when a typecast to an ancestor is involved along the
way and that ancestor itself has an ancestor wich is not the way and that ancestor itself has an ancestor wich is not the
primary base class. */ primary base class. */
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void); extern "C" void abort (void);
......
load_lib target-supports.exp
if { [ check_effective_target_nonpic ] } {
return 0
}
return 1
/* { dg-do compile } */ /* { dg-do compile { target nonpic } } */
/* { dg-options "-O2 -Wsuggest-attribute=const" } */ /* { dg-options "-O2 -Wsuggest-attribute=const" } */
extern int extern_const(int a) __attribute__ ((const)); extern int extern_const(int a) __attribute__ ((const));
......
/* { dg-do compile } */ /* { dg-do compile { target nonpic } } */
/* { dg-options "-O3 -fdump-tree-local-pure-const1 -fdump-ipa-pure-const -fdump-tree-optimized -fno-early-inlining" } */ /* { dg-options "-O3 -fdump-tree-local-pure-const1 -fdump-ipa-pure-const -fdump-tree-optimized -fno-early-inlining" } */
void abort (void); void abort (void);
int error_code; int error_code;
......
/* { dg-do run } */ /* { dg-do run { target nonpic } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
void exit (int); void exit (int);
void noreturn_autodetection_failed (); void noreturn_autodetection_failed ();
......
/* { dg-do compile } */ /* { dg-do compile { target nonpic } } */
/* { dg-options "-O3 -fdump-tree-fnsplit -fdump-tree-optimized" } */ /* { dg-options "-O3 -fdump-tree-fnsplit -fdump-tree-optimized" } */
struct a {int a,b;}; struct a {int a,b;};
......
/* { dg-do compile } */ /* { dg-do compile { target nonpic } } */
/* { dg-options "-O2 -fdump-tree-pre-stats -fdump-tree-fre1" } */ /* { dg-options "-O2 -fdump-tree-pre-stats -fdump-tree-fre1" } */
#include <stddef.h> #include <stddef.h>
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-do compile { target { nonpic } } } */
/* { dg-options "-O2 -Werror-implicit-function-declaration -mmmx" } */ /* { dg-options "-O2 -Werror-implicit-function-declaration -mmmx" } */
/* Test that the intrinsics compile with optimization. All of them are /* Test that the intrinsics compile with optimization. All of them are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment