------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-20 
17:01 -------
Subject: Bug 18785

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     [EMAIL PROTECTED]       2005-02-20 17:01:32

Modified files:
        gcc            : ChangeLog builtins.c c-common.c c-common.h 
                         c-objc-common.h c-pretty-print.c defaults.h 
                         langhooks-def.h langhooks.c langhooks.h 
                         system.h 
        gcc/config/arm : arm.c 
        gcc/config/mips: mips.c 
        gcc/cp         : ChangeLog cp-objcp-common.h 
        gcc/doc        : tm.texi 
        gcc/testsuite  : ChangeLog 
        libcpp         : ChangeLog charset.c 
        libcpp/include : cpplib.h 
Added files:
        gcc/testsuite/gcc.dg/charset: builtin1.c 

Log message:
        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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7540&r2=2.7541
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&r1=1.424&r2=1.425
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.604&r2=1.605
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&r1=1.276&r2=1.277
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-objc-common.h.diff?cvsroot=gcc&r1=2.2&r2=2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pretty-print.c.diff?cvsroot=gcc&r1=1.57&r2=1.58
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/defaults.h.diff?cvsroot=gcc&r1=1.167&r2=1.168
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks-def.h.diff?cvsroot=gcc&r1=1.96&r2=1.97
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.c.diff?cvsroot=gcc&r1=1.79&r2=1.80
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.h.diff?cvsroot=gcc&r1=1.102&r2=1.103
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/system.h.diff?cvsroot=gcc&r1=1.242&r2=1.243
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/arm/arm.c.diff?cvsroot=gcc&r1=1.429&r2=1.430
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/mips/mips.c.diff?cvsroot=gcc&r1=1.485&r2=1.486
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4638&r2=1.4639
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-objcp-common.h.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/tm.texi.diff?cvsroot=gcc&r1=1.412&r2=1.413
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5058&r2=1.5059
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/charset/builtin1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/ChangeLog.diff?cvsroot=gcc&r1=1.55&r2=1.56
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/charset.c.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/include/cpplib.h.diff?cvsroot=gcc&r1=1.8&r2=1.9



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18785

Reply via email to