gcc/libcpp
Nathan Sidwell 9158f0ba97 [linemap PATCH] Constify lookup
https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01080.html
looking up a line map takes a non-constant line_maps object, which is confusing.
This makes the caching fields mutable, so permits a constant object, as one might expect for a lookup.

	* include/line-map.h (struct maps_info_ordinary): Make cache
	mutable.
	(struct maps_info_macro): Likewise.
	(LINEMAPS_CACHE): Remove non-ref accessor. Constify ref accessor.
	(LINEMAPS_ORDINARY_CACHE, LINEMAPS_MACRO_CACHE): Likewise.
	(LINEMAPS_ORDINARY_MAP_AT, LINEMAPS_MACRO_MAP_AT): Use
	LINEMAPS_USED and LINEMAPS_MAP_AT.
	(linemap_lookup): Constify line_map arg.
	linemap.c (linemap_ordinary_map_lookup, linemap_macro_map_lookup):
	Constify line_map arg.

From-SVN: r276994
2019-10-15 12:03:04 +00:00
..
include [linemap PATCH] Constify lookup 2019-10-15 12:03:04 +00:00
po * zh_TW.po: Update. 2019-08-09 23:02:08 +01:00
aclocal.m4
ChangeLog [linemap PATCH] Constify lookup 2019-10-15 12:03:04 +00:00
ChangeLog.jit
charset.c charset.c (UCS_LIMIT): New macro. 2019-09-26 21:43:51 +00:00
config.in
configure
configure.ac
directives-only.c [Preprocessor] small cleanups 2019-08-28 18:43:37 +00:00
directives.c [preprocessor] Popping "" file names 2019-09-06 12:54:19 +00:00
errors.c
expr.c Support decimal floating-point constants in C2x. 2019-10-11 23:22:52 +01:00
files.c [preprocessor/91639] #includes at EOF 2019-09-05 11:23:48 +00:00
identifiers.c
init.c Support decimal floating-point constants in C2x. 2019-10-11 23:22:52 +01:00
internal.h internal.h (enum include_type): Remove trailing comma. 2019-10-02 10:22:05 +00:00
lex.c Handle :: tokens in C for C2x. 2019-10-02 01:08:40 +01:00
line-map.c [linemap PATCH] Constify lookup 2019-10-15 12:03:04 +00:00
location-example.txt
macro.c
Makefile.in
makeucnid.c
mkdeps.c PR c++/61339 - add mismatch between struct and class [-Wmismatched-tags] to non-bugs 2019-07-09 12:32:49 -06:00
pch.c
symtab.c Improve memory statistics report readability. 2019-02-26 17:27:52 +00:00
system.h
traditional.c
ucnid.h
ucnid.tab