gcc/libcpp
Ollie Wild a702045a24 macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER.
* macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER.
	* pch.c (cpp_write_pch_deps): Save __COUNTER__ state.
	(cpp_write_pch_state): Save __COUNTER__ state.
	(cpp_valid_state): Check valid __COUNTER__ state.
	(cpp_read_state): Read new __COUNTER__ state.
	* include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator.
	* init.c (builtin_array): Add __COUNTER__/BT_COUNTER.
	* internal.h (struct cpp_reader): Add counter member.

	* gcc.dg/cpp/counter-1.c: New test.
	* gcc.dg/pch/counter-1.c: New test.
	* gcc.dg/pch/counter-1.hs: New file.
	* gcc.dg/pch/counter-2.c: New test.
	* gcc.dg/pch/counter-2.hs: New file.
	* gcc.dg/pch/counter-3.c: New test.
	* gcc.dg/pch/counter-3.hs: New file.

	* doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
	description.

From-SVN: r125041
2007-05-24 20:55:36 +00:00
..
include macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
po * cpplib.pot: Regenerate. 2007-03-07 18:01:18 +00:00
aclocal.m4
ChangeLog macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
charset.c
config.in
configure
configure.ac
directives.c make alloca call type correct 2007-03-30 22:40:19 +00:00
errors.c
expr.c expr.c (cpp_classify_number): Warn about dfp constant for -pedantic. 2007-05-14 23:45:40 +00:00
files.c internal.h (struct cpp_reader): Add new fields: nonexistent_file_hash and nonexistent_file_ob. 2007-05-21 23:43:53 +00:00
identifiers.c
init.c macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
internal.h macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
lex.c re PR preprocessor/29966 (crash in cc1 with backtrace from free()) 2007-01-30 15:46:01 +00:00
line-map.c
macro.c macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
makedepend.c
Makefile.in * Makefile.in: Add dummy install-pdf target. 2007-03-01 15:56:24 -08:00
makeucnid.c
mkdeps.c re PR preprocessor/30468 (-M not fully chops dirname) 2007-01-30 15:50:00 +00:00
pch.c macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
symtab.c
system.h
traditional.c
ucnid.h
ucnid.tab