gcc/libcpp
Geoffrey Keating 50668cf626 Index: gcc/ChangeLog
2005-03-14  Geoffrey Keating  <geoffk@apple.com>

	* doc/cppopts.texi (-fexec-charset): Add concept index entry.
	(-fwide-exec-charset): Likewise.
	(-finput-charset): Likewise.
	* doc/invoke.texi (Warning Options): Document -Wnormalized=.
	* c-opts.c (c_common_handle_option): Handle -Wnormalized=.
	* c.opt (Wnormalized): New.

Index: libcpp/ChangeLog
2005-03-14  Geoffrey Keating  <geoffk@apple.com>

	* init.c (cpp_create_reader): Default warn_normalize to normalized_C.
	* charset.c: Update for new format of ucnid.h.
	(ucn_valid_in_identifier): Update for new format of ucnid.h.
	Add NST parameter, and update it; update callers.
	(cpp_valid_ucn): Add NST parameter, update callers.  Replace abort
	with cpp_error.
	(convert_ucn): Pass normalize_state to cpp_valid_ucn.
	* internal.h (struct normalize_state): New.
	(INITIAL_NORMALIZE_STATE): New.
	(NORMALIZE_STATE_RESULT): New.
	(NORMALIZE_STATE_UPDATE_IDNUM): New.
	(_cpp_valid_ucn): New.
	* lex.c (warn_about_normalization): New.
	(forms_identifier_p): Add normalize_state parameter, update callers.
	(lex_identifier): Add normalize_state parameter, update callers.  Keep
	the state current.
	(lex_number): Likewise.
	(_cpp_lex_direct): Pass normalize_state to subroutines.  Check
	it with warn_about_normalization.
	* makeucnid.c: New.
	* ucnid.h: Replace.
	* ucnid.pl: Remove.
	* ucnid.tab: Make appropriate for input to makeucnid.c.  Remove
	comments about obsolete version of C++.
	* include/cpplib.h (enum cpp_normalize_level): New.
	(struct cpp_options): Add warn_normalize field.

Index: gcc/testsuite/ChangeLog
2005-03-14  Geoffrey Keating  <geoffk@apple.com>

	* gcc.dg/cpp/normalize-1.c: New.
	* gcc.dg/cpp/normalize-2.c: New.
	* gcc.dg/cpp/normalize-3.c: New.
	* gcc.dg/cpp/normalize-4.c: New.
	* gcc.dg/cpp/ucnid-4.c: New.
	* gcc.dg/cpp/ucnid-5.c: New.
	* g++.dg/cpp/normalize-1.C: New.
	* g++.dg/cpp/ucnid-1.C: New.

From-SVN: r96459
2005-03-15 00:36:33 +00:00
..
include Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
po tr.po: Update. 2005-03-04 20:29:03 +00:00
.cvsignore configure.ac: Don't invoke ACX_HEADER_STDBOOL. 2004-06-12 05:53:54 +00:00
aclocal.m4 aclocal.m4: Regenerate. 2004-11-24 21:53:28 +00:00
ChangeLog Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
charset.c Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
config.in re PR bootstrap/19818 (GCC 4.0 cannot bootstrap itself) 2005-02-14 08:52:24 +00:00
configure re PR bootstrap/19818 (GCC 4.0 cannot bootstrap itself) 2005-02-14 08:52:24 +00:00
configure.ac re PR bootstrap/19818 (GCC 4.0 cannot bootstrap itself) 2005-02-14 08:52:24 +00:00
directives.c Index: libcpp/ChangeLog 2005-03-12 10:44:06 +00:00
errors.c errors.c (_cpp_begin_message): Print "error: " for errors. 2004-10-14 01:56:22 +01:00
expr.c re PR preprocessor/16192 (Bug in expression evaluation when operand is missing) 2004-07-04 12:57:50 +00:00
files.c directives.c, [...]: Update copyright. 2005-02-14 14:43:56 +00:00
identifiers.c
init.c Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
internal.h Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
lex.c Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
line-map.c
macro.c Index: libcpp/ChangeLog 2005-03-12 10:44:06 +00:00
makedepend.c Remove extra whitespace. 2004-10-11 07:29:17 +02:00
Makefile.in Makefile.in ($(PACKAGE).pot): New rule. 2004-11-09 21:58:43 +00:00
makeucnid.c Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
mkdeps.c Makefile.am: Add makedepend. 2004-06-05 20:58:06 +00:00
pch.c directives.c, [...]: Update copyright. 2005-02-14 14:43:56 +00:00
symtab.c re PR preprocessor/14699 (abort() in hashtable.c in approx_sqrt() with -fmem-report) 2004-09-06 13:22:48 +00:00
system.h configure.ac: Don't invoke ACX_HEADER_STDBOOL. 2004-06-12 05:53:54 +00:00
traditional.c directives.c, [...]: Update copyright. 2005-02-14 14:43:56 +00:00
ucnid.h Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00
ucnid.tab Index: gcc/ChangeLog 2005-03-15 00:36:33 +00:00