public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered
@ 2005-07-11 21:54 anlauf at hep dot tu-darmstadt dot de
2005-07-11 21:57 ` [Bug fortran/22417] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2005-07-11 21:54 UTC (permalink / raw)
To: gcc-bugs
foo.F:
program foo
#include "foo.h"
end
foo.h:
c This is just a dummy include file for the -*- Fortran -*- preprocessor
% gfortran -c foo.F
Warning: foo.h:3: file foo.F left but not entered
--
Summary: gfortran preprocessing regression: nonsense warning
about file left but not entered
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at hep dot tu-darmstadt dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22417
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22417] [4.0/4.1 Regression] gfortran preprocessing regression: nonsense warning about file left but not entered
2005-07-11 21:54 [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered anlauf at hep dot tu-darmstadt dot de
@ 2005-07-11 21:57 ` pinskia at gcc dot gnu dot org
2005-07-11 23:09 ` jakub at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-11 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-11 21:54 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu dot
| |org, pinskia at gcc dot gnu
| |dot org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2005-07-11 21:54:32
date| |
Summary|gfortran preprocessing |[4.0/4.1 Regression]
|regression: nonsense warning|gfortran preprocessing
|about file left but not |regression: nonsense warning
|entered |about file left but not
| |entered
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22417
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22417] [4.0/4.1 Regression] gfortran preprocessing regression: nonsense warning about file left but not entered
2005-07-11 21:54 [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered anlauf at hep dot tu-darmstadt dot de
2005-07-11 21:57 ` [Bug fortran/22417] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-11 23:09 ` jakub at redhat dot com
2005-07-12 16:04 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at redhat dot com @ 2005-07-11 23:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jakub at redhat dot com 2005-07-11 22:28 -------
Oops. Untested patch, will do more testing tomorrow^Wtoday:
2005-07-12 Jakub Jelinek <jakub@redhat.com>
PR fortran/22417
* scanner.c (preprocessor_line): Fix file left but not entered
warning.
--- gcc/fortran/scanner.c.jj 2005-07-07 17:56:30.000000000 +0200
+++ gcc/fortran/scanner.c 2005-07-12 00:25:07.000000000 +0200
@@ -908,15 +908,15 @@ preprocessor_line (char *c)
if (flag[2]) /* Ending current file. */
{
- if (strcmp (current_file->filename, filename) != 0)
+ if (!current_file->up
+ || strcmp (current_file->up->filename, filename) != 0)
{
gfc_warning_now ("%s:%d: file %s left but not entered",
current_file->filename, current_file->line,
filename);
return;
}
- if (current_file->up)
- current_file = current_file->up;
+ current_file = current_file->up;
}
/* The name of the file can be a temporary file produced by
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22417
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22417] [4.0/4.1 Regression] gfortran preprocessing regression: nonsense warning about file left but not entered
2005-07-11 21:54 [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered anlauf at hep dot tu-darmstadt dot de
2005-07-11 21:57 ` [Bug fortran/22417] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-11 23:09 ` jakub at redhat dot com
@ 2005-07-12 16:04 ` pinskia at gcc dot gnu dot org
2005-07-14 7:19 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-12 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12 15:50 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00820.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |07/msg00820.html
Keywords| |patch
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22417
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22417] [4.0/4.1 Regression] gfortran preprocessing regression: nonsense warning about file left but not entered
2005-07-11 21:54 [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered anlauf at hep dot tu-darmstadt dot de
` (2 preceding siblings ...)
2005-07-12 16:04 ` pinskia at gcc dot gnu dot org
@ 2005-07-14 7:19 ` cvs-commit at gcc dot gnu dot org
2005-07-14 7:21 ` cvs-commit at gcc dot gnu dot org
2005-07-14 13:10 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-14 7:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-14 07:15 -------
Subject: Bug 22417
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jakub@gcc.gnu.org 2005-07-14 07:15:02
Modified files:
gcc/fortran : ChangeLog scanner.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg/g77: cpp5.F cpp5.h cpp5inc.h
Log message:
PR fortran/22417
* scanner.c (preprocessor_line): Don't treat flag 3 as the start of a new
file. Fix file left but not entered warning.
* gfortran.dg/g77/cpp5.F: New test.
* gfortran.dg/g77/cpp5.h: New file.
* gfortran.dg/g77/cpp5inc.h: New file.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.494&r2=1.495
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/scanner.c.diff?cvsroot=gcc&r1=1.21&r2=1.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5767&r2=1.5768
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/g77/cpp5.F.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/g77/cpp5.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/g77/cpp5inc.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22417
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22417] [4.0/4.1 Regression] gfortran preprocessing regression: nonsense warning about file left but not entered
2005-07-11 21:54 [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered anlauf at hep dot tu-darmstadt dot de
` (3 preceding siblings ...)
2005-07-14 7:19 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-14 7:21 ` cvs-commit at gcc dot gnu dot org
2005-07-14 13:10 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-14 7:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-14 07:19 -------
Subject: Bug 22417
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: jakub@gcc.gnu.org 2005-07-14 07:19:07
Modified files:
gcc/fortran : ChangeLog scanner.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg/g77: cpp5.F cpp5.h cpp5inc.h
Log message:
PR fortran/22417
* scanner.c (preprocessor_line): Don't treat flag 3 as the start of a new
file. Fix file left but not entered warning.
* gfortran.dg/g77/cpp5.F: New test.
* gfortran.dg/g77/cpp5.h: New file.
* gfortran.dg/g77/cpp5inc.h: New file.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.88&r2=1.335.2.89
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/scanner.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.16.10.3&r2=1.16.10.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.273&r2=1.5084.2.274
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/g77/cpp5.F.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/g77/cpp5.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/g77/cpp5inc.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22417
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/22417] [4.0/4.1 Regression] gfortran preprocessing regression: nonsense warning about file left but not entered
2005-07-11 21:54 [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered anlauf at hep dot tu-darmstadt dot de
` (4 preceding siblings ...)
2005-07-14 7:21 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-14 13:10 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 13:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-14 13:08 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22417
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-07-14 13:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-11 21:54 [Bug fortran/22417] New: gfortran preprocessing regression: nonsense warning about file left but not entered anlauf at hep dot tu-darmstadt dot de
2005-07-11 21:57 ` [Bug fortran/22417] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-11 23:09 ` jakub at redhat dot com
2005-07-12 16:04 ` pinskia at gcc dot gnu dot org
2005-07-14 7:19 ` cvs-commit at gcc dot gnu dot org
2005-07-14 7:21 ` cvs-commit at gcc dot gnu dot org
2005-07-14 13:10 ` pinskia 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).