This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, fortran] PR24767 -Wno-unused-label does not work properly


:ADDPATCH fortran:

-Wno-unused-label from common.opt should be used instead of
-Wno-unused-labels from fortran/lang.opt.

Passing -Wall -Wno-unused-label to gfortran did not suppress the warning
about an unused label since gfortran crafted it's own flag called
-W(no-)unused-labels instead of using the commonly used flag in
singular.

This patch removes the fortran specific flag in favour of using the
common flag.

I'll try to find the time to regtest this patch during the weekend, but
i don't believe it can cause any harm (fwiw ;).

thanks,

fortran/ChangeLog

2006-10-13  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/24767
        * lang.opt (Wunused-labels): Remove.
        * options.c: Remove references to gfc_option.warn_unused_labels.
        * gfortran.h: Remove variable warn_unused_labels.               
        * resolve.c (warn_unused_fortran_label) : Use warn_unused_label
        instead of gfc_option.warn_unused_labels.
        * invoke.texi: Remove documentation of -Wunused-labels.

testsuite/ChangeLog

2006-10-13  Bernhard Fischer  <aldot@gcc.gnu.org>

        PR fortran/24767
        * gfortran.dg/label_4.f90: Adjust warning flag.

Attachment: gfortran-4.2.pr24767.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]