gcc/libcpp
Joseph Myers 93d45d9eda cppopts.texi (-dU): Document.
gcc:
	* doc/cppopts.texi (-dU): Document.
	* c-common.h (flag_dump_macros): Update comment.
	* c-opts.c (handle_OPT_d): Handle -dU.
	* c-ppoutput.c (macro_queue, define_queue, undef_queue,
	dump_queued_macros, cb_used_define, cb_used_undef): New.
	(init_pp_output): Handle -dU.
	(cb_line_change): Call dump_queued_macros.
	* toplev.c (decode_d_option): Accept -dU as preprocessor option.

gcc/testsuite:
	* gcc.dg/cpp/cmdlne-dU-1.c, gcc.dg/cpp/cmdlne-dU-2.c,
	gcc.dg/cpp/cmdlne-dU-3.c, gcc.dg/cpp/cmdlne-dU-4.c,
	gcc.dg/cpp/cmdlne-dU-5.c, gcc.dg/cpp/cmdlne-dU-6.c,
	gcc.dg/cpp/cmdlne-dU-7.c, gcc.dg/cpp/cmdlne-dU-8.c,
	gcc.dg/cpp/cmdlne-dU-9.c, gcc.dg/cpp/cmdlne-dU-10.c,
	gcc.dg/cpp/cmdlne-dU-11.c, gcc.dg/cpp/cmdlne-dU-12.c,
	gcc.dg/cpp/cmdlne-dU-13.c, gcc.dg/cpp/cmdlne-dU-14.c,
	gcc.dg/cpp/cmdlne-dU-15.c, gcc.dg/cpp/cmdlne-dU-16.c,
	gcc.dg/cpp/cmdlne-dU-17.c, gcc.dg/cpp/cmdlne-dU-18.c,
	gcc.dg/cpp/cmdlne-dU-19.c, gcc.dg/cpp/cmdlne-dU-20.c,
	gcc.dg/cpp/cmdlne-dU-21.c, gcc.dg/cpp/cmdlne-dU-22.c: New tests.

libcpp:
	* include/cpplib.h (struct cpp_callbacks): Add used_define,
	used_undef and before_define.
	(NODE_USED): Define.
	* directives.c (do_define, do_undef, undefine_macros, do_ifdef,
	do_ifndef, cpp_pop_definition): Handle new flag and use new
	callbacks.
	* expr.c (parse_defined): Handle new flag and use new callbacks.
	* macro.c (enter_macro_context, _cpp_free_definition): Handle new
	flag and use new callbacks.

From-SVN: r133847
2008-04-02 20:42:53 +01:00
..
include cppopts.texi (-dU): Document. 2008-04-02 20:42:53 +01:00
po * fr.po: Update. 2008-03-28 02:07:37 +00:00
aclocal.m4
ChangeLog cppopts.texi (-dU): Document. 2008-04-02 20:42:53 +01:00
charset.c charset.c (convert_using_iconv): Close out any shift states, returning to the initial state. 2007-12-11 20:38:10 -05:00
config.in ( 5) 2007-12-03 21:04:47 +00:00
configure ( 5) 2007-12-03 21:04:47 +00:00
configure.ac ( 5) 2007-12-03 21:04:47 +00:00
directives-only.c directives-only.c: New file. 2007-07-30 18:29:20 +00:00
directives.c cppopts.texi (-dU): Document. 2008-04-02 20:42:53 +01:00
errors.c cp-tree.h (cp_cpp_error), [...]): Take va_list* parameter. 2005-11-04 01:16:32 +00:00
expr.c cppopts.texi (-dU): Document. 2008-04-02 20:42:53 +01:00
files.c re PR pch/13675 (#including a precompiled header more than once in the same unit fails) 2008-04-01 12:58:02 +02:00
identifiers.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
init.c tree-cfg.c (remove_bb): Only warn if line is non-zero. 2007-09-06 16:24:05 +00:00
internal.h re PR c/29172 (--combine can't handle #pragma once) 2007-12-06 18:56:26 +00:00
lex.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
line-map.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
macro.c cppopts.texi (-dU): Document. 2008-04-02 20:42:53 +01:00
makedepend.c
Makefile.in Makefile.in (POSTCOMPILE): New variable. 2008-03-28 13:32:47 +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
system.h
traditional.c traditional.c (lex_identifier): Use CPP_HASHNODE. 2008-02-20 02:16:43 +00:00
ucnid.h
ucnid.tab