diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/lto')
24 files changed, 26 insertions, 26 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/20081115_0.c b/gcc/testsuite/gcc.dg/lto/20081115_0.c index f24a92deda4..c9f4c803f3a 100644 --- a/gcc/testsuite/gcc.dg/lto/20081115_0.c +++ b/gcc/testsuite/gcc.dg/lto/20081115_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{-O2 -DOPTIMIZE -fwhopr} {-O0 -fwhopr}} } */ +/* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/lto/20081118_0.c b/gcc/testsuite/gcc.dg/lto/20081118_0.c index 0640428be6d..b37eb31a46d 100644 --- a/gcc/testsuite/gcc.dg/lto/20081118_0.c +++ b/gcc/testsuite/gcc.dg/lto/20081118_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{-O2 -DOPTIMIZE -fwhopr} {-O0 -fwhopr}} } */ +/* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */ extern void abort (void); extern int f (void); diff --git a/gcc/testsuite/gcc.dg/lto/20081120-2_0.c b/gcc/testsuite/gcc.dg/lto/20081120-2_0.c index 19c4ab34784..e2e11d64b63 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 -r -nostdlib}} } */ +/* { dg-lto-options {{-flto -flto-partition=1to1 -r -nostdlib}} } */ void bar(void) {} diff --git a/gcc/testsuite/gcc.dg/lto/20081201-1_0.c b/gcc/testsuite/gcc.dg/lto/20081201-1_0.c index 05cbb82fdd1..b6896446d7b 100644 --- a/gcc/testsuite/gcc.dg/lto/20081201-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/20081201-1_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{-O2 -DOPTIMIZE -fwhopr} {-O0 -fwhopr}} } */ +/* { dg-lto-options {{-O2 -DOPTIMIZE -flto -flto-partition=1to1} {-O0 -flto -flto-partition=1to1}} } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/lto/20081201-2_0.c b/gcc/testsuite/gcc.dg/lto/20081201-2_0.c index 4c1510d1cec..fd021eb1cd1 100644 --- a/gcc/testsuite/gcc.dg/lto/20081201-2_0.c +++ b/gcc/testsuite/gcc.dg/lto/20081201-2_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{-O3 -fwhopr}} } */ +/* { dg-lto-options {{-O3 -flto -flto-partition=1to1}} } */ /* Test that cross-TU inlining works. */ diff --git a/gcc/testsuite/gcc.dg/lto/20081202-1_0.c b/gcc/testsuite/gcc.dg/lto/20081202-1_0.c index 933610a894b..1bdb91f8104 100644 --- a/gcc/testsuite/gcc.dg/lto/20081202-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/20081202-1_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{-fwhopr -O3}} } */ +/* { dg-lto-options {{-flto -flto-partition=1to1 -O3}} } */ extern void exit (int); extern void foo (void); diff --git a/gcc/testsuite/gcc.dg/lto/20081202-2_0.c b/gcc/testsuite/gcc.dg/lto/20081202-2_0.c index 09f417698ca..9d34f740b36 100644 --- a/gcc/testsuite/gcc.dg/lto/20081202-2_0.c +++ b/gcc/testsuite/gcc.dg/lto/20081202-2_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{-fwhopr -O3}} } */ +/* { dg-lto-options {{-flto -flto-partition=1to1 -O3}} } */ extern void exit (int); extern void *foo (void); diff --git a/gcc/testsuite/gcc.dg/lto/20081204-1_0.c b/gcc/testsuite/gcc.dg/lto/20081204-1_0.c index 5952b07b76f..a4b25ff82fb 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 -r -nostdlib}} } */ +/* { dg-lto-options {{-flto -flto-partition=1to1 -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/20081224_0.c b/gcc/testsuite/gcc.dg/lto/20081224_0.c index 9c784fe29ff..d050e231238 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 -r -nostdlib -fPIC}} } */ +/* { dg-lto-options {{-flto -flto-partition=1to1 -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 9fd83ca0766..5bb3a919a59 100644 --- a/gcc/testsuite/gcc.dg/lto/20090116_0.c +++ b/gcc/testsuite/gcc.dg/lto/20090116_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do link } */ -/* { dg-lto-options {{-O1 -fwhopr -fPIC}} } */ +/* { dg-lto-options {{-O1 -flto -flto-partition=1to1 -fPIC}} } */ /* { dg-extra-ld-options {-r -nostdlib -O0} } */ int foo(void) { diff --git a/gcc/testsuite/gcc.dg/lto/20090126-1_0.c b/gcc/testsuite/gcc.dg/lto/20090126-1_0.c index b2a25b2261c..01a12994021 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 {-r -nostdlib -O2 -fwhopr} } */ +/* { dg-lto-options {{-O0 -flto -flto-partition=1to1}} } */ +/* { dg-extra-ld-options {-r -nostdlib -O2 -flto -flto-partition=1to1} } */ 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 a366c183873..2239412d1af 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 -r -nostdlib -O2 -fwhopr} } */ +/* { dg-lto-options {{-fPIC -O2 -flto -flto-partition=1to1}} } */ +/* { dg-extra-ld-options {-fno-PIC -r -nostdlib -O2 -flto -flto-partition=1to1} } */ 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 1fabb9192ce..c9fc97334c7 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 -r -nostdlib -fwhopr -msse2}} } */ +/* { dg-lto-options {{-fPIC -r -nostdlib -flto -flto-partition=1to1 -msse2}} } */ /* { dg-require-effective-target sse2 } */ /* { dg-suppress-ld-options {-fPIC -msse2} } */ diff --git a/gcc/testsuite/gcc.dg/lto/20090206-2_0.c b/gcc/testsuite/gcc.dg/lto/20090206-2_0.c index 3e85c5d227c..4ca80ea4810 100644 --- a/gcc/testsuite/gcc.dg/lto/20090206-2_0.c +++ b/gcc/testsuite/gcc.dg/lto/20090206-2_0.c @@ -1,6 +1,6 @@ /* { dg-lto-do link } */ /* { dg-skip-if "" { ! { i?86-*-linux* x86_64-*-linux* } } { "*" } { "" } } */ -/* { dg-lto-options {{-fwhopr -fPIC}} } */ +/* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */ /* { dg-suppress-ld-options {-fPIC} } */ void func(int n) { diff --git a/gcc/testsuite/gcc.dg/lto/20090219_0.c b/gcc/testsuite/gcc.dg/lto/20090219_0.c index b93dd1fe946..81a93e6da53 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 -r -nostdlib}} } */ +/* { dg-lto-options {{-O3 -flto -flto-partition=1to1 -fPIC -r -nostdlib}} } */ struct Foo { int f1, f2, f3, f4, f5; }; diff --git a/gcc/testsuite/gcc.dg/lto/20091015-1_0.c b/gcc/testsuite/gcc.dg/lto/20091015-1_0.c index d55ebcf4042..1cc4b78b31b 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 -r -nostdlib -O2 -flto} {-fPIC -r -nostdlib -O2 -fwhopr}} } */ +/* { dg-lto-options {{-fPIC -r -nostdlib -O2 -flto} {-fPIC -r -nostdlib -O2 -flto -flto-partition=1to1}} } */ #include "20091015-1_b.h" void diagnostic_initialize (FILE **stream) { *stream = stderr; } diff --git a/gcc/testsuite/gcc.dg/lto/20100423-1_0.c b/gcc/testsuite/gcc.dg/lto/20100423-1_0.c index 58456d43b69..eb931651500 100644 --- a/gcc/testsuite/gcc.dg/lto/20100423-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/20100423-1_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do run } */ -/* { dg-lto-options {{-O2 -flto}} } */ +/* { dg-lto-options {{-O2 -flto -flto-partition=none}} } */ struct bar {int x;}; extern struct bar foo(void); diff --git a/gcc/testsuite/gcc.dg/lto/20100423-2_0.c b/gcc/testsuite/gcc.dg/lto/20100423-2_0.c index 791b1bade7a..f546757c216 100644 --- a/gcc/testsuite/gcc.dg/lto/20100423-2_0.c +++ b/gcc/testsuite/gcc.dg/lto/20100423-2_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do link } */ -/* { dg-lto-options {{-O2 -flto} {-O2 -fwhopr} {-O3 -flto} {-O3 -fwhopr}} } */ +/* { dg-lto-options {{-O2 -flto -flto-partition=none} {-O2 -flto -flto-partition=1to1} {-O3 -flto -flto-partition=none} {-O3 -flto -flto-partition=1to1}} } */ #include <stdio.h> diff --git a/gcc/testsuite/gcc.dg/lto/const-uniq_0.c b/gcc/testsuite/gcc.dg/lto/const-uniq_0.c index 746167c6517..1bbc7f45f8d 100644 --- a/gcc/testsuite/gcc.dg/lto/const-uniq_0.c +++ b/gcc/testsuite/gcc.dg/lto/const-uniq_0.c @@ -1,7 +1,7 @@ /* The 3 constant initializers should be uniquized. */ /* { dg-lto-do run } */ -/* { dg-lto-options {{-Os -flto} {-Os -fwhopr} } } */ +/* { dg-lto-options {{-Os -flto -flto-partition=none} {-Os -flto -flto-partition=1to1} } } */ int lookup1 (int i) { diff --git a/gcc/testsuite/gcc.dg/lto/ipacp_0.c b/gcc/testsuite/gcc.dg/lto/ipacp_0.c index 3212261baa7..097c1c2538f 100644 --- a/gcc/testsuite/gcc.dg/lto/ipacp_0.c +++ b/gcc/testsuite/gcc.dg/lto/ipacp_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{ -O1 -fwhopr -fipa-cp -fipa-cp-clone}} } */ +/* { dg-lto-options {{ -O1 -flto -flto-partition=1to1 -fipa-cp -fipa-cp-clone}} } */ /* { dg-lto-do run } */ /* Test that clonning happens and we unify declarations of a from both units. */ diff --git a/gcc/testsuite/gcc.dg/lto/ipareference2_0.c b/gcc/testsuite/gcc.dg/lto/ipareference2_0.c index b7b13e6b9a4..f7ae0b4e316 100644 --- a/gcc/testsuite/gcc.dg/lto/ipareference2_0.c +++ b/gcc/testsuite/gcc.dg/lto/ipareference2_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{ -O1 -fwhopr -fwhole-program}} } */ +/* { dg-lto-options {{ -O1 -flto -flto-partition=1to1 -fwhole-program}} } */ /* { dg-lto-do run } */ /* Verify that ipa-reference marks A as constant and we fold references diff --git a/gcc/testsuite/gcc.dg/lto/ipareference_0.c b/gcc/testsuite/gcc.dg/lto/ipareference_0.c index c759b758e47..f8970f0e9ec 100644 --- a/gcc/testsuite/gcc.dg/lto/ipareference_0.c +++ b/gcc/testsuite/gcc.dg/lto/ipareference_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{ -O1 -fwhopr }} } */ +/* { dg-lto-options {{ -O1 -flto -flto-partition=1to1 }} } */ /* { dg-lto-do run } */ /* Test that ipa-reference notice that get_val will not change since do_nothing does not diff --git a/gcc/testsuite/gcc.dg/lto/materialize-1_0.c b/gcc/testsuite/gcc.dg/lto/materialize-1_0.c index 16c182fc1cd..1751d65d293 100644 --- a/gcc/testsuite/gcc.dg/lto/materialize-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/materialize-1_0.c @@ -1,4 +1,4 @@ -/* { dg-lto-options {{ -O3 -fwhopr}} } */ +/* { dg-lto-options {{ -O3 -flto -flto-partition=1to1}} } */ /* { dg-lto-do run } */ extern void clone_me (int, int); int a=15; diff --git a/gcc/testsuite/gcc.dg/lto/noreturn-1_0.c b/gcc/testsuite/gcc.dg/lto/noreturn-1_0.c index f10081abf1b..7f493cd9f9c 100644 --- a/gcc/testsuite/gcc.dg/lto/noreturn-1_0.c +++ b/gcc/testsuite/gcc.dg/lto/noreturn-1_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do run } */ -/* { dg-lto-options {{-O2 -fwhopr} } } */ +/* { dg-lto-options {{-O2 -flto -flto-partition=1to1} } } */ void exit (int); __attribute__ ((noreturn)) |