gcc/libcpp/include
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
..
cpp-id-data.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
cpplib.h macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
line-map.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
mkdeps.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
symtab.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00