aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/input.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 330d9fd..bb998d1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2016-09-21 Jason Merrill <jason@redhat.com>
+
+ * input.h (from_macro_definition_at): New.
+
2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
* doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
diff --git a/gcc/input.h b/gcc/input.h
index e95bd3c..fe80605 100644
--- a/gcc/input.h
+++ b/gcc/input.h
@@ -77,6 +77,11 @@ extern location_t input_location;
comes from a macro expansion, O otherwise. */
#define from_macro_expansion_at(LOC) \
((linemap_location_from_macro_expansion_p (line_table, LOC)))
+/* Return a positive value if LOCATION is the locus of a token that comes from
+ a macro definition, O otherwise. This differs from from_macro_expansion_at
+ in its treatment of macro arguments, for which this returns false. */
+#define from_macro_definition_at(LOC) \
+ ((linemap_location_from_macro_definition_p (line_table, LOC)))
static inline location_t
get_pure_location (location_t loc)