This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/25120] builtin *printf handlers are confused by -fexec-charset



------- Comment #9 from ghazi at gcc dot gnu dot org  2005-11-29 05:18 -------
Subject: Bug 25120

Author: ghazi
Date: Tue Nov 29 05:17:56 2005
New Revision: 107653

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107653
Log:
        PR middle-end/20109
        PR middle-end/25120
        * builtins.c (init_target_chars): New.
        (expand_builtin_printf, expand_builtin_fprintf,
        expand_builtin_sprintf, fold_builtin_sprintf,
        maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
        fold_builtin_snprintf_chk, fold_builtin_printf,
        fold_builtin_fprintf): Check for matching format strings using
        the target charset.

testsuite:
        * gcc.dg/charset/builtin2.c: New test.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/charset/builtin2.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/builtins.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]