Commit 411f92de by Dodji Seketeli Committed by Dodji Seketeli

Fix bootstrapping with --disable-checking

libcpp/ChangeLog

	* line-map.c (linemap_macro_map_loc_to_exp_point): Avoid setting a
	variable without using it if ENABLE_CHECKING is not defined.  Mark
	the LOCATION parameter as being unused.

From-SVN: r180090
parent 7d5a0f1b
2011-10-17 Dodji Seketeli <dodji@redhat.com>
* line-map.c (linemap_macro_map_loc_to_exp_point): Avoid setting a
variable without using it if ENABLE_CHECKING is not defined. Mark
the LOCATION parameter as being unused.
2011-10-15 Tom Tromey <tromey@redhat.com> 2011-10-15 Tom Tromey <tromey@redhat.com>
Dodji Seketeli <dodji@redhat.com> Dodji Seketeli <dodji@redhat.com>
......
...@@ -621,18 +621,16 @@ linemap_macro_expansion_map_p (const struct line_map *map) ...@@ -621,18 +621,16 @@ linemap_macro_expansion_map_p (const struct line_map *map)
Read the comments of struct line_map and struct line_map_macro in Read the comments of struct line_map and struct line_map_macro in
line-map.h to understand what a macro expansion point is. */ line-map.h to understand what a macro expansion point is. */
source_location static source_location
linemap_macro_map_loc_to_exp_point (const struct line_map *map, linemap_macro_map_loc_to_exp_point (const struct line_map *map,
source_location location) source_location location ATTRIBUTE_UNUSED)
{ {
unsigned token_no;
linemap_assert (linemap_macro_expansion_map_p (map) linemap_assert (linemap_macro_expansion_map_p (map)
&& location >= MAP_START_LOCATION (map)); && location >= MAP_START_LOCATION (map));
/* Make sure LOCATION is correct. */ /* Make sure LOCATION is correct. */
token_no = location - MAP_START_LOCATION (map); linemap_assert ((location - MAP_START_LOCATION (map))
linemap_assert (token_no < MACRO_MAP_NUM_MACRO_TOKENS (map)); < MACRO_MAP_NUM_MACRO_TOKENS (map));
return MACRO_MAP_EXPANSION_POINT_LOCATION (map); return MACRO_MAP_EXPANSION_POINT_LOCATION (map);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment