This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add a Solaris-specific format string check
On Sun, Jul 18, 2004 at 10:48:40AM +0000, Joseph S. Myers wrote:
> On Fri, 16 Jul 2004, Daniel Jacobowitz wrote:
>
> > -/* The C standard version C++ is treated as equivalent to
> > - or inheriting from, for the purpose of format features supported. */
> > -#define CPLUSPLUS_STD_VER STD_C94
>
> Why is this moving to the header?
It seemed to me that it was logically related to the STD_ constants and
might be reasonably used for the warning threshold of some format
string provided by a C++ library. No strong feelings either way.
> > +Solaris targets support the @code{cmn_err} (or @code{__cmn_err__}) format
> > +check. @code{cmn_err} accepts a subset of the standard @code{printf}
> > +conversions, and the two-argument @code{%b} conversion for displaying
> > +bitfields. See the Solaris man page for @code{cmn_err} for more information.
>
> That should be "bit-fields" with a hyphen.
>
> > +target-specific format checking information for the @code{-Wformat}
>
> @option{-Wformat}.
Thanks. OK otherwise? I suppose I need someone else's approval for
the Solaris bits...
--
Daniel Jacobowitz