This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25120] builtin *printf handlers are confused by -fexec-charset
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2005 00:45:08 -0000
- Subject: [Bug middle-end/25120] builtin *printf handlers are confused by -fexec-charset
- References: <bug-25120-578@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from joseph at codesourcery dot com 2005-11-28 00:45 -------
Subject: Re: New: [3.4/4.0/4.1/4.2] builtin printf/fprintf
is confused by -fexec-charset
On Sun, 27 Nov 2005, ghazi at gcc dot gnu dot org wrote:
> With a program compiled with e.g. -O2 -fexec-charset=IBM1047, the builtin
> handlers for printf and fprintf get confused because they check for matching
> stuff in the format string like "%s", "%s\n", "%c" and trailing "\n" using the
> host's charset values. So they don't match correctly when compiling strings in
This looks the same as bug 20109 to me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25120