From 2330bb91f9c76380ceb57aa8af2145879fbe0952 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 1 Jul 2019 11:05:07 +0200 Subject: [PATCH] re PR lto/91028 (g++.dg/lto/alias-2 FAILs with -fno-use-linker-plugin) PR lto/91028 PR lto/90720 * g++.dg/lto/alias-1_0.C: Add loop to make inlining happen with -fno-use-linker-plugin * g++.dg/lto/alias-2_0.C: Likewise. From-SVN: r272852 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/g++.dg/lto/alias-1_0.C | 4 +++- gcc/testsuite/g++.dg/lto/alias-2_0.C | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f4cfdcf5261..e5206340021 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2019-07-01 Jan Hubicka + + PR lto/91028 + PR lto/90720 + * g++.dg/lto/alias-1_0.C: Add loop to make inlining happen with + -fno-use-linker-plugin + * g++.dg/lto/alias-2_0.C: Likewise. + 2019-07-01 Dominique d'Humieres * g++.dg/cpp0x/gen-attrs-67.C: Add error for darwin. diff --git a/gcc/testsuite/g++.dg/lto/alias-1_0.C b/gcc/testsuite/g++.dg/lto/alias-1_0.C index 32f3ff0cba4..333bcf026d2 100644 --- a/gcc/testsuite/g++.dg/lto/alias-1_0.C +++ b/gcc/testsuite/g++.dg/lto/alias-1_0.C @@ -17,6 +17,7 @@ __attribute__ ((used)) struct b **bptr = (struct b**)&aptr; extern void init (); extern void inline_me_late (int); +int n=1; int @@ -24,7 +25,8 @@ main (int argc, char **argv) { init (); aptr = 0; - inline_me_late (argc); + for (int i=0; i