re PR c++/28479 (cc1plus just sits there eating CPU and RAM for a simple program)

2006-08-02  Richard Guenther  <rguenther@suse.de>

      PR c++/28479
      Revert
      2006-07-05  Richard Guenther  <rguenther@suse.de>
      Andrew Pinski  <pinskia@gcc.gnu.org>

      PR c++/27084
      * cp-objcp-common.c (cxx_types_compatible_p): Ignore
      top level qualifiers for pointer type comparisons.

      * g++.dg/tree-ssa/copyprop-1.C: XFAIL.

From-SVN: r115887
This commit is contained in:
Richard Guenther 2006-08-02 20:48:59 +00:00 committed by Richard Biener
parent 6f67f00022
commit cfc581fe44
4 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,14 @@
2006-08-02 Richard Guenther <rguenther@suse.de>
PR c++/28479
Revert
2006-07-05 Richard Guenther <rguenther@suse.de>
Andrew Pinski <pinskia@gcc.gnu.org>
PR c++/27084
* cp-objcp-common.c (cxx_types_compatible_p): Ignore
top level qualifiers for pointer type comparisons.
2006-08-02 Mark Mitchell <mark@codesourcery.com>
PR c++/28557

View File

@ -179,8 +179,7 @@ cxx_types_compatible_p (tree x, tree y)
if (POINTER_TYPE_P (x) && POINTER_TYPE_P (y)
&& TYPE_MODE (x) == TYPE_MODE (y)
&& TYPE_REF_CAN_ALIAS_ALL (x) == TYPE_REF_CAN_ALIAS_ALL (y)
&& same_type_ignoring_top_level_qualifiers_p (TREE_TYPE (x),
TREE_TYPE (y)))
&& same_type_p (TREE_TYPE (x), TREE_TYPE (y)))
return 1;
return 0;

View File

@ -1,3 +1,7 @@
2006-08-02 Richard Guenther <rguenther@suse.de>
* g++.dg/tree-ssa/copyprop-1.C: XFAIL.
2006-08-02 Mark Mitchell <mark@codesourcery.com>
PR c++/28557

View File

@ -25,5 +25,5 @@ int foo(Object&o)
return o[0];
}
/* { dg-final { scan-tree-dump-not ".* = \[^>;\]*;" "dce2" } } */
/* { dg-final { scan-tree-dump-not ".* = \[^>;\]*;" "dce2" { xfail *-*-* } } } */
/* { dg-final { cleanup-tree-dump "dce2" } } */