8sa1-gcc/gcc/testsuite/gcc.dg/cpp
Neil Booth 0fef3fd0ea cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
* cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
	* cpphash.c (_cpp_init_hashtable): Similarly.
	* cppinit.c (cpp_create_reader): Default the signed_char flag.
	(init_builtins): Define __CHAR_UNSIGNED__ appropriately.
	(COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
	(cpp_handle_option): Handle the new options.
	* cpplex.c (cpp_interpret_charconst): Use new flag.
	* cpplib.h (struct cpp_options): New member signed_char.
	* gcc.c (cpp_unique_options): Remove %c spec and documentation.
	(cpp_options): Handle -fsigned-char and -funsigned-char.
	(static_specs): Remove signed_char_spec.
	(do_spec1): Don't handle %c.
	* system.h: Poison SIGNED_CHAR_SPEC.
	* tradcif.y (yylex): Use flag_signed_char.
	* tradcpp.h (flag_signed_char): New.
	* tradcpp.c (flag_signed_char): New.
	(main): Handle new command-line options.
	(initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
config:
	* alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
	* avr/avr.h: Remove old comments.
	* i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
	(CC1_SPEC): Pass -fsigned-char if -mic*.
	(SIGNED_CHAR_SPEC): Remove.
doc:
	* tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
testsuite:
	* gcc.dg/cpp/uchar-1.c, uchar-2.c, uchar-3.c: New tests.

From-SVN: r49444
2002-02-02 18:56:37 +00:00
..
_Pragma1.c _Pragma1.c: Update. 2000-11-15 19:23:41 +00:00
_Pragma2.c _Pragma1.c: Update. 2000-11-15 19:23:41 +00:00
19921210-1.c
19930510-1.c
19940712-1.c
19940712-1.h
19940712-1a.h
19940712-1b.h
19951025-1.c re PR preprocessor/3081 (Preprocessor merges 2 first lines when -imacros is being used) 2001-08-05 17:31:25 +00:00
19951227-1.c cppexp.c: Update all code for new lexer interface. 2000-07-08 02:33:00 +00:00
19960224-1.c
19990119-1.c
19990228-1.c
19990407-1.c
19990409-1.c
19990413-1.c
20000127-1.c
20000129-1.c
20000207-1.c
20000207-2.c
20000209-1.c
20000209-2.c
20000301-1.c
20000419-1.c
20000519-1.c
20000529-1.c
20000625-1.c
20000625-2.c * gcc.dg/cpp/20000625-2.c: Correct line number. 2001-09-25 06:18:03 +00:00
20000627-1.c
20000628-1.c
20000628-1.h
20000628-1a.h
20000725-1.c * gcc.dg/cpp/20000725-1.c: New test. 2000-07-31 21:51:10 +02:00
assembl2.S * gcc.dg/cpp/assembl2.S: New test case. 2001-01-18 06:34:18 +00:00
assembler.S 20000510-1.S: Rename assembler.S. 2000-09-23 11:47:05 +00:00
assert1.c
assert2.c cppexp.c: Update all code for new lexer interface. 2000-07-08 02:33:00 +00:00
assert3.c cpp.texi: Update for new command line assertion syntax. 2000-10-31 23:34:59 +00:00
assert_trad1.c c-decl.c (c_decode_option): Give deprecation warning for -traditional. 2001-11-18 17:16:24 +00:00
assert_trad2.c assert_trad1.c, [...]: New tests. 2000-12-04 22:06:41 +00:00
assert_trad3.c assert_trad1.c, [...]: New tests. 2000-12-04 22:06:41 +00:00
avoidpaste1.c * gcc.dg/cpp/avoidpaste1.c: Update. 2001-02-06 19:09:39 +00:00
avoidpaste2.c * gcc.dg/cpp/avoidpaste2.c: New tests. 2001-02-01 19:15:06 +00:00
backslash2.c * gcc.dg/cpp/backslash2.c 2000-12-06 20:14:32 +00:00
backslash.c cppfiles.c: Move all default-#defines to top of file. 2000-09-12 03:42:30 +00:00
c89-pedantic.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
c89.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
c94-pedantic.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
c94.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
c99-pedantic.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
c99.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
c++98-pedantic.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
c++98.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
charconst-2.c cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension. 2001-11-23 11:01:16 +01:00
charconst.c cpp.texi: Update for handling of charconsts. 2001-05-23 22:50:28 +00:00
cmdlne-C2.c cmdlne-C.c: Update. 2001-10-09 06:16:25 +00:00
cmdlne-C.c cmdlne-C.c: Update. 2001-10-09 06:16:25 +00:00
cmdlne-dD.c cmdlne-dD.c: New test. 2000-07-17 18:08:54 +00:00
cmdlne-dM.c cmdlne-dD.c: New test. 2000-07-17 18:08:54 +00:00
cmdlne-P.c * gcc.dg/cpp/cmdlne-P.c: New test. 2000-12-18 19:37:18 +00:00
cpp.exp cpp.exp: For testing on a remote host, copy across all the headers. 2001-11-20 03:51:02 +00:00
cxxcom1.c
cxxcom2.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
defined_trad.c Tests by Zack Weinberg <zackw@stanford.edu>. 2000-12-13 19:47:04 +00:00
defined.c cppexp.c (lex, [...]): Update warning about defined. 2001-11-05 22:26:13 +00:00
digraph1.c c-common.h (flag_digraphs): New. 2000-07-13 10:12:08 +00:00
digraph2.c c-common.h (flag_digraphs): New. 2000-07-13 10:12:08 +00:00
digraphs.c c-decl.c (grokdeclarator): In C99 mode... 2001-02-12 17:31:42 +00:00
direct2.c cppinit.c (cpp_post_options): Shut off macro expansion if -fpreprocessed. 2001-05-10 00:07:23 +00:00
direct2s.c cppinit.c (cpp_post_options): Shut off macro expansion if -fpreprocessed. 2001-05-10 00:07:23 +00:00
directiv.c c-parse.in (_yylex): Use _cpp_backup_tokens. 2001-09-13 20:05:17 +00:00
escape-1.c cpp.texi: Update for handling of charconsts. 2001-05-23 22:50:28 +00:00
escape-2.c cpp.texi: Update for handling of charconsts. 2001-05-23 22:50:28 +00:00
escape.c cpp.texi: Update for handling of charconsts. 2001-05-23 22:50:28 +00:00
extratokens.c cpphash.h (struct_lexer_state): Delete was_skipping. 2001-07-26 06:02:47 +00:00
fpreprocessed.c * gcc.dg/cpp/fpreprocessed.c: New test. 2001-11-25 16:48:40 +00:00
gnuc89-pedantic.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
gnuc89.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
gnuc99-pedantic.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
gnuc99.c c++98.c,c++98-pedantic.c,c89.c,c89-pedantic.c, [...]: New tests. 2000-12-02 10:16:01 +00:00
hash1.c
hash2.c
ident.c ident.c: Don't expect #ident strings in the assembly output. 2000-07-05 18:17:23 +00:00
if-1.c cppexp.c: Update all code for new lexer interface. 2000-07-08 02:33:00 +00:00
if-2.c * gcc.dg/cpp/if-2.c: Adjust for signed wchar_t. 2001-01-18 12:00:38 +00:00
if-3.c method.c (build_mangled_C9x_name): Rename to build_mangled_C99_name. 2000-11-25 19:50:51 +00:00
if-4.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
if-5.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
if-cexp.c
if-mop.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
if-mpar.c
if-oppr.c
if-paren.c
if-sc.c
if-shift.c
if-unary.c
include1.c defined.c, [...]: New tests. 2000-10-29 17:43:57 +00:00
include2.c * gcc.dg/cpp/include2.c: Make test locale independent. 2000-11-25 15:39:37 +00:00
lexident.c
lexnum.c
lexstrng.c lexstrng.c: Don't include string.h. 2000-08-19 05:25:00 +00:00
line1.c
line2.c
line3.c
line4.c
line5.c cppmain.c (scan_translation_unit): Don't worry about putting a space after hashes. 2001-09-16 11:23:56 +00:00
macro1.c
macro2.c cpplex.c (push_macro_context): Set an argument's level after calling parse_args. 2000-09-16 07:18:06 +00:00
macro3.c * gcc.dg/cpp/macro3.c,macro4.c,strp1.c: Update. 2001-01-20 09:34:13 +00:00
macro4.c * gcc.dg/cpp/macro3.c,macro4.c,strp1.c: Update. 2001-01-20 09:34:13 +00:00
macro5.c macro4.c, macro5.c: New tests. 2000-10-29 11:49:09 +00:00
macro6.c * gcc.dg/cpp/macro6.c: New test cases. 2000-12-03 12:07:40 +00:00
macro7.c cpplex.c (_cpp_lex_token): Don't warn about directives in macro arguments when looking for the '('. 2001-03-03 22:14:08 +00:00
macro8.c * gcc.dg/cpp/macro8.c: New tests. 2001-07-31 06:52:21 +00:00
macro9.c * gcc.dg/cpp/macro9.c: Update to make lucky passes harder. 2001-09-15 18:42:58 +00:00
macro10.c c-lex.c (cb_def_pragma): Update. 2001-09-24 22:53:12 +00:00
macro11.c * gcc.dg/cpp/macro11.c: New test. 2001-10-02 22:30:15 +00:00
macsyntx.c * gcc.dg/cpp/macsyntx.c: Use correct command line option. 2000-11-20 18:28:43 +00:00
mi1.c * gcc.dg/cpp/mi1.c: Update. 2001-03-14 19:36:15 +00:00
mi1c.h macro4.c, macro5.c: New tests. 2000-10-29 11:49:09 +00:00
mi1cc.h
mi1nd.h
mi1ndp.h
mi1x.h
mi2.c
mi2a.h
mi2b.h
mi2c.h
mi3.c defined.c, [...]: New tests. 2000-10-29 17:43:57 +00:00
mi3.def
mi3.h defined.c, [...]: New tests. 2000-10-29 17:43:57 +00:00
mi4.c cppfiles.c (lookup_include_file): Rename to open_file. 2000-09-21 18:01:22 +00:00
mi5.c macro4.c, macro5.c: New tests. 2000-10-29 11:49:09 +00:00
mi6.c cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic. 2001-11-23 07:50:42 +00:00
mi6a.h * mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests. 2001-10-01 10:04:36 +00:00
mi6b.h * mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests. 2001-10-01 10:04:36 +00:00
mi6c.h * mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: New test. 2001-09-30 12:02:22 +00:00
mi6d.h * mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests. 2001-10-01 10:04:36 +00:00
mi6e.h * mi6.c, mi6a.h, mi6b.h, mi6c.h, mi6d.h, mi6e.h: Correct tests. 2001-10-01 10:04:36 +00:00
multiline.c * gcc.dg/cpp/multiline.c: Update. 2001-03-03 18:10:34 +00:00
paste1.c
paste2.c paste2.c: Update test. 2000-11-21 00:00:50 +00:00
paste3.c
paste4.c avoidpaste1.c: Update. 2001-01-31 07:50:11 +00:00
paste5.c cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry macros, not five. 2000-07-18 23:25:06 +00:00
paste6.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
paste7.c [multiple changes] 2000-07-31 23:47:19 +00:00
paste8.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
paste9.c * paste9.c: New preprocessor ## test. 2000-09-14 21:13:10 +00:00
paste10.c cpplex.c (ON_REST_ARG): Correct the test. 2000-09-15 05:55:36 +00:00
paste11.c defined.c, [...]: New tests. 2000-10-29 17:43:57 +00:00
poison.c lineflags.c: New tests. 2000-12-09 12:07:56 +00:00
pragma-1.c [multiple changes] 2000-08-20 21:36:18 +00:00
pragma-2.c [multiple changes] 2000-08-20 21:36:18 +00:00
redef1.c
redef2.c cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic. 2001-11-23 07:50:42 +00:00
skipping2.c cpphash.h (struct_lexer_state): Delete was_skipping. 2001-07-26 06:02:47 +00:00
skipping.c lineflags.c: New tests. 2000-12-09 12:07:56 +00:00
spacing1.c cppmacro.c (funlike_invocation_p): Move some logic to caller in enter_macro_context. 2001-10-08 06:15:14 +00:00
spacing2.c cppmain.c (struct printer): New member source. 2001-10-12 22:31:04 +00:00
strify1.c
strify2.c *** empty log message *** 2000-10-28 18:10:41 +00:00
strify3.c c-lex.c (cb_def_pragma): Update. 2001-09-24 22:53:12 +00:00
strp1.c * gcc.dg/cpp/macro3.c,macro4.c,strp1.c: Update. 2001-01-20 09:34:13 +00:00
strp2.c
syshdr1.h syshdr.c: New test. 2000-07-17 20:05:01 +00:00
syshdr2.h syshdr.c: New test. 2000-07-17 20:05:01 +00:00
syshdr.c syshdr.c: New test. 2000-07-17 20:05:01 +00:00
syshdr.h syshdr.h: New file. 2001-05-06 09:48:28 +00:00
sysmac1.c syshdr.h: New file. 2001-05-06 09:48:28 +00:00
sysmac2.c syshdr.h: New file. 2001-05-06 09:48:28 +00:00
tr-define.c tradcpp.c (do_define): Make sure we don't walk past limit. 2001-05-02 22:50:01 +02:00
tr-direct.c * gcc.dg/cpp/tr-direct.c: Update. 2000-12-13 07:28:54 +00:00
tr-paste.c c-decl.c (c_decode_option): Give deprecation warning for -traditional. 2001-11-18 17:16:24 +00:00
tr-sign.c re PR preprocessor/3824 (With -traditional, CPP 0xffffffff > 0 but C 0xffffffff < 0) 2001-08-05 21:31:30 +00:00
tr-str.c c-decl.c (c_decode_option): Give deprecation warning for -traditional. 2001-11-18 17:16:24 +00:00
tr-warn1.c * gcc.dg/cpp/tr-warn1.c: Add tests. 2001-01-31 07:57:12 +00:00
tr-warn2.c
tr-warn3.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
tr-warn4.c wtr-aggr-init-1.c, [...]: Update. 2000-12-07 23:21:09 +00:00
tr-warn5.c wtr-aggr-init-1.c, [...]: Update. 2000-12-07 23:21:09 +00:00
tr-warn6.c wtr-aggr-init-1.c, [...]: Update. 2000-12-07 23:21:09 +00:00
trigraphs.c macro4.c, macro5.c: New tests. 2000-10-29 11:49:09 +00:00
uchar-1.c cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__. 2002-02-02 18:56:37 +00:00
uchar-2.c cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__. 2002-02-02 18:56:37 +00:00
uchar-3.c cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__. 2002-02-02 18:56:37 +00:00
ucs.c * gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts. 2001-12-07 17:51:04 -08:00
unc1.c Integrated preprocessor. 2000-09-07 00:37:14 +00:00
unc2.c Integrated preprocessor. 2000-09-07 00:37:14 +00:00
unc3.c Integrated preprocessor. 2000-09-07 00:37:14 +00:00
unc4.c Integrated preprocessor. 2000-09-07 00:37:14 +00:00
undef1.c c-parse.in (_yylex): Use _cpp_backup_tokens. 2001-09-13 20:05:17 +00:00
undef2.c 19960224-2.c, [...]: Update tests for new diagnostic messages. 2000-10-28 18:01:40 +00:00
vararg1.c cpplex.c (parse_args): Don't set VOID_REST flag. 2000-09-25 23:35:10 +00:00
vararg2.c cpplib.c (run_directive): Use correct line number for output of _Pragma. 2000-11-01 20:21:13 +00:00
widestr1.c widestr1.c: Update. 2001-01-13 18:40:49 +00:00
Wtrigraphs.c * gcc.gd/cpp/Wtrigraphs.c: New test. 2000-11-22 20:37:44 +00:00