From f6bbf1ca1d4f8f81b5fd439a36318079f7fa73a8 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 16 Jul 2019 11:29:17 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/g++.dg/lto/alias-1_0.C | 2 +- gcc/testsuite/g++.dg/lto/alias-2_0.C | 2 +- gcc/testsuite/g++.dg/lto/alias-3_0.C | 4 +++- 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 e6ca0430cbe..633ded674e7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-07-16 Jan Hubicka + + * 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 * 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 333bcf026d2..9a79bdaeb74 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 adad3ec77fb..07b432cf1ab 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 facba59dea7..9ed95304ccc 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; ia[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 11b02687531..f6332717bd3 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; -- 2.30.2