This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Strenghten assumption about dynamic type changes (placement new)
- From: Marek Polacek <polacek at redhat dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 6 Jul 2014 21:24:37 +0200
- Subject: Re: Strenghten assumption about dynamic type changes (placement new)
- Authentication-results: sourceware.org; auth=none
- References: <20140702201805 dot GB15987 at kam dot mff dot cuni dot cz> <53B49446 dot 7090402 at redhat dot com> <20140704213952 dot GA28252 at kam dot mff dot cuni dot cz>
On Fri, Jul 04, 2014 at 11:39:52PM +0200, Jan Hubicka wrote:
> Bootstrapped/regtested x86_64-linux, will commit it after bit more
> testing.
...
> * g++.dg/ipa/imm-devirt-1.C: Update testcase.
> * g++.dg/ipa/imm-devirt-2.C: Update testcase.
These testcases fail:
ERROR: g++.dg/ipa/imm-devirt-1.C -std=gnu++98: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced
ERROR: g++.dg/ipa/imm-devirt-1.C -std=gnu++11: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced
ERROR: g++.dg/ipa/imm-devirt-1.C -std=gnu++1y: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced
ERROR: g++.dg/ipa/imm-devirt-2.C -std=gnu++98: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced
ERROR: g++.dg/ipa/imm-devirt-2.C -std=gnu++11: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced
ERROR: g++.dg/ipa/imm-devirt-2.C -std=gnu++1y: error executing dg-final: couldn't compile regular expression pattern: parentheses () not balanced
I'm fixing that with the following (will commit as obvious).
2014-07-06 Marek Polacek <polacek@redhat.com>
* g++.dg/ipa/imm-devirt-1.C: Fix regexp in dg-final.
* g++.dg/ipa/imm-devirt-2.C: Likewise.
diff --git gcc/testsuite/g++.dg/ipa/imm-devirt-1.C gcc/testsuite/g++.dg/ipa/imm-devirt-1.C
index 115277f..85f1a8f 100644
--- gcc/testsuite/g++.dg/ipa/imm-devirt-1.C
+++ gcc/testsuite/g++.dg/ipa/imm-devirt-1.C
@@ -62,6 +62,6 @@ int main (int argc, char *argv[])
a direct call. */
/* { dg-final { scan-tree-dump "Inlining int middleman_1" "einline" } } */
/* { dg-final { scan-tree-dump "Inlining int middleman_2" "einline" } } */
-/* { dg-final { scan-tree-dump "B::foo (" "einline" } } */
+/* { dg-final { scan-tree-dump "B::foo \\(" "einline" } } */
/* { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 2 "einline" } } */
/* { dg-final { cleanup-tree-dump "einline" } } */
diff --git gcc/testsuite/g++.dg/ipa/imm-devirt-2.C gcc/testsuite/g++.dg/ipa/imm-devirt-2.C
index 58af089..db85487 100644
--- gcc/testsuite/g++.dg/ipa/imm-devirt-2.C
+++ gcc/testsuite/g++.dg/ipa/imm-devirt-2.C
@@ -92,5 +92,5 @@ int main (int argc, char *argv[])
}
/* 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::_ZThn24_N1C3fooEi \\(" "einline" } } */
/* { dg-final { cleanup-tree-dump "einline" } } */
Marek