aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gcc.gnu.org>2009-10-26 08:59:50 -0700
committerAndrew Pinski <pinskia@gcc.gnu.org>2009-10-26 08:59:50 -0700
commit3dd1bb6a6fa4077a2af7924bd70e3bad6f126b42 (patch)
treeee48024e0eb4cce781790886a1c511905de95588 /gcc
parenta0ff8620961065711c1edb1cb7bf4c86c8408d99 (diff)
downloadgcc-3dd1bb6a6fa4077a2af7924bd70e3bad6f126b42.zip
gcc-3dd1bb6a6fa4077a2af7924bd70e3bad6f126b42.tar.gz
gcc-3dd1bb6a6fa4077a2af7924bd70e3bad6f126b42.tar.bz2
20091014-1_0.c: Replace -shared with -r -nostlib.
2009-10-26 Andrew Pinski <pinskia@gcc.gnu.org> * gcc.dg/lto/20091014-1_0.c: Replace -shared with -r -nostlib. * gcc.dg/lto/20091016-1_0.c: Likewise. * gcc.dg/lto/20090206-1_0.c: Likewise. * gcc.dg/lto/20081120-1_0.c: Likewise. * gcc.dg/lto/20081120-2_0.c: Likewise. * gcc.dg/lto/20090116_0.c: Likewise. * gcc.dg/lto/20081126_0.c: Likewise. * gcc.dg/lto/20091013-1_0.c: Likewise. * gcc.dg/lto/20081212-1_0.c: Likewise. * gcc.dg/lto/20091015-1_0.c: Likewise. * gcc.dg/lto/20090126-1_0.c: Likewise. * gcc.dg/lto/20090126-2_0.c: Likewise. * gcc.dg/lto/20091020-1_0.c: Likewise. * gcc.dg/lto/20091020-2_0.c: Likewise. * gcc.dg/lto/20081204-1_0.c: Likewise. * gcc.dg/lto/20081204-2_0.c: Likewise. * gcc.dg/lto/20081224_0.c: Likewise. * gcc.dg/lto/20090219_0.c: Likewise. From-SVN: r153555
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog21
-rw-r--r--gcc/testsuite/gcc.dg/lto/20081120-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20081120-2_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20081126_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20081204-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20081204-2_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20081212-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20081224_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20090116_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20090126-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20090126-2_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20090206-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20090219_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20091013-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20091014-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20091015-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20091016-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20091020-1_0.c2
-rw-r--r--gcc/testsuite/gcc.dg/lto/20091020-2_0.c2
19 files changed, 39 insertions, 18 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e6e9250..7f37077 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,24 @@
+2009-10-26 Andrew Pinski <pinskia@gcc.gnu.org>
+
+ * gcc.dg/lto/20091014-1_0.c: Replace -shared with -r -nostlib.
+ * gcc.dg/lto/20091016-1_0.c: Likewise.
+ * gcc.dg/lto/20090206-1_0.c: Likewise.
+ * gcc.dg/lto/20081120-1_0.c: Likewise.
+ * gcc.dg/lto/20081120-2_0.c: Likewise.
+ * gcc.dg/lto/20090116_0.c: Likewise.
+ * gcc.dg/lto/20081126_0.c: Likewise.
+ * gcc.dg/lto/20091013-1_0.c: Likewise.
+ * gcc.dg/lto/20081212-1_0.c: Likewise.
+ * gcc.dg/lto/20091015-1_0.c: Likewise.
+ * gcc.dg/lto/20090126-1_0.c: Likewise.
+ * gcc.dg/lto/20090126-2_0.c: Likewise.
+ * gcc.dg/lto/20091020-1_0.c: Likewise.
+ * gcc.dg/lto/20091020-2_0.c: Likewise.
+ * gcc.dg/lto/20081204-1_0.c: Likewise.
+ * gcc.dg/lto/20081204-2_0.c: Likewise.
+ * gcc.dg/lto/20081224_0.c: Likewise.
+ * gcc.dg/lto/20090219_0.c: Likewise.
+
2009-10-26 Dodji Seketeli <dodji@redhat.com>
PR c++/41020
diff --git a/gcc/testsuite/gcc.dg/lto/20081120-1_0.c b/gcc/testsuite/gcc.dg/lto/20081120-1_0.c
index c3511960..e842b37 100644
--- a/gcc/testsuite/gcc.dg/lto/20081120-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20081120-1_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-flto -shared}} } */
+/* { dg-lto-options {{-flto -r -nostdlib}} } */
extern int stat(void) __asm__("" "stat64");
extern inline int stat(void) { }
static void foo(void) { stat(); }
diff --git a/gcc/testsuite/gcc.dg/lto/20081120-2_0.c b/gcc/testsuite/gcc.dg/lto/20081120-2_0.c
index ff8a9a4..19c4ab3 100644
--- a/gcc/testsuite/gcc.dg/lto/20081120-2_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20081120-2_0.c
@@ -1,3 +1,3 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fwhopr -shared}} } */
+/* { dg-lto-options {{-fwhopr -r -nostdlib}} } */
void bar(void) {}
diff --git a/gcc/testsuite/gcc.dg/lto/20081126_0.c b/gcc/testsuite/gcc.dg/lto/20081126_0.c
index 9d0bb14..9243da9 100644
--- a/gcc/testsuite/gcc.dg/lto/20081126_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20081126_0.c
@@ -1,6 +1,6 @@
/* { dg-lto-do link } */
/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
-/* { dg-lto-options {{-flto -shared}} } */
+/* { dg-lto-options {{-flto -r -nostdlib}} } */
int f(void) {
register int ri asm("edi");
diff --git a/gcc/testsuite/gcc.dg/lto/20081204-1_0.c b/gcc/testsuite/gcc.dg/lto/20081204-1_0.c
index 9259808..5952b07 100644
--- a/gcc/testsuite/gcc.dg/lto/20081204-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20081204-1_0.c
@@ -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 'i' does not match original declaration */
diff --git a/gcc/testsuite/gcc.dg/lto/20081204-2_0.c b/gcc/testsuite/gcc.dg/lto/20081204-2_0.c
index 241ac5d..5344605 100644
--- a/gcc/testsuite/gcc.dg/lto/20081204-2_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20081204-2_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
-/* { dg-lto-options {{-w -flto -fPIC -shared}} } */
+/* { dg-lto-options {{-w -flto -fPIC -r -nostdlib}} } */
register int ri asm("edi");
diff --git a/gcc/testsuite/gcc.dg/lto/20081212-1_0.c b/gcc/testsuite/gcc.dg/lto/20081212-1_0.c
index a19bff1..acc0018 100644
--- a/gcc/testsuite/gcc.dg/lto/20081212-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20081212-1_0.c
@@ -1,4 +1,4 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-shared}} } */
+/* { dg-lto-options {{-r -nostdlib}} } */
int exported_var = 42;
/* { dg-final { scan-symbol "exported_var" } } */
diff --git a/gcc/testsuite/gcc.dg/lto/20081224_0.c b/gcc/testsuite/gcc.dg/lto/20081224_0.c
index c146115..9c784fe 100644
--- a/gcc/testsuite/gcc.dg/lto/20081224_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20081224_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fwhopr -shared -fPIC}} } */
+/* { dg-lto-options {{-fwhopr -r -nostdlib -fPIC}} } */
#include "20081224_0.h"
extern struct foo x;
diff --git a/gcc/testsuite/gcc.dg/lto/20090116_0.c b/gcc/testsuite/gcc.dg/lto/20090116_0.c
index 4b88e4a..9fd83ca 100644
--- a/gcc/testsuite/gcc.dg/lto/20090116_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20090116_0.c
@@ -1,6 +1,6 @@
/* { dg-lto-do link } */
/* { dg-lto-options {{-O1 -fwhopr -fPIC}} } */
-/* { dg-extra-ld-options {-shared -O0} } */
+/* { dg-extra-ld-options {-r -nostdlib -O0} } */
int foo(void) {
int ret, i;
diff --git a/gcc/testsuite/gcc.dg/lto/20090126-1_0.c b/gcc/testsuite/gcc.dg/lto/20090126-1_0.c
index 0ed8ea3..b2a25b2 100644
--- a/gcc/testsuite/gcc.dg/lto/20090126-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20090126-1_0.c
@@ -1,6 +1,6 @@
/* { dg-lto-do link } */
/* { dg-lto-options {{-O0 -fwhopr}} } */
-/* { dg-extra-ld-options {-shared -O2 -fwhopr} } */
+/* { dg-extra-ld-options {-r -nostdlib -O2 -fwhopr} } */
int main(int argc, char **argv) {
return 0;
diff --git a/gcc/testsuite/gcc.dg/lto/20090126-2_0.c b/gcc/testsuite/gcc.dg/lto/20090126-2_0.c
index 64e6385..a366c18 100644
--- a/gcc/testsuite/gcc.dg/lto/20090126-2_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20090126-2_0.c
@@ -1,6 +1,6 @@
/* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -O2 -fwhopr}} } */
-/* { dg-extra-ld-options {-fno-PIC -shared -O2 -fwhopr} } */
+/* { dg-extra-ld-options {-fno-PIC -r -nostdlib -O2 -fwhopr} } */
int main(int argc, char **argv) {
return 0;
diff --git a/gcc/testsuite/gcc.dg/lto/20090206-1_0.c b/gcc/testsuite/gcc.dg/lto/20090206-1_0.c
index 42eaca9..13cd886 100644
--- a/gcc/testsuite/gcc.dg/lto/20090206-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20090206-1_0.c
@@ -1,6 +1,6 @@
/* { dg-lto-do link } */
/* { dg-skip-if "" { ! { i?86-*-linux* x86_64-*-linux* } } { "*" } { "" } } */
-/* { dg-lto-options {{-fPIC -shared -fwhopr -msse2}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -fwhopr -msse2}} } */
/* { dg-suppress-ld-options {-fPIC -msse2} } */
typedef short v8hi __attribute__((__vector_size__(16)));
diff --git a/gcc/testsuite/gcc.dg/lto/20090219_0.c b/gcc/testsuite/gcc.dg/lto/20090219_0.c
index 6229de7..b93dd1f 100644
--- a/gcc/testsuite/gcc.dg/lto/20090219_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20090219_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-O3 -fwhopr -fPIC -shared}} } */
+/* { dg-lto-options {{-O3 -fwhopr -fPIC -r -nostdlib}} } */
struct Foo { int f1, f2, f3, f4, f5; };
diff --git a/gcc/testsuite/gcc.dg/lto/20091013-1_0.c b/gcc/testsuite/gcc.dg/lto/20091013-1_0.c
index e1a7dc8..0fecce0 100644
--- a/gcc/testsuite/gcc.dg/lto/20091013-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20091013-1_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -shared -flto} {-fPIC -shared -O2 -flto}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -flto} {-fPIC -r -nostdlib -O2 -flto}} } */
void * HeapAlloc(void*,unsigned int,unsigned long);
diff --git a/gcc/testsuite/gcc.dg/lto/20091014-1_0.c b/gcc/testsuite/gcc.dg/lto/20091014-1_0.c
index 241dddb..975214e 100644
--- a/gcc/testsuite/gcc.dg/lto/20091014-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20091014-1_0.c
@@ -1,4 +1,4 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -shared -flto}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -flto}} } */
/* Empty file. See PR41173. */
diff --git a/gcc/testsuite/gcc.dg/lto/20091015-1_0.c b/gcc/testsuite/gcc.dg/lto/20091015-1_0.c
index f60e7d1..d55ebcf 100644
--- a/gcc/testsuite/gcc.dg/lto/20091015-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20091015-1_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -shared -O2 -flto} {-fPIC -shared -O2 -fwhopr}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -O2 -flto} {-fPIC -r -nostdlib -O2 -fwhopr}} } */
#include "20091015-1_b.h"
void diagnostic_initialize (FILE **stream) { *stream = stderr; }
diff --git a/gcc/testsuite/gcc.dg/lto/20091016-1_0.c b/gcc/testsuite/gcc.dg/lto/20091016-1_0.c
index 942c5c6..39a04b9 100644
--- a/gcc/testsuite/gcc.dg/lto/20091016-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20091016-1_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -shared -O2 -flto}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -O2 -flto}} } */
typedef struct VEC_constructor_elt_gc { } VEC_constructor_elt_gc;
#include "20091016-1_a.h"
diff --git a/gcc/testsuite/gcc.dg/lto/20091020-1_0.c b/gcc/testsuite/gcc.dg/lto/20091020-1_0.c
index ef61e98..c9bcb56 100644
--- a/gcc/testsuite/gcc.dg/lto/20091020-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20091020-1_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -shared -flto}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -flto}} } */
typedef struct {
int NumPackStreams;
diff --git a/gcc/testsuite/gcc.dg/lto/20091020-2_0.c b/gcc/testsuite/gcc.dg/lto/20091020-2_0.c
index 7dcbb2d..fb1a82b 100644
--- a/gcc/testsuite/gcc.dg/lto/20091020-2_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20091020-2_0.c
@@ -1,5 +1,5 @@
/* { dg-lto-do link } */
-/* { dg-lto-options {{-fPIC -shared -flto}} } */
+/* { dg-lto-options {{-fPIC -r -nostdlib -flto}} } */
typedef struct {
int NumPackStreams;