* 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 |
|---|---|---|
| .. | ||
| alpha-interix.h | Loading commit data... | |
| alpha-protos.h | Loading commit data... | |
| alpha.c | Loading commit data... | |
| alpha.h | Loading commit data... | |
| alpha.md | Loading commit data... | |
| alpha32.h | Loading commit data... | |
| crtfastmath.c | Loading commit data... | |
| elf.h | Loading commit data... | |
| freebsd.h | Loading commit data... | |
| lib1funcs.asm | Loading commit data... | |
| linux-ecoff.h | Loading commit data... | |
| linux-elf.h | Loading commit data... | |
| linux.h | Loading commit data... | |
| netbsd.h | Loading commit data... | |
| openbsd.h | Loading commit data... | |
| osf.h | Loading commit data... | |
| osf12.h | Loading commit data... | |
| osf2or3.h | Loading commit data... | |
| osf5.h | Loading commit data... | |
| qrnnd.asm | Loading commit data... | |
| t-alpha | Loading commit data... | |
| t-crtfm | Loading commit data... | |
| t-ieee | Loading commit data... | |
| t-interix | Loading commit data... | |
| t-osf4 | Loading commit data... | |
| t-unicosmk | Loading commit data... | |
| t-vms | Loading commit data... | |
| t-vms64 | Loading commit data... | |
| unicosmk.h | Loading commit data... | |
| va_list.h | Loading commit data... | |
| vms-cc.c | Loading commit data... | |
| vms-crt0-64.c | Loading commit data... | |
| vms-crt0.c | Loading commit data... | |
| vms-dwarf2.asm | Loading commit data... | |
| vms-dwarf2eh.asm | Loading commit data... | |
| vms-ld.c | Loading commit data... | |
| vms-psxcrt0-64.c | Loading commit data... | |
| vms-psxcrt0.c | Loading commit data... | |
| vms.h | Loading commit data... | |
| vms64.h | Loading commit data... | |
| vms_tramp.asm | Loading commit data... | |
| vxworks.h | Loading commit data... | |
| x-vms | Loading commit data... | |
| xm-alpha-interix.h | Loading commit data... | |
| xm-vms.h | Loading commit data... | |
| xm-vms64.h | Loading commit data... |