(decl_attributes): If TREE_TYPE for the DECL is updated,
then update TYPE as well. From-SVN: r7662
This commit is contained in:
parent
515dfc7a23
commit
20250c072b
@ -232,7 +232,7 @@ decl_attributes (decl, attributes)
|
||||
TREE_THIS_VOLATILE (decl) = 1;
|
||||
else if (TREE_CODE (type) == POINTER_TYPE
|
||||
&& TREE_CODE (TREE_TYPE (type)) == FUNCTION_TYPE)
|
||||
TREE_TYPE (decl)
|
||||
TREE_TYPE (decl) = type
|
||||
= build_pointer_type
|
||||
(build_type_variant (TREE_TYPE (type),
|
||||
TREE_READONLY (TREE_TYPE (type)), 1));
|
||||
@ -246,7 +246,7 @@ decl_attributes (decl, attributes)
|
||||
TREE_READONLY (decl) = 1;
|
||||
else if (TREE_CODE (type) == POINTER_TYPE
|
||||
&& TREE_CODE (TREE_TYPE (type)) == FUNCTION_TYPE)
|
||||
TREE_TYPE (decl)
|
||||
TREE_TYPE (decl) = type
|
||||
= build_pointer_type
|
||||
(build_type_variant (TREE_TYPE (type), 1,
|
||||
TREE_THIS_VOLATILE (TREE_TYPE (type))));
|
||||
|
Loading…
x
Reference in New Issue
Block a user