public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* -Wformat and -fexec-charset
@ 2011-06-26 19:15 John P. Hartmann
  2011-06-27 23:57 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: John P. Hartmann @ 2011-06-26 19:15 UTC (permalink / raw)
  To: gcc-help

Not a bug, but it would be nice if the documentation could be amended
to indicate that if the character set specified by -fexec-charset is
different from the compiler's default character set, e.g., if it is an
EBCDIC codepage, -Wformat will usually indicate too many parameters
for the format as the compiler scans for % which in my case is changed
to l by the preprocessor.  As the fexec-charset option is a
preprocessor option, it would no doubt be difficult to translate the
string back in the compiler proper (but it would be nice if it could
be).

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

* Re: -Wformat and -fexec-charset
  2011-06-26 19:15 -Wformat and -fexec-charset John P. Hartmann
@ 2011-06-27 23:57 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2011-06-27 23:57 UTC (permalink / raw)
  To: John P. Hartmann; +Cc: gcc-help

"John P. Hartmann" <jphartmann@gmail.com> writes:

> Not a bug, but it would be nice if the documentation could be amended
> to indicate that if the character set specified by -fexec-charset is
> different from the compiler's default character set, e.g., if it is an
> EBCDIC codepage, -Wformat will usually indicate too many parameters
> for the format as the compiler scans for % which in my case is changed
> to l by the preprocessor.  As the fexec-charset option is a
> preprocessor option, it would no doubt be difficult to translate the
> string back in the compiler proper (but it would be nice if it could
> be).

This just sounds like a bug to me.  Please open a bug report per
http://gcc.gnu.org/bugs/ .  Thanks.

Ian

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

end of thread, other threads:[~2011-06-27 22:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-26 19:15 -Wformat and -fexec-charset John P. Hartmann
2011-06-27 23:57 ` Ian Lance Taylor

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).