gcc/libcpp
Simon Baldwin c047ce9383 cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined.
* include/cpplib.h (struct cpp_options): Add new boolean flag
	warn_builtin_macro_redefined.
	* init.c (cpp_create_reader): Initialize warn_builtin_macro_redefined.
	* (struct builtin_operator): Split out from previous struct builtin,
	enhance extra const correctness.
	* (struct builtin_macro): Split out from previous struct builtin, add
	new always_warn_if_redefined flag, enhance const correctness.
	* (mark_named_operators): Use struct builtin_operator.
	* (cpp_init_special_builtins): Use struct builtin_macro, add NODE_WARN
	to builtins selectively.
	* macro.c (warn_of_redefinition): Return false if a builtin macro
	is not flagged with NODE_WARN.

	* c-opts.c (c_common_handle_option): Add handling for
	-Wbuiltin-macro-redefined command line option.
	* c.opt: Added builtin-macro-redefined option.
	* doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
	documentation.

	* gcc.dg/builtin-redefine.c: New.

From-SVN: r140461
2008-09-18 15:39:08 +00:00
..
include cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined. 2008-09-18 15:39:08 +00:00
po gcc.pot: Regenerate. 2008-08-27 18:44:43 +01:00
aclocal.m4
ChangeLog cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined. 2008-09-18 15:39:08 +00:00
charset.c
config.in
configure
configure.ac
directives-only.c line-map.h (linenum_type): New typedef. 2008-07-21 09:33:38 +00:00
directives.c re PR preprocessor/28079 (#line range not verified without -pedantic) 2008-07-22 09:45:58 +00:00
errors.c line-map.h (linenum_type): New typedef. 2008-07-21 09:33:38 +00:00
expr.c
files.c re PR preprocessor/36649 (-H option doesn't work as expected) 2008-07-31 21:12:14 +02:00
identifiers.c
init.c cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined. 2008-09-18 15:39:08 +00:00
internal.h line-map.h (linenum_type): New typedef. 2008-07-21 09:33:38 +00:00
lex.c line-map.h (linenum_type): New typedef. 2008-07-21 09:33:38 +00:00
line-map.c line-map.h (linenum_type): New typedef. 2008-07-21 09:33:38 +00:00
macro.c cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined. 2008-09-18 15:39:08 +00:00
makedepend.c
Makefile.in
makeucnid.c
mkdeps.c
pch.c
symtab.c
system.h
traditional.c line-map.h (linenum_type): New typedef. 2008-07-21 09:33:38 +00:00
ucnid.h
ucnid.tab