summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-27 06:38:52 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-27 06:38:52 +0000
commit2db0b3527cdd32dc1bb494d18508dc4320a19f69 (patch)
treec7c3eab8c786f9630cce495ae3913a2d458e808d /gcc/testsuite/gcc.dg/lto
parentd0986467397b442d06f2d63557bbc3548919d783 (diff)
downloadgcc-2db0b3527cdd32dc1bb494d18508dc4320a19f69.tar.gz
2009-10-27 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 153581 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@153582 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/lto')
-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
18 files changed, 18 insertions, 18 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/20081120-1_0.c b/gcc/testsuite/gcc.dg/lto/20081120-1_0.c
index c35119605d6..e842b37f663 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 ff8a9a435f2..19c4ab34784 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 9d0bb14c4cb..9243da96a79 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 92598085c9a..5952b07b76f 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 241ac5d607a..53446050f95 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 a19bff1bac5..acc00186840 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 c146115b086..9c784fe29ff 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 4b88e4ab3b1..9fd83ca0766 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 0ed8ea32401..b2a25b2261c 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 64e63853250..a366c183873 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 42eaca9d5e2..13cd8861183 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 6229de7aef1..b93dd1fe946 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 e1a7dc86b6b..0fecce04f09 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 241dddbf81f..975214e0430 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 f60e7d16a7e..d55ebcf4042 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 942c5c6c0a4..39a04b950bf 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 ef61e98b4cc..c9bcb565d96 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 7dcbb2da2ca..fb1a82bb8c6 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;