public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13050] New: RFE: Support for implementation-specific format specifiers in format string warnings
@ 2003-11-14 13:45 jonwil at tpgi dot com dot au
  2003-11-14 18:37 ` [Bug c/13050] " pinskia at gcc dot gnu dot org
  2004-02-13 18:58 ` sean_woolcock at yahoo dot com
  0 siblings, 2 replies; 6+ messages in thread
From: jonwil at tpgi dot com dot au @ 2003-11-14 13:45 UTC (permalink / raw)
  To: gcc-bugs

GCC will warn about invalid format specifiers in format strings with printf and
similar functions. However, the list of format specifiers that GCC warns about
is the specific list given in the ANSI/ISO C standard. However, many runtime
libraries (including the runtime library used on the MingW target, which is the
standard windows C runtime from Microsoft) support extra format specifiers (for
example, the Microsoft runtime supports %wZ for printing out a special kind of
string used by the windows kernel). Basicly, this is a request for a feature
(perhaps in the SPEC file) to enable specific implementations to add/modify the
list of which format specifiers GCC will warn about.
I do know that you can turn the warning off with -Wno-format but that defeats
the purpose of format argument validation.

Directly related to this would be a way to specify that a particular function
(and argument to that function) should be interpereted as a format specifier
string and checked as such.

-- 
           Summary: RFE: Support for implementation-specific format
                    specifiers in format string warnings
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jonwil at tpgi dot com dot au
                CC: gcc-bugs at gcc dot gnu dot org,jonwil at tpgi dot com
                    dot au
 GCC build triplet: all
  GCC host triplet: all
GCC target triplet: all


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


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

* [Bug c/13050] RFE: Support for implementation-specific format specifiers in format string warnings
  2003-11-14 13:45 [Bug c/13050] New: RFE: Support for implementation-specific format specifiers in format string warnings jonwil at tpgi dot com dot au
@ 2003-11-14 18:37 ` pinskia at gcc dot gnu dot org
  2004-02-13 18:58 ` sean_woolcock at yahoo dot com
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-14 18:37 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-14 18:37:28
               date|                            |


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


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

* [Bug c/13050] RFE: Support for implementation-specific format specifiers in format string warnings
  2003-11-14 13:45 [Bug c/13050] New: RFE: Support for implementation-specific format specifiers in format string warnings jonwil at tpgi dot com dot au
  2003-11-14 18:37 ` [Bug c/13050] " pinskia at gcc dot gnu dot org
@ 2004-02-13 18:58 ` sean_woolcock at yahoo dot com
  1 sibling, 0 replies; 6+ messages in thread
From: sean_woolcock at yahoo dot com @ 2004-02-13 18:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sean_woolcock at yahoo dot com  2004-02-13 18:58 -------
> Directly related to this would be a way to specify that a particular function
> (and argument to that function) should be interpereted as a format specifier
> string and checked as such.

Check out the "format" attribute here:
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html

-- 


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


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

* [Bug c/13050] RFE: Support for implementation-specific format specifiers in format string warnings
       [not found] <bug-13050-4@http.gcc.gnu.org/bugzilla/>
  2011-09-21 15:30 ` manu at gcc dot gnu.org
@ 2011-09-21 15:33 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2011-09-21 15:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-09-21 15:08:38 UTC ---
> about the ~2000 unconfirmed bugs.

2622 last time (i.e. today) I looked at the number vs. 3670 new;-(


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

* [Bug c/13050] RFE: Support for implementation-specific format specifiers in format string warnings
       [not found] <bug-13050-4@http.gcc.gnu.org/bugzilla/>
@ 2011-09-21 15:30 ` manu at gcc dot gnu.org
  2011-09-21 15:33 ` dominiq at lps dot ens.fr
  1 sibling, 0 replies; 6+ messages in thread
From: manu at gcc dot gnu.org @ 2011-09-21 15:30 UTC (permalink / raw)
  To: gcc-bugs

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |manu at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-09-21 15:04:16 UTC ---
(In reply to comment #2)
> This feature was added to 4.4.0 and there are now format specifiers for ms and
> gnu printf/scanf styles.
> As this feature won't be backported to 3.4.0, this bug should be closed.
> Danny any objections about this?

No, be bold and close stuff. So much useless open stuff that nobody cares
anymore about the ~2000 unconfirmed bugs.


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

* [Bug c/13050] RFE: Support for implementation-specific format specifiers in format string warnings
       [not found] <bug-13050-7366@http.gcc.gnu.org/bugzilla/>
@ 2009-09-10  9:33 ` ktietz at gcc dot gnu dot org
  0 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-09-10  9:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ktietz at gcc dot gnu dot org  2009-09-10 09:33 -------
This feature was added to 4.4.0 and there are now format specifiers for ms and
gnu printf/scanf styles.
As this feature won't be backported to 3.4.0, this bug should be closed.
Danny any objections about this?


-- 

ktietz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu dot
                   |                            |org, dannysmith at users dot
                   |                            |sourceforge dot net


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


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

end of thread, other threads:[~2011-09-21 15:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-14 13:45 [Bug c/13050] New: RFE: Support for implementation-specific format specifiers in format string warnings jonwil at tpgi dot com dot au
2003-11-14 18:37 ` [Bug c/13050] " pinskia at gcc dot gnu dot org
2004-02-13 18:58 ` sean_woolcock at yahoo dot com
     [not found] <bug-13050-7366@http.gcc.gnu.org/bugzilla/>
2009-09-10  9:33 ` ktietz at gcc dot gnu dot org
     [not found] <bug-13050-4@http.gcc.gnu.org/bugzilla/>
2011-09-21 15:30 ` manu at gcc dot gnu.org
2011-09-21 15:33 ` dominiq at lps dot ens.fr

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