public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44054]  New: Handle -Werror, -Werror=, -fdiagnostics-show-option
@ 2010-05-10 10:21 burnus at gcc dot gnu dot org
  2010-05-10 10:31 ` [Bug fortran/44054] " burnus at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-05-10 10:21 UTC (permalink / raw)
  To: gcc-bugs

The middle end now supports besides -Werror also -Werror=list, where
-Werror=<foo> implies -W<foo>. Additionally, the middle end also annotates via
-fdiagnostics-show-option (enabled by default) the messages with the
warning-flag name in parentheses:

-Wuninitialized  (or, e.g.: -Wall)
  foo.c:4:2: warning: 'j' is used uninitialized in this function
[-Wuninitialized]
-Wuninitialized -fno-diagnostics-show-option:
  foo.c:4:2: warning: 'j' is used uninitialized in this function
-Werror=uninitialized (or, e.g.: -Werror -Wall)
  foo.c:4:2: error: 'j' is used uninitialized in this function
[-Werror=uninitialized]


Expected:

a) -Werror  caues gfortran to print "Error" rather than "Warning"; currently it
only changes the exit status code (and the total error count)

b) -f(no-)diagnostics-show-option is supported by printing the flag in
parenthesis after the warning

c) -Werror=<list> is supported.


-- 
           Summary: Handle -Werror, -Werror=, -fdiagnostics-show-option
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-44054-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-04-16 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-10 10:21 [Bug fortran/44054] New: Handle -Werror, -Werror=, -fdiagnostics-show-option burnus at gcc dot gnu dot org
2010-05-10 10:31 ` [Bug fortran/44054] " burnus at gcc dot gnu dot org
2010-05-10 16:58 ` dfranke at gcc dot gnu dot org
2010-05-10 17:17 ` burnus at gcc dot gnu dot org
2010-05-15  0:44 ` manu at gcc dot gnu dot org
     [not found] <bug-44054-4@http.gcc.gnu.org/bugzilla/>
2014-04-16 19:59 ` manu at gcc dot gnu.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).