gcc/libcpp
Joseph Myers d3f4ff8b51 ucnid-2011-1.c: New test.
gcc/testsuite:
	* c-c++-common/cpp/ucnid-2011-1.c: New test.

libcpp:
	* ucnid.tab: Add C11 and C11NOSTART data.
	* makeucnid.c (digit): Rename enum value to N99.
	(C11, N11, all_languages): New enum values.
	(NUM_CODE_POINTS, MAX_CODE_POINT): New macros.
	(flags, decomp, combining_value): Use NUM_CODE_POINTS as array
	size.
	(decomp): Use unsigned int as element type.
	(all_decomp): New array.
	(read_ucnid): Handle C11 and C11NOSTART.  Use MAX_CODE_POINT.
	(read_table): Use MAX_CODE_POINT.  Store all decompositions in
	all_decomp.
	(read_derived): Use MAX_CODE_POINT.
	(write_table): Use NUM_CODE_POINTS.  Print N99, C11 and N11
	flags.  Print whole array variable declaration rather than just
	array contents.
	(char_id_valid, write_context_switch): New functions.
	(main): Call write_context_switch.
	* ucnid.h: Regenerate.
	* include/cpplib.h (struct cpp_options): Add c11_identifiers.
	* init.c (struct lang_flags): Add c11_identifiers.
	(cpp_set_lang): Set c11_identifiers option from selected language.
	* internal.h (struct normalize_state): Document "previous" as
	previous starter character.
	(NORMALIZE_STATE_UPDATE_IDNUM): Take character as argument.
	* charset.c (DIG): Rename enum value to N99.
	(C11, N11): New enum values.
	(struct ucnrange): Give name to struct.  Use short for flags and
	unsigned int for end of range.  Include ucnid.h for whole variable
	declaration.
	(ucn_valid_in_identifier): Allow for characters up to 0x10FFFF.
	Allow for C11 in determining valid characters and valid start
	characters.  Use check_nfc for non-Hangul context-dependent
	checks.  Only store starter characters in nst->previous.
	(_cpp_valid_ucn): Pass new argument to
	NORMALIZE_STATE_UPDATE_IDNUM.
	* lex.c (lex_identifier): Pass new argument to
	NORMALIZE_STATE_UPDATE_IDNUM.  Call NORMALIZE_STATE_UPDATE_IDNUM
	after initial non-UCN part of identifier.
	(lex_number): Pass new argument to NORMALIZE_STATE_UPDATE_IDNUM.

From-SVN: r204886
2013-11-16 00:05:08 +00:00
..
include ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
po * tr.po: Update. 2013-11-01 22:26:30 +00:00
aclocal.m4
ChangeLog ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
charset.c ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
config.in configure.ac: Don't define ENABLE_CHECKING whenever --enable-checking is seen... 2013-02-28 10:58:47 +01:00
configure Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
configure.ac Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
directives-only.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
directives.c re PR middle-end/56461 (GCC is leaking lots of memory) 2013-03-06 17:18:40 +01:00
errors.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
expr.c Implement C++14 digit separators. 2013-10-31 14:01:23 +00:00
files.c files.c (_cpp_stack_include): Fix the highest_location when header file is guarded by #ifndef and is included... 2013-06-24 17:31:45 +00:00
identifiers.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
init.c ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
internal.h ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
lex.c ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
line-map.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
macro.c macro.c (_cpp_builtin_macro_text): Correct wording of two warnings. 2013-11-06 23:28:08 +01:00
Makefile.in Add --enable-host-shared configuration option 2013-10-15 20:33:55 +00:00
makeucnid.c ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
mkdeps.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
pch.c re PR middle-end/56461 (GCC is leaking lots of memory) 2013-03-01 22:06:04 +01:00
symtab.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
system.h Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
traditional.c Update copyright years in libcpp. 2013-01-14 18:13:59 +00:00
ucnid.h ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00
ucnid.tab ucnid-2011-1.c: New test. 2013-11-16 00:05:08 +00:00