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 re PR other/35457 (Error building GCC trunk on CELL SPU) 2008-04-18 10:28:53 +00:00
ChangeLog cpplib.h (struct cpp_options): Add new boolean flag warn_builtin_macro_redefined. 2008-09-18 15:39:08 +00:00
charset.c re PR preprocessor/36479 (Short buffer in libcpp) 2008-06-12 10:03:41 -07:00
config.in ( 5) 2007-12-03 21:04:47 +00:00
configure Makefile.tpl ($(srcdir)/configure): Update dependencies. 2008-06-17 23:13:35 +00:00
configure.ac MAINTAINERS (mt port): Remove. 2008-06-07 19:00:15 +01:00
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 re PR preprocessor/36320 (Required diagnosis of syntax error missed) 2008-05-30 14:25:09 +00:00
files.c re PR preprocessor/36649 (-H option doesn't work as expected) 2008-07-31 21:12:14 +02:00
identifiers.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
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 Makefile.tpl ($(srcdir)/configure): Update dependencies. 2008-06-17 23:13:35 +00:00
makeucnid.c
mkdeps.c re PR preprocessor/35458 (Dependency generation (-M) does not quote '#' in filenames) 2008-03-06 18:08:40 +00:00
pch.c Fixup whitespacing 2007-06-01 02:12:37 +00:00
symtab.c symtab.h (HT_ALLOCED): Remove. 2008-05-21 15:00:59 +00:00
system.h
traditional.c line-map.h (linenum_type): New typedef. 2008-07-21 09:33:38 +00:00
ucnid.h
ucnid.tab