re PR middle-end/38371 (Fold check error during bootstrap)
PR middle-end/38371 * fold-const.c (fold_checksum_tree): Allow modification of TYPE_NEXT_VARIANT. From-SVN: r142430
This commit is contained in:
parent
dc540ffd68
commit
5cf9684138
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-12-04 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/38371
|
||||
* fold-const.c (fold_checksum_tree): Allow modification of
|
||||
TYPE_NEXT_VARIANT.
|
||||
|
||||
2008-12-03 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/38360
|
||||
|
|
|
@ -13364,9 +13364,11 @@ recursive_label:
|
|||
expr = (tree) &buf;
|
||||
}
|
||||
else if (TREE_CODE_CLASS (code) == tcc_type
|
||||
&& (TYPE_POINTER_TO (expr) || TYPE_REFERENCE_TO (expr)
|
||||
&& (TYPE_POINTER_TO (expr)
|
||||
|| TYPE_REFERENCE_TO (expr)
|
||||
|| TYPE_CACHED_VALUES_P (expr)
|
||||
|| TYPE_CONTAINS_PLACEHOLDER_INTERNAL (expr)))
|
||||
|| TYPE_CONTAINS_PLACEHOLDER_INTERNAL (expr)
|
||||
|| TYPE_NEXT_VARIANT (expr)))
|
||||
{
|
||||
/* Allow these fields to be modified. */
|
||||
tree tmp;
|
||||
|
@ -13375,6 +13377,7 @@ recursive_label:
|
|||
TYPE_CONTAINS_PLACEHOLDER_INTERNAL (tmp) = 0;
|
||||
TYPE_POINTER_TO (tmp) = NULL;
|
||||
TYPE_REFERENCE_TO (tmp) = NULL;
|
||||
TYPE_NEXT_VARIANT (tmp) = NULL;
|
||||
if (TYPE_CACHED_VALUES_P (tmp))
|
||||
{
|
||||
TYPE_CACHED_VALUES_P (tmp) = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue