diff options
author | Jan Hubicka <jh@suse.cz> | 2019-07-16 11:29:17 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-07-16 09:29:17 +0000 |
commit | f6bbf1ca1d4f8f81b5fd439a36318079f7fa73a8 (patch) | |
tree | 03574b686dc4aadf530196a6753ef9a734b4bd0f /gcc | |
parent | ee8c45492a5001b062ff449b18a1f4f13eaa631d (diff) | |
download | gcc-f6bbf1ca1d4f8f81b5fd439a36318079f7fa73a8.zip gcc-f6bbf1ca1d4f8f81b5fd439a36318079f7fa73a8.tar.gz gcc-f6bbf1ca1d4f8f81b5fd439a36318079f7fa73a8.tar.bz2 |
alias-1_0.C: Use -O3.
* g++.dg/lto/alias-1_0.C: Use -O3.
* g++.dg/lto/alias-2_0.C: Use -O3.
* g++.dg/lto/alias-3_0.C: Add loop to enable inlining with
-fno-use-linker-plugin.
* g++.dg/lto/alias-3_1.C: Remove dg-lto-do and dg-lto-options.
From-SVN: r273520
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/alias-1_0.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/alias-2_0.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/alias-3_0.C | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/lto/alias-3_1.c | 2 |
5 files changed, 13 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e6ca043..633ded6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-07-16 Jan Hubicka <jh@suse.cz> + + * g++.dg/lto/alias-1_0.C: Use -O3. + * g++.dg/lto/alias-2_0.C: Use -O3. + * g++.dg/lto/alias-3_0.C: Add loop to enable inlining with + -fno-use-linker-plugin. + * g++.dg/lto/alias-3_1.C: Remove dg-lto-do and dg-lto-options. + 2019-07-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * gcc.dg/tree-ssa/pr84512.c: Don't xfail scan-tree-dump on diff --git a/gcc/testsuite/g++.dg/lto/alias-1_0.C b/gcc/testsuite/g++.dg/lto/alias-1_0.C index 333bcf0..9a79bda 100644 --- a/gcc/testsuite/g++.dg/lto/alias-1_0.C +++ b/gcc/testsuite/g++.dg/lto/alias-1_0.C @@ -1,5 +1,5 @@ /* { dg-lto-do run } */ -/* { dg-lto-options { { -O2 -flto } } } */ +/* { dg-lto-options { { -O3 -flto } } } */ /* With LTO we consider all pointers to incomplete types to be possibly aliasing. This makes *bptr to alias with aptr. diff --git a/gcc/testsuite/g++.dg/lto/alias-2_0.C b/gcc/testsuite/g++.dg/lto/alias-2_0.C index adad3ec..07b432c 100644 --- a/gcc/testsuite/g++.dg/lto/alias-2_0.C +++ b/gcc/testsuite/g++.dg/lto/alias-2_0.C @@ -1,5 +1,5 @@ /* { dg-lto-do run } */ -/* { dg-lto-options { { -O2 -flto } } } */ +/* { dg-lto-options { { -O3 -flto } } } */ /* With LTO we consider all pointers to incomplete types to be possibly aliasing. This makes *bptr to alias with aptr. diff --git a/gcc/testsuite/g++.dg/lto/alias-3_0.C b/gcc/testsuite/g++.dg/lto/alias-3_0.C index facba59..9ed95304 100644 --- a/gcc/testsuite/g++.dg/lto/alias-3_0.C +++ b/gcc/testsuite/g++.dg/lto/alias-3_0.C @@ -14,13 +14,15 @@ __attribute__ ((used)) struct b b, *bptr=&b, *bptr2=&b; __attribute__ ((used)) int i,j; extern "C" void inline_me_late (void); +int n=1; int main (void) { int jj=j; bptr2->a[jj].bar = 0; - inline_me_late (); + for (int i=0; i<n; i++) + inline_me_late (); if (!__builtin_constant_p (bptr2->a[jj].bar == 0)) __builtin_abort (); return 0; diff --git a/gcc/testsuite/g++.dg/lto/alias-3_1.c b/gcc/testsuite/g++.dg/lto/alias-3_1.c index 11b0268..f633271 100644 --- a/gcc/testsuite/g++.dg/lto/alias-3_1.c +++ b/gcc/testsuite/g++.dg/lto/alias-3_1.c @@ -1,5 +1,3 @@ -/* { dg-lto-do run } */ -/* { dg-lto-options { { -O3 -flto -fno-early-inlining } } } */ struct a { int foo,bar; |