summaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-15 19:58:54 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-15 19:58:54 +0000
commit7a3324ba6503ef106ec6306f045010b84e83b331 (patch)
treeee2729d6d87838e12cc9d044ea8e92d18d33f636 /gcc/cp/decl.c
parenta0eca0c270319e3e299fd466fba02aab53fab4f9 (diff)
downloadgcc-7a3324ba6503ef106ec6306f045010b84e83b331.tar.gz
* decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test
DECL_SOURCE_LOCATION directly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160806 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 3108f9d0363..9541252125a 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -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)