aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2012-05-15 19:44:49 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2012-05-15 19:44:49 +0000
commitf2437399519faee351b24beae127c0f4310aa13c (patch)
treeffba29a3bfb03e23ba8dccee16f3497e7c3c3417 /gcc
parent8d37dc9364076b814be11dbd2d37634aaf786646 (diff)
downloadgcc-f2437399519faee351b24beae127c0f4310aa13c.zip
gcc-f2437399519faee351b24beae127c0f4310aa13c.tar.gz
gcc-f2437399519faee351b24beae127c0f4310aa13c.tar.bz2
tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
2012-05-15 Paolo Carlini <paolo.carlini@oracle.com> * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P. From-SVN: r187552
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d564c10..1ee43b9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
+
2012-05-15 Jakub Jelinek <jakub@redhat.com>
PR target/53358
diff --git a/gcc/tree.h b/gcc/tree.h
index 419d8f4..cc9d4fb 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1684,7 +1684,7 @@ struct GTY(()) tree_constructor {
decls and constants can be shared among multiple locations, so
return nothing. */
#define EXPR_LOCATION(NODE) \
- (EXPR_P ((NODE)) ? (NODE)->exp.locus : UNKNOWN_LOCATION)
+ (CAN_HAVE_LOCATION_P ((NODE)) ? (NODE)->exp.locus : UNKNOWN_LOCATION)
#define SET_EXPR_LOCATION(NODE, LOCUS) EXPR_CHECK ((NODE))->exp.locus = (LOCUS)
#define EXPR_HAS_LOCATION(NODE) (EXPR_LOCATION (NODE) != UNKNOWN_LOCATION)
#define EXPR_LOC_OR_HERE(NODE) (EXPR_HAS_LOCATION (NODE) ? (NODE)->exp.locus : input_location)