-
- Downloads
re PR middle-end/18785 (isdigit builtin function fails with EBCDIC character sets)
PR 18785 libcpp: * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. (cpp_host_to_exec_charset): New function. * include/cpplib.h: Declare cpp_host_to_exec_charset. gcc: * langhooks.h (struct lang_hooks): Add to_target_charset. * langhooks.c (lhd_to_target_charset): New function. * langhooks-def.h: Declare lhd_to_target_charset. (LANG_HOOKS_TO_TARGET_CHARSET): New macro. (LANG_HOOKS_INITIALIZER): Update. * c-common.c (c_common_to_target_charset): New function. * c-common.h: Declare it. * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to c_common_to_target_charset. * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0) (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT): Delete definitions. * system.h: Poison them. * doc/tm.texi: Don't discuss them. * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset. * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char. (pp_c_char): Do not attempt to generate letter escapes for newline, tab, etc. * config/arm/arm.c (output_ascii_pseudo_op): Likewise. * config/mips/mips.c (mips_output_ascii): Likewise. gcc/cp: * cp-objcp-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to c_common_to_target_charset. Delete bogus comment. gcc/testsuite: * gcc.dg/charset/builtin1.c: New test. From-SVN: r95304
Showing
- gcc/ChangeLog 27 additions, 2 deletionsgcc/ChangeLog
- gcc/builtins.c 11 additions, 4 deletionsgcc/builtins.c
- gcc/c-common.c 21 additions, 0 deletionsgcc/c-common.c
- gcc/c-common.h 2 additions, 0 deletionsgcc/c-common.h
- gcc/c-objc-common.h 2 additions, 0 deletionsgcc/c-objc-common.h
- gcc/c-pretty-print.c 26 additions, 39 deletionsgcc/c-pretty-print.c
- gcc/config/arm/arm.c 18 additions, 49 deletionsgcc/config/arm/arm.c
- gcc/config/mips/mips.c 10 additions, 46 deletionsgcc/config/mips/mips.c
- gcc/cp/ChangeLog 116 additions, 110 deletionsgcc/cp/ChangeLog
- gcc/cp/cp-objcp-common.h 2 additions, 0 deletionsgcc/cp/cp-objcp-common.h
- gcc/defaults.h 0 additions, 13 deletionsgcc/defaults.h
- gcc/doc/tm.texi 0 additions, 37 deletionsgcc/doc/tm.texi
- gcc/langhooks-def.h 3 additions, 0 deletionsgcc/langhooks-def.h
- gcc/langhooks.c 6 additions, 0 deletionsgcc/langhooks.c
- gcc/langhooks.h 9 additions, 0 deletionsgcc/langhooks.h
- gcc/system.h 2 additions, 1 deletiongcc/system.h
- gcc/testsuite/ChangeLog 15 additions, 10 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/charset/builtin1.c 25 additions, 0 deletionsgcc/testsuite/gcc.dg/charset/builtin1.c
- libcpp/ChangeLog 13 additions, 6 deletionslibcpp/ChangeLog
- libcpp/charset.c 59 additions, 2 deletionslibcpp/charset.c
Loading
Please register or sign in to comment