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