tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
authorRichard Guenther <rguenther@suse.de>
Wed, 26 Sep 2012 13:16:07 +0000 (13:16 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 26 Sep 2012 13:16:07 +0000 (13:16 +0000)
2012-09-26  Richard Guenther  <rguenther@suse.de>

* tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.

From-SVN: r191759

gcc/ChangeLog
gcc/tree.h

index 6b723e498d015df8dcb527a3bdda569d5fde633f..be34843a51b6bd87266212008e9a2859f8dd4f0f 100644 (file)
@@ -1,3 +1,7 @@
+2012-09-26  Richard Guenther  <rguenther@suse.de>
+
+       * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
+
 2012-09-26  Ian Lance Taylor  <iant@google.com>
 
        * diagnostic.c: Include "demangle.h" and "backtrace.h".
index edc47eec432479e918a6044a8ce8bccf8675fe11..254eaef2a7175345bef3385829f12349a47de301 100644 (file)
@@ -2617,7 +2617,7 @@ struct function;
 #define DECL_SOURCE_LINE(NODE) LOCATION_LINE (DECL_SOURCE_LOCATION (NODE))
 #define DECL_SOURCE_COLUMN(NODE) LOCATION_COLUMN (DECL_SOURCE_LOCATION (NODE))
 #define DECL_IS_BUILTIN(DECL) \
-  (DECL_SOURCE_LOCATION (DECL) <= BUILTINS_LOCATION)
+  (LOCATION_LOCUS (DECL_SOURCE_LOCATION (DECL)) <= BUILTINS_LOCATION)
 
 /*  For FIELD_DECLs, this is the RECORD_TYPE, UNION_TYPE, or
     QUAL_UNION_TYPE node that the field is a member of.  For VAR_DECL,