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
This commit is contained in:
parent
a0ff862096
commit
3dd1bb6a6f
19 changed files with 39 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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(); }
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
/* { dg-lto-do link } */
|
||||
/* { dg-lto-options {{-fwhopr -shared}} } */
|
||||
/* { dg-lto-options {{-fwhopr -r -nostdlib}} } */
|
||||
void bar(void) {}
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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" } } */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)));
|
||||
|
|
|
@ -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; };
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue