Hello!

- Thunk name encodes offset into the structure, which is different
between 32/64bit targete when pointers are involved.
- CCP runs with -O1 only
- Missing dump cleanup

2014-07-22  Uros Bizjak  <ubiz...@gmail.com>

    * g++.dg/ipa/imm-devirt-2.C (dg-final): Improve einline dump string.
    * gcc.dg/pr44024.c (dg-options): Add -O1.
    (dg-final): Check for the condition.
    * gcc.dg/vect/pr61680.c (dg-final): Cleanup vect tree dump.

Tested on x86_64-linux-gnu {,-m32} and committed to mainline SVN.

Uros.
Index: g++.dg/ipa/imm-devirt-2.C
===================================================================
--- g++.dg/ipa/imm-devirt-2.C   (revision 212885)
+++ g++.dg/ipa/imm-devirt-2.C   (working copy)
@@ -92,5 +92,5 @@
 }
 
 /* We fold into thunk of C. Eventually we should inline the thunk.  */
-/* { dg-final { scan-tree-dump "C::_ZThn24_N1C3fooEi \\(" "einline"  } } */
+/* { dg-final { scan-tree-dump "C::_ZThn\[0-9\]+_N1C3fooEi \\(" "einline"  } } 
*/
 /* { dg-final { cleanup-tree-dump "einline" } } */
Index: gcc.dg/pr44024.c
===================================================================
--- gcc.dg/pr44024.c    (revision 212885)
+++ gcc.dg/pr44024.c    (working copy)
@@ -1,5 +1,5 @@
 /* { dg-do link } */
-/* { dg-options "-fdelete-null-pointer-checks -fdump-tree-ccp1" } */
+/* { dg-options "-O1 -fdelete-null-pointer-checks -fdump-tree-ccp1" } */
 
 void foo();
 
@@ -10,5 +10,5 @@
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-not "foo" "ccp1" { target { ! avr*-*-* } } } } 
*/
+/* { dg-final { scan-tree-dump-not "if \\(foo" "ccp1" { target { ! avr*-*-* } 
} } } */
 /* { dg-final { cleanup-tree-dump "ccp1" } } */
Index: gcc.dg/vect/pr61680.c
===================================================================
--- gcc.dg/vect/pr61680.c       (revision 212885)
+++ gcc.dg/vect/pr61680.c       (working copy)
@@ -49,3 +49,5 @@
   foo ();
   return 0;
 }
+
+/* { dg-final { cleanup-tree-dump "vect" } } */

Reply via email to