mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
8d37dc9364
commit
f243739951
|
@ -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>
|
2012-05-15 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR target/53358
|
PR target/53358
|
||||||
|
|
|
@ -1684,7 +1684,7 @@ struct GTY(()) tree_constructor {
|
||||||
decls and constants can be shared among multiple locations, so
|
decls and constants can be shared among multiple locations, so
|
||||||
return nothing. */
|
return nothing. */
|
||||||
#define EXPR_LOCATION(NODE) \
|
#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 SET_EXPR_LOCATION(NODE, LOCUS) EXPR_CHECK ((NODE))->exp.locus = (LOCUS)
|
||||||
#define EXPR_HAS_LOCATION(NODE) (EXPR_LOCATION (NODE) != UNKNOWN_LOCATION)
|
#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)
|
#define EXPR_LOC_OR_HERE(NODE) (EXPR_HAS_LOCATION (NODE) ? (NODE)->exp.locus : input_location)
|
||||||
|
|
Loading…
Reference in New Issue