public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26277] New: false warning abiout unused label
@ 2006-02-14 10:06 kloedej at knmi dot nl
2006-02-14 13:15 ` [Bug fortran/26277] " tobi at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: kloedej at knmi dot nl @ 2006-02-14 10:06 UTC (permalink / raw)
To: gcc-bugs
When compiling the following testprogram a false warning is issued about not
using the label.
program testlabel
open(unit=12, file="dummy",status="old",&
action="read",err=99)
print *,"file is now open"
stop
99 print *,"could not open file ..."
end program testlabel
I used the following command to compile:
>gfortran -c Test.F90
In file Test.F90:8
99 print *,"could not open file ..."
1
Warning: Label 99 at (1) defined but not used
>
I used the following gfortran version:
>gfortran -v
Using built-in specs.
Target: i386-linux
Configured with: ../gcc/configure --prefix=/tmp/gfortran-20060212/irun
--enable-languages=c,fortran --host=i386-linux
--with-gmp=/tmp/gfortran-20060212/gfortran_libs
Thread model: posix
gcc version 4.2.0 20060212 (experimental)
>
best regards,
Jos de Kloe
--
Summary: false warning abiout unused label
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kloedej at knmi dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26277] false warning abiout unused label
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
@ 2006-02-14 13:15 ` tobi at gcc dot gnu dot org
2006-02-14 13:34 ` [Bug fortran/26277] false warning about unused label for a warning used in err= tobi at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-02-14 13:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tobi at gcc dot gnu dot org 2006-02-14 13:15 -------
Of course this needs -Wunused-labels, confirmed.
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-02-14 13:15:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26277] false warning about unused label for a warning used in err=
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
2006-02-14 13:15 ` [Bug fortran/26277] " tobi at gcc dot gnu dot org
@ 2006-02-14 13:34 ` tobi at gcc dot gnu dot org
2006-02-14 15:34 ` tobi at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-02-14 13:34 UTC (permalink / raw)
To: gcc-bugs
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tobi at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-02-14 13:15:15 |2006-02-14 13:34:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26277] false warning about unused label for a warning used in err=
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
2006-02-14 13:15 ` [Bug fortran/26277] " tobi at gcc dot gnu dot org
2006-02-14 13:34 ` [Bug fortran/26277] false warning about unused label for a warning used in err= tobi at gcc dot gnu dot org
@ 2006-02-14 15:34 ` tobi at gcc dot gnu dot org
2006-02-14 19:21 ` tobi at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-02-14 15:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tobi at gcc dot gnu dot org 2006-02-14 15:34 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2006-02/msg01063.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26277] false warning about unused label for a warning used in err=
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
` (2 preceding siblings ...)
2006-02-14 15:34 ` tobi at gcc dot gnu dot org
@ 2006-02-14 19:21 ` tobi at gcc dot gnu dot org
2006-02-14 19:22 ` tobi at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-02-14 19:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from tobi at gcc dot gnu dot org 2006-02-14 19:21 -------
Subject: Bug 26277
Author: tobi
Date: Tue Feb 14 19:21:07 2006
New Revision: 110993
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110993
Log:
fortran/
PR fortran/26277
* io.c (match_ltag): Mark label as referenced.
testsuite/
PR fortran/26277
* gfortran.dg/label_4.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/label_4.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/io.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26277] false warning about unused label for a warning used in err=
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
` (3 preceding siblings ...)
2006-02-14 19:21 ` tobi at gcc dot gnu dot org
@ 2006-02-14 19:22 ` tobi at gcc dot gnu dot org
2006-03-19 15:09 ` tobi at gcc dot gnu dot org
2006-03-19 15:10 ` tobi at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-02-14 19:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from tobi at gcc dot gnu dot org 2006-02-14 19:22 -------
Fixed. This is not important enough to justify backporting to 4.1.
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26277] false warning about unused label for a warning used in err=
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
` (4 preceding siblings ...)
2006-02-14 19:22 ` tobi at gcc dot gnu dot org
@ 2006-03-19 15:09 ` tobi at gcc dot gnu dot org
2006-03-19 15:10 ` tobi at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-03-19 15:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tobi at gcc dot gnu dot org 2006-03-19 15:09 -------
Subject: Bug 26277
Author: tobi
Date: Sun Mar 19 15:09:33 2006
New Revision: 112214
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112214
Log:
2006-03-19 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
(backport r110993)
PR fortran/26277
* io.c (match_ltag): Mark label as referenced.
2006-03-19 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
(backport r110993)
PR fortran/26277
* gfortran.dg/label_4.f90: New.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/label_4.f90
- copied unchanged from r110993,
trunk/gcc/testsuite/gfortran.dg/label_4.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/io.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/26277] false warning about unused label for a warning used in err=
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
` (5 preceding siblings ...)
2006-03-19 15:09 ` tobi at gcc dot gnu dot org
@ 2006-03-19 15:10 ` tobi at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: tobi at gcc dot gnu dot org @ 2006-03-19 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from tobi at gcc dot gnu dot org 2006-03-19 15:10 -------
Recent discussion lead me to backport this to 4.1.
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.2.0 |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26277
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-03-19 15:10 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-14 10:06 [Bug fortran/26277] New: false warning abiout unused label kloedej at knmi dot nl
2006-02-14 13:15 ` [Bug fortran/26277] " tobi at gcc dot gnu dot org
2006-02-14 13:34 ` [Bug fortran/26277] false warning about unused label for a warning used in err= tobi at gcc dot gnu dot org
2006-02-14 15:34 ` tobi at gcc dot gnu dot org
2006-02-14 19:21 ` tobi at gcc dot gnu dot org
2006-02-14 19:22 ` tobi at gcc dot gnu dot org
2006-03-19 15:09 ` tobi at gcc dot gnu dot org
2006-03-19 15:10 ` tobi at gcc dot gnu 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).