public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/20109] New: printf optimizations and non-ASCII character sets
@ 2005-02-21  2:41 jsm28 at gcc dot gnu dot org
  2005-02-22  0:13 ` [Bug middle-end/20109] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-02-21  2:41 UTC (permalink / raw)
  To: gcc-bugs

expand_builtin_printf, expand_builtin_fprintf, expand_builtin_sprintf
and fold_builtin_sprintf presume that the host character set is
compatible with the execution character set.  They should use
the target execution characters for '%', 'c', 's' and '\n'.

-- 
           Summary: printf optimizations and non-ASCII character sets
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/20109] printf optimizations and non-ASCII character sets
  2005-02-21  2:41 [Bug middle-end/20109] New: printf optimizations and non-ASCII character sets jsm28 at gcc dot gnu dot org
@ 2005-02-22  0:13 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22  0:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-21 21:28 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-21 21:28:43
               date|                            |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/20109] printf optimizations and non-ASCII character sets
       [not found] <bug-20109-230@http.gcc.gnu.org/bugzilla/>
  2005-11-28  2:45 ` ghazi at gcc dot gnu dot org
  2005-11-29  5:17 ` ghazi at gcc dot gnu dot org
@ 2005-11-29  5:18 ` ghazi at gcc dot gnu dot org
  2005-11-29  5:18 ` ghazi at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-11-29  5:18 UTC (permalink / raw)
  To: gcc-bugs



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

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=20109


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/20109] printf optimizations and non-ASCII character sets
       [not found] <bug-20109-230@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-11-29  5:18 ` ghazi at gcc dot gnu dot org
@ 2005-11-29  5:18 ` ghazi at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-11-29  5:18 UTC (permalink / raw)
  To: gcc-bugs



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

Author: ghazi
Date: Tue Nov 29 05:18:13 2005
New Revision: 107654

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107654
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): Check for matching
        format strings using the target charset.

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


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


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/20109] printf optimizations and non-ASCII character sets
       [not found] <bug-20109-230@http.gcc.gnu.org/bugzilla/>
  2005-11-28  2:45 ` ghazi at gcc dot gnu dot org
@ 2005-11-29  5:17 ` ghazi at gcc dot gnu dot org
  2005-11-29  5:18 ` ghazi at gcc dot gnu dot org
  2005-11-29  5:18 ` ghazi at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-11-29  5:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ghazi at gcc dot gnu dot org  2005-11-29 05:17 -------
Subject: Bug 20109

Author: ghazi
Date: Tue Nov 29 05:17:20 2005
New Revision: 107652

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107652
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:
    trunk/gcc/testsuite/gcc.dg/charset/builtin2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/20109] printf optimizations and non-ASCII character sets
       [not found] <bug-20109-230@http.gcc.gnu.org/bugzilla/>
@ 2005-11-28  2:45 ` ghazi at gcc dot gnu dot org
  2005-11-29  5:17 ` ghazi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-11-28  2:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ghazi at gcc dot gnu dot org  2005-11-28 02:45 -------


*** This bug has been marked as a duplicate of 25120 ***


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ghazi at gcc dot gnu dot org
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-29  5:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-21  2:41 [Bug middle-end/20109] New: printf optimizations and non-ASCII character sets jsm28 at gcc dot gnu dot org
2005-02-22  0:13 ` [Bug middle-end/20109] " pinskia at gcc dot gnu dot org
     [not found] <bug-20109-230@http.gcc.gnu.org/bugzilla/>
2005-11-28  2:45 ` ghazi at gcc dot gnu dot org
2005-11-29  5:17 ` ghazi at gcc dot gnu dot org
2005-11-29  5:18 ` ghazi at gcc dot gnu dot org
2005-11-29  5:18 ` ghazi at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).