]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
20091002-1_0.C: Replace -shared with -r -nostlib.
authorNick Clifton <nickc@gcc.gnu.org>
Thu, 19 Nov 2009 08:28:46 +0000 (08:28 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 19 Nov 2009 08:28:46 +0000 (08:28 +0000)
        * 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

13 files changed:
gcc/testsuite/g++.dg/lto/20081109-1_0.C
gcc/testsuite/g++.dg/lto/20081118_0.C
gcc/testsuite/g++.dg/lto/20081119-1_0.C
gcc/testsuite/g++.dg/lto/20081120-1_0.C
gcc/testsuite/g++.dg/lto/20081120-2_0.C
gcc/testsuite/g++.dg/lto/20081123_0.C
gcc/testsuite/g++.dg/lto/20081204-1_0.C
gcc/testsuite/g++.dg/lto/20081219_0.C
gcc/testsuite/g++.dg/lto/20090302_0.C
gcc/testsuite/g++.dg/lto/20090313_0.C
gcc/testsuite/g++.dg/lto/20091002-1_0.C
gcc/testsuite/g++.dg/lto/20091002-2_0.C
gcc/testsuite/g++.dg/lto/20091002-3_0.C

index 243f0ed72465bf30c915dcd9b7b03bc126c2d486..58be091ce16eff8205f29d5eee21be7858d0458f 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-lto-do link }
 // { 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 bar() { try { func(); } catch (Foo) { } };
index cbac06a474707999607eed2df39ecf8fde6e6f4d..5b5c82c5949aac26d875feccb6a9c164ed9c17b6 100644 (file)
@@ -1,5 +1,5 @@
 /* { 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.  */
 
index d38fca3d44dcc954d3754112fe8aad9751151218..5513db2f213a14e10033b4ed0ec6c23f211e2f34 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -fwhopr -shared}} } */
+/* { dg-lto-options {{-fPIC -fwhopr -r -nostdlib}} } */
 
 #include "20081119-1.h"
 
index 3cb97538945f84003110640319096f3afced0e03..6827337787cd512b9e9ba64d47453acaff472784 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-lto-do link }
-// { dg-lto-options {{-flto -shared}} }
+// { dg-lto-options {{-flto -r -nostdlib}} }
 extern "C"
 {
  extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int)
index d4e4cd43cc58abab4d41d0d84f56622b9fce9590..3efe26c0197d0a55ab36d96a22f7d93ffa10570f 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-lto-do link }
-// { dg-lto-options {{-flto -shared}} }
+// { dg-lto-options {{-flto -r -nostdlib}} }
 template < typename > struct Foo
 {
  inline void rdstate() {
index 2b182a95e42de8696c8c6249f6d66c6227e0a420..3177063b504720c0da117df285931ddbfc937c0b 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-lto-do link }
-// { dg-lto-options {{-fwhopr -shared -fPIC}} }
+// { dg-lto-options {{-fwhopr -r -nostdlib -fPIC}} }
 
 int
 f(void)
index 8c625f51e474c0debb7e23a0ced2be2b46f3549b..a94b4823072aa7ddf57021ba365bfaaa9a347876 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-lto-do link } */
-/* { dg-lto-options {{-fwhopr -fPIC -shared}} } */
+/* { dg-lto-options {{-fwhopr -fPIC -r -nostdlib}} } */
 
 /* Tests for the absence during linking of:
    lto1: error: type of '_ZTVN10__cxxabiv120__si_class_type_infoE' does
index 29ad575d0a760adaa488ae84393c73ed307a88ec..fd4c9738e1e3a85ae3946395cef5da3bfac6eedd 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-lto-do link }
 // { 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;
 extern "C"
index c71e062f31949e1c6fdca43b6a961dd7ac9bd075..21200a211243fa1e59c985bf6f9e1468f5ebb5ad 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -fwhopr -shared}} } */
+/* { dg-lto-options {{-fPIC -fwhopr -r -nostdlib}} } */
 struct Foo {
   bool Mumble();
   static void Bar() { if (foo_->Mumble()) foo_ = 0; }
index df1a94287b25e182214f8aad28bc2cf9f3c1441b..b000200c584e1c51584f397f01dd3e239b97f9ad 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-lto-do link }
 // { dg-lto-options {{-fwhopr -fPIC}} }
-// { dg-extra-ld-options "-fwhopr -shared" }
+// { dg-extra-ld-options "-fwhopr -r -nostdlib" }
 
 int X;
index ad1ecf673f50fed1c8d5d5f7956c4e0aeeaef951..050211ac355864fa3fa14ee9ef1d68dbe38b9a0c 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-lto-do link }
 // { dg-lto-options {{-fPIC -flto}} }
-// { dg-extra-ld-options "-fPIC -shared" }
+// { dg-extra-ld-options "-fPIC -r -nostdlib" }
 
 namespace std __attribute__ ((__visibility__ ("default")))
 {
index 5b000fa580ce5ac9759085825664949ab0c4da44..c150e977d141a1bba6e258321bf91a31af675e9b 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-lto-do link }
 // { dg-lto-options {{-fPIC}} }
-// { dg-extra-ld-options "-fPIC -shared" }
+// { dg-extra-ld-options "-fPIC -r -nostdlib" }
 
 class DataArray {
     int max() const    { }
index 7ed81559dd30952b46eef87e8ae8e1a66ae3cb00..3c77f4b596fcdaab92082fc2c4f8036b8c953dcc 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-lto-do link }
 // { dg-lto-options {{-fPIC}} }
-// { dg-extra-ld-options "-fPIC -shared" }
+// { dg-extra-ld-options "-fPIC -r -nostdlib" }
 
 template < class T > 
 class DataArray {