commit ec21885ffe1b3288b2ae803fb50cf496dab76147
Author: Jason Merrill <jason@redhat.com>
Date: Thu Jun 10 10:52:51 2010 -0400
* decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test
DECL_SOURCE_LOCATION directly.
@@ -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)