public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/49143] New: make -Wsuggest-attribute less verbose
@ 2011-05-24 16:29 madcoder at debian dot org
  2011-05-24 19:47 ` [Bug middle-end/49143] " manu at gcc dot gnu.org
  2011-05-25  6:28 ` madcoder at debian dot org
  0 siblings, 2 replies; 3+ messages in thread
From: madcoder at debian dot org @ 2011-05-24 16:29 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: make -Wsuggest-attribute less verbose
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: madcoder@debian.org


In many code bases, -Wsuggest-attribute={const|pure} is really verbose (unlike
missing printf/sccanf format attributes or noreturn attributes, which are
rarer).

Though it's not particularly useful to mark functions as pure/const when those
are known inside the compilation unit or are inline. It'd be great to be able
to restrict the -Wsuggest-attribute to functions whose storage isn't static
because those are the functions for those it's useful (because it's likely that
the prototype lives in some header to be used by external programs).


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

* [Bug middle-end/49143] make -Wsuggest-attribute less verbose
  2011-05-24 16:29 [Bug c/49143] New: make -Wsuggest-attribute less verbose madcoder at debian dot org
@ 2011-05-24 19:47 ` manu at gcc dot gnu.org
  2011-05-25  6:28 ` madcoder at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: manu at gcc dot gnu.org @ 2011-05-24 19:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org
          Component|c                           |middle-end

--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2011-05-24 19:16:16 UTC ---
Pierre, could you add some testcase(s) please? http://gcc.gnu.org/bugs/#need


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

* [Bug middle-end/49143] make -Wsuggest-attribute less verbose
  2011-05-24 16:29 [Bug c/49143] New: make -Wsuggest-attribute less verbose madcoder at debian dot org
  2011-05-24 19:47 ` [Bug middle-end/49143] " manu at gcc dot gnu.org
@ 2011-05-25  6:28 ` madcoder at debian dot org
  1 sibling, 0 replies; 3+ messages in thread
From: madcoder at debian dot org @ 2011-05-25  6:28 UTC (permalink / raw)
  To: gcc-bugs

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

Pierre Habouzit <madcoder at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Pierre Habouzit <madcoder at debian dot org> 2011-05-25 06:03:31 UTC ---
looks like with the last gcc-4.6 it's already what happens, sorry for the
noise!


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

end of thread, other threads:[~2011-05-25  6:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 16:29 [Bug c/49143] New: make -Wsuggest-attribute less verbose madcoder at debian dot org
2011-05-24 19:47 ` [Bug middle-end/49143] " manu at gcc dot gnu.org
2011-05-25  6:28 ` madcoder at debian 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).