0fef3fd0ea
* 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
46 lines
2.0 KiB
C
46 lines
2.0 KiB
C
/* C Compatible Compiler Preprocessor (CCCP)
|
|
Copyright (C) 1986, 1987, 1989, 2000 Free Software Foundation, Inc.
|
|
Written by Paul Rubin, June 1986
|
|
Adapted to ANSI C, Richard Stallman, Jan 1987
|
|
Dusted off, polished, and adapted for use as traditional
|
|
preprocessor only, Zack Weinberg, Jul 2000
|
|
|
|
This program is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License as published by the
|
|
Free Software Foundation; either version 2, or (at your option) any
|
|
later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
|
|
#ifndef GCC_TRADCPP_H
|
|
#define GCC_TRADCPP_H
|
|
|
|
extern void error PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
|
|
extern void warning PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1;
|
|
extern void fatal PARAMS ((const char *msgid, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
|
|
extern void error_with_line PARAMS ((int, const char *msgid, ...)) ATTRIBUTE_PRINTF_2;
|
|
extern void error_from_errno PARAMS ((const char *msgid));
|
|
|
|
extern void perror_with_name PARAMS ((const char *msgid));
|
|
extern void pfatal_with_name PARAMS ((const char *msgid)) ATTRIBUTE_NORETURN;
|
|
extern void fancy_abort PARAMS ((int, const char *)) ATTRIBUTE_NORETURN;
|
|
|
|
extern struct hashnode *lookup PARAMS ((const unsigned char *, int, int));
|
|
extern int parse_c_expression PARAMS ((const char *)); /* in tradcif.y */
|
|
extern int test_assertion PARAMS ((unsigned char **));
|
|
extern int flag_signed_char;
|
|
|
|
#define is_idchar(x) ISIDNUM(x)
|
|
#define is_idstart(x) ISIDST(x)
|
|
#define is_space(x) ISSPACE(x)
|
|
#define is_nvspace(x) (IS_NVSPACE(x) && x != '\0')
|
|
|
|
#endif /* ! GCC_TRADCPP_H */
|