alias-1_0.C: Use -O3.
authorJan Hubicka <jh@suse.cz>
Tue, 16 Jul 2019 09:29:17 +0000 (11:29 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 16 Jul 2019 09:29:17 +0000 (09:29 +0000)
* 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
gcc/testsuite/g++.dg/lto/alias-1_0.C
gcc/testsuite/g++.dg/lto/alias-2_0.C
gcc/testsuite/g++.dg/lto/alias-3_0.C
gcc/testsuite/g++.dg/lto/alias-3_1.c

index e6ca043..633ded6 100644 (file)
@@ -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
index 333bcf0..9a79bda 100644 (file)
@@ -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.
index adad3ec..07b432c 100644 (file)
@@ -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.
index facba59..9ed9530 100644 (file)
@@ -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;
index 11b0268..f633271 100644 (file)
@@ -1,5 +1,3 @@
-/* { dg-lto-do run } */
-/* { dg-lto-options { { -O3 -flto -fno-early-inlining } } } */
 struct a
 {
   int foo,bar;