tree.c (valid_machine_attribute): If we're modifying the FUNCTION_TYPE within a POINTER_TYPE and we don't get a...
* tree.c (valid_machine_attribute): If we're modifying the FUNCTION_TYPE within a POINTER_TYPE and we don't get a decl, update the POINTER_TYPE. From-SVN: r26489
This commit is contained in:
parent
a3638246e9
commit
ace3c40a1f
@ -1,3 +1,9 @@
|
||||
Fri Apr 16 01:23:47 1999 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* tree.c (valid_machine_attribute): If we're modifying the
|
||||
FUNCTION_TYPE within a POINTER_TYPE and we don't get a decl,
|
||||
update the POINTER_TYPE.
|
||||
|
||||
Fri Apr 16 00:19:31 1999 Jan Hubicka <hubicka@freesoft.cz>
|
||||
|
||||
* i386.c (x86_adjust_cost): Move break statement to correct place.
|
||||
|
@ -3439,6 +3439,13 @@ valid_machine_attribute (attr_name, attr_args, decl, type)
|
||||
|
||||
if (decl != 0)
|
||||
TREE_TYPE (decl) = build_pointer_type (inner_type);
|
||||
else
|
||||
{
|
||||
/* Clear TYPE_POINTER_TO for the old inner type, since
|
||||
`type' won't be pointing to it anymore. */
|
||||
TYPE_POINTER_TO (TREE_TYPE (type)) = NULL_TREE;
|
||||
TREE_TYPE (type) = inner_type;
|
||||
}
|
||||
|
||||
validated = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user