tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 15 May 2012 19:44:49 +0000 (19:44 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 15 May 2012 19:44:49 +0000 (19:44 +0000)
2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>

     * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.

From-SVN: r187552

gcc/ChangeLog
gcc/tree.h

index d564c10ac2d0aaadf3869acab43187cb11ace719..1ee43b925e612375e23e6aaf9d55d1184b39730c 100644 (file)
@@ -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
index 419d8f4e6389fc0f04165a7a8460c05ade30992f..cc9d4fbe5d9703f99f40594ea28ca0751e95bca0 100644 (file)
@@ -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)