Patchwork [testsuite] : A bunch of fixes

login
register
mail settings
Submitter Uros Bizjak
Date July 22, 2014, 7:28 a.m.
Message ID <CAFULd4bR_BdYPhyZTo2yzqs8M8uesWF_iPa-Kms9eq8aCZEPkA@mail.gmail.com>
Download mbox | patch
Permalink /patch/372378/
State New
Headers show

Comments

Uros Bizjak - July 22, 2014, 7:28 a.m.
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  <ubizjak@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.
Rainer Orth - July 22, 2014, 8:16 a.m.
Hi Uros,

> 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  <ubizjak@gmail.com>
>
>     * g++.dg/ipa/imm-devirt-2.C (dg-final): Improve einline dump string.

this is PR middle-end/61748.

>     * gcc.dg/pr44024.c (dg-options): Add -O1.
>     (dg-final): Check for the condition.

PR middle-end/61826.

Thanks for fixing this.

	Rainer

Patch

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" } } */