decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test DECL_SOURCE_LOCATION directly.
* decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test DECL_SOURCE_LOCATION directly. From-SVN: r160806
This commit is contained in:
parent
71b8cb0111
commit
0ba8746d0a
|
@ -1,5 +1,8 @@
|
|||
2010-06-15 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test
|
||||
DECL_SOURCE_LOCATION directly.
|
||||
|
||||
* class.c (type_has_user_provided_default_constructor): Use
|
||||
sufficient_parms_p.
|
||||
|
||||
|
|
|
@ -1295,7 +1295,7 @@ duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
|
|||
/* Even if the types match, prefer the new declarations type for
|
||||
built-ins which have not been explicitly declared, for
|
||||
exception lists, etc... */
|
||||
else if (DECL_SOURCE_LOCATION (olddecl) == BUILTINS_LOCATION)
|
||||
else if (DECL_IS_BUILTIN (olddecl))
|
||||
{
|
||||
tree type = TREE_TYPE (newdecl);
|
||||
tree attribs = (*targetm.merge_type_attributes)
|
||||
|
|
Loading…
Reference in New Issue