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 top level: 2005-06-13 08:26:05 +00:00
ChangeLog macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
charset.c re PR preprocessor/30001 (out-of-bounds access when processing empty file) 2006-12-28 18:45:48 +00:00
config.in configure.ac: Check declarations for asprintf and vasprintf. 2005-05-28 15:52:48 +00:00
configure depstand.m4 (ZW_CREATE_DEPDIR): Use mkinstalldirs to make directory. 2007-01-27 19:50:38 +00:00
configure.ac configure.in (skipdirs): Don't build target-libiberty for SPU. 2006-11-21 01:35:42 +00:00
directives.c make alloca call type correct 2007-03-30 22:40:19 +00:00
errors.c cp-tree.h (cp_cpp_error), [...]): Take va_list* parameter. 2005-11-04 01:16:32 +00:00
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 all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
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 all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
macro.c macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER. 2007-05-24 20:55:36 +00:00
makedepend.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
Makefile.in * Makefile.in: Add dummy install-pdf target. 2007-03-01 15:56:24 -08:00
makeucnid.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
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 all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
system.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
traditional.c all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
ucnid.h all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00
ucnid.tab all files: Update FSF address in copyright headers. 2005-06-29 02:34:39 +00:00