* 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
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| include | Loading commit data... | |
| .cvsignore | Loading commit data... | |
| bugreport.texi | Loading commit data... | |
| c-tree.texi | Loading commit data... | |
| collect2.texi | Loading commit data... | |
| configfiles.texi | Loading commit data... | |
| configterms.texi | Loading commit data... | |
| contrib.texi | Loading commit data... | |
| contribute.texi | Loading commit data... | |
| cpp.texi | Loading commit data... | |
| cppinternals.texi | Loading commit data... | |
| extend.texi | Loading commit data... | |
| fragments.texi | Loading commit data... | |
| frontends.texi | Loading commit data... | |
| gcc.texi | Loading commit data... | |
| gccint.texi | Loading commit data... | |
| gcov.texi | Loading commit data... | |
| gnu.texi | Loading commit data... | |
| headerdirs.texi | Loading commit data... | |
| hostconfig.texi | Loading commit data... | |
| install-old.texi | Loading commit data... | |
| install.texi | Loading commit data... | |
| install.texi2html | Loading commit data... | |
| interface.texi | Loading commit data... | |
| invoke.texi | Loading commit data... | |
| languages.texi | Loading commit data... | |
| makefile.texi | Loading commit data... | |
| md.texi | Loading commit data... | |
| objc.texi | Loading commit data... | |
| passes.texi | Loading commit data... | |
| portability.texi | Loading commit data... | |
| rtl.texi | Loading commit data... | |
| service.texi | Loading commit data... | |
| sourcebuild.texi | Loading commit data... | |
| standards.texi | Loading commit data... | |
| tm.texi | Loading commit data... | |
| trouble.texi | Loading commit data... | |
| vms.texi | Loading commit data... |