20091002-1_0.C: Replace -shared with -r -nostlib.

* g++.dg/lto/20091002-1_0.C: Replace -shared with -r -nostlib.
        * g++.dg/lto/20081120-1_0.C: Likewise.
        * g++.dg/lto/20091002-2_0.C: Likewise.
        * g++.dg/lto/20081120-2_0.C: Likewise.
        * g++.dg/lto/20091002-3_0.C: Likewise.
        * g++.dg/lto/20081123_0.C: Likewise.
        * g++.dg/lto/20090313_0.C: Likewise.
        * g++.dg/lto/20081109-1_0.C: Likewise.
        * g++.dg/lto/20081219_0.C: Likewise.
        * g++.dg/lto/20081204-1_0.C: Likewise.
        * g++.dg/lto/20090302_0.C: Likewise.
        * g++.dg/lto/20081119-1_0.C: Likewise.
        * g++.dg/lto/20081118_0.C: Likewise.

From-SVN: r154325
This commit is contained in:
Nick Clifton 2009-11-19 08:28:46 +00:00
parent 9cfb4eba43
commit 87af78d462
13 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-fPIC -fwhopr}} } // { dg-lto-options {{-fPIC -fwhopr}} }
// { dg-extra-ld-options "-fPIC -fwhopr -shared -fno-exceptions" } // { dg-extra-ld-options "-fPIC -fwhopr -r -nostdlib -fno-exceptions" }
void func(); class Foo { }; void func(); class Foo { };
void bar() { try { func(); } catch (Foo) { } }; void bar() { try { func(); } catch (Foo) { } };

View File

@ -1,5 +1,5 @@
/* { dg-lto-do link } */ /* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -fwhopr -shared}} } */ /* { dg-lto-options {{-fPIC -fwhopr -r -nostdlib}} } */
/* We used to ICE because of dangling pointers. */ /* We used to ICE because of dangling pointers. */

View File

@ -1,5 +1,5 @@
/* { dg-lto-do link } */ /* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -fwhopr -shared}} } */ /* { dg-lto-options {{-fPIC -fwhopr -r -nostdlib}} } */
#include "20081119-1.h" #include "20081119-1.h"

View File

@ -1,5 +1,5 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-flto -shared}} } // { dg-lto-options {{-flto -r -nostdlib}} }
extern "C" extern "C"
{ {
extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int) extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int)

View File

@ -1,5 +1,5 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-flto -shared}} } // { dg-lto-options {{-flto -r -nostdlib}} }
template < typename > struct Foo template < typename > struct Foo
{ {
inline void rdstate() { inline void rdstate() {

View File

@ -1,5 +1,5 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-fwhopr -shared -fPIC}} } // { dg-lto-options {{-fwhopr -r -nostdlib -fPIC}} }
int int
f(void) f(void)

View File

@ -1,5 +1,5 @@
/* { dg-lto-do link } */ /* { dg-lto-do link } */
/* { dg-lto-options {{-fwhopr -fPIC -shared}} } */ /* { dg-lto-options {{-fwhopr -fPIC -r -nostdlib}} } */
/* Tests for the absence during linking of: /* Tests for the absence during linking of:
lto1: error: type of '_ZTVN10__cxxabiv120__si_class_type_infoE' does lto1: error: type of '_ZTVN10__cxxabiv120__si_class_type_infoE' does

View File

@ -1,6 +1,6 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-fPIC -fwhopr -O2}} } // { dg-lto-options {{-fPIC -fwhopr -O2}} }
// { dg-extra-ld-options "-O2 -fPIC -fwhopr -shared" } // { dg-extra-ld-options "-O2 -fPIC -fwhopr -r -nostdlib" }
typedef long int ptrdiff_t; typedef long int ptrdiff_t;
extern "C" extern "C"

View File

@ -1,5 +1,5 @@
/* { dg-lto-do link } */ /* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -fwhopr -shared}} } */ /* { dg-lto-options {{-fPIC -fwhopr -r -nostdlib}} } */
struct Foo { struct Foo {
bool Mumble(); bool Mumble();
static void Bar() { if (foo_->Mumble()) foo_ = 0; } static void Bar() { if (foo_->Mumble()) foo_ = 0; }

View File

@ -1,5 +1,5 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-fwhopr -fPIC}} } // { dg-lto-options {{-fwhopr -fPIC}} }
// { dg-extra-ld-options "-fwhopr -shared" } // { dg-extra-ld-options "-fwhopr -r -nostdlib" }
int X; int X;

View File

@ -1,6 +1,6 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-fPIC -flto}} } // { dg-lto-options {{-fPIC -flto}} }
// { dg-extra-ld-options "-fPIC -shared" } // { dg-extra-ld-options "-fPIC -r -nostdlib" }
namespace std __attribute__ ((__visibility__ ("default"))) namespace std __attribute__ ((__visibility__ ("default")))
{ {

View File

@ -1,6 +1,6 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-fPIC}} } // { dg-lto-options {{-fPIC}} }
// { dg-extra-ld-options "-fPIC -shared" } // { dg-extra-ld-options "-fPIC -r -nostdlib" }
class DataArray { class DataArray {
int max() const { } int max() const { }

View File

@ -1,6 +1,6 @@
// { dg-lto-do link } // { dg-lto-do link }
// { dg-lto-options {{-fPIC}} } // { dg-lto-options {{-fPIC}} }
// { dg-extra-ld-options "-fPIC -shared" } // { dg-extra-ld-options "-fPIC -r -nostdlib" }
template < class T > template < class T >
class DataArray { class DataArray {