gcc/libcpp
Dodji Seketeli 84756fd40a Support expansion of reserved locations wrapped in virtual locations
libcpp/

	* include/line-map.h (linemap_expand_location): Take a line table
	parameter.  Update comment.
	(linemap_resolve_location): Update comment.
	(linemap_expand_location_full): Remove.
	* line-map.c (linemap_resolve_location):  Handle reserved
	locations; return a NULL map in those cases.
	(linemap_expand_location): If location is reserved, return a
	zeroed expanded location.  Update comment.  Take a line table to
	assert that the function takes non-virtual locations only.
	(linemap_expand_location_full): remove.
	(linemap_dump_location): Handle the fact that
	linemap_resolve_location can return NULL line maps when the
	location resolves to a reserved location.

gcc/
	* input.c (expand_location): Rewrite using
	linemap_resolve_location and linemap_expand_location.  Add a
	comment.

From-SVN: r180426
2011-10-25 10:58:54 +02:00
..
include Support expansion of reserved locations wrapped in virtual locations 2011-10-25 10:58:54 +02:00
po be.po, [...]: Update. 2011-07-08 20:29:04 +01:00
aclocal.m4
ChangeLog Support expansion of reserved locations wrapped in virtual locations 2011-10-25 10:58:54 +02:00
charset.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
config.in re PR bootstrap/45538 (--enable-build-with-cxx compiling gcc/libcpp/charset.c) 2010-11-18 07:35:34 +00:00
configure Set need_64bit_hwint to yes for x86 targets. 2011-07-28 07:29:38 -07:00
configure.ac Set need_64bit_hwint to yes for x86 targets. 2011-07-28 07:29:38 -07:00
directives-only.c LINEMAP_POSITION_FOR_COLUMN had the exact same effect as linemap_position_for_column... 2011-08-15 20:35:58 +00:00
directives.c Generate virtual locations for tokens 2011-10-17 11:59:12 +02:00
errors.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
expr.c Make UNSPEC/UNSPECV constants use the enum; Fix 48192; Add test case for 48053 2011-03-21 16:21:30 +00:00
files.c Linemap infrastructure for virtual locations 2011-10-17 11:58:56 +02:00
identifiers.c
init.c Generate virtual locations for tokens 2011-10-17 11:59:12 +02:00
internal.h Fix cpp_peek_token behaviour (PR bootstrap/50778) 2011-10-22 19:49:18 +02:00
lex.c Fix cpp_peek_token behaviour (PR bootstrap/50778) 2011-10-22 19:49:18 +02:00
line-map.c Support expansion of reserved locations wrapped in virtual locations 2011-10-25 10:58:54 +02:00
macro.c Fix bootstrap on !NO_IMPLICIT_EXTERN_C and ia32 targets 2011-10-18 10:44:49 +02:00
Makefile.in Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
makeucnid.c
mkdeps.c files.c (file_hash_eq): Use filename_cmp instead of strcmp. 2011-03-25 20:11:26 +01:00
pch.c remove useless if-before-free tests 2011-04-20 18:19:03 +00:00
symtab.c
system.h system.h [...]: Wrap C function declarations in extern "C". 2011-07-25 14:26:58 +00:00
traditional.c Generate virtual locations for tokens 2011-10-17 11:59:12 +02:00
ucnid.h
ucnid.tab