public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20138] New: fortran (frontend/driver?) bug: array bound checking conflicts with preprocessing
@ 2005-02-22 15:06 anlauf at hep dot tu-darmstadt dot de
2005-02-22 15:10 ` [Bug fortran/20138] fortran (driver?) " anlauf at hep dot tu-darmstadt dot de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2005-02-22 15:06 UTC (permalink / raw)
To: gcc-bugs
Hi,
save the following dummy program as gfcbug24.F90 (capital "F"):
program gfcbug24_F90
print *, "Hey, it works now!"
end program gfcbug24_F90
Then compile with:
% gfortran -C gfcbug24.F90
I get:
gfortran: GCC does not support -C or -CC without -E
Preprocessing normally works, but the -C options seems to interfere
here. -E is certainly not what I want...
Cheers,
-ha
--
Summary: fortran (frontend/driver?) bug: array bound checking
conflicts with preprocessing
Product: gcc
Version: 4.0.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=20138
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20138] fortran (driver?) bug: array bound checking conflicts with preprocessing
2005-02-22 15:06 [Bug fortran/20138] New: fortran (frontend/driver?) bug: array bound checking conflicts with preprocessing anlauf at hep dot tu-darmstadt dot de
@ 2005-02-22 15:10 ` anlauf at hep dot tu-darmstadt dot de
2005-02-22 15:16 ` anlauf at hep dot tu-darmstadt dot de
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2005-02-22 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From anlauf at hep dot tu-darmstadt dot de 2005-02-22 08:48 -------
It looks very much like a driver problem, because the option -std=f95
instead of -C makes it even funnier:
cc1: warning: command line option "-std=f95" is valid for F95 but not for C
But at least it does compile...
-ha
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|fortran (frontend/driver?) |fortran (driver?) bug: array
|bug: array bound checking |bound checking conflicts
|conflicts with preprocessing|with preprocessing
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20138
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20138] fortran (driver?) bug: array bound checking conflicts with preprocessing
2005-02-22 15:06 [Bug fortran/20138] New: fortran (frontend/driver?) bug: array bound checking conflicts with preprocessing anlauf at hep dot tu-darmstadt dot de
2005-02-22 15:10 ` [Bug fortran/20138] fortran (driver?) " anlauf at hep dot tu-darmstadt dot de
@ 2005-02-22 15:16 ` anlauf at hep dot tu-darmstadt dot de
2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: anlauf at hep dot tu-darmstadt dot de @ 2005-02-22 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From anlauf at hep dot tu-darmstadt dot de 2005-02-22 08:54 -------
While I'm at it: the option -pipe also has a funny side effect:
f951: error: unrecognized command line option "-95"
And it produces a file "-95" in the current directory that contains
the preprocessed source. Oh well...
-ha
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20138
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20138] fortran (driver?) bug: array bound checking conflicts with preprocessing
2005-02-22 15:06 [Bug fortran/20138] New: fortran (frontend/driver?) bug: array bound checking conflicts with preprocessing anlauf at hep dot tu-darmstadt dot de
2005-02-22 15:10 ` [Bug fortran/20138] fortran (driver?) " anlauf at hep dot tu-darmstadt dot de
2005-02-22 15:16 ` anlauf at hep dot tu-darmstadt dot de
@ 2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
2005-04-10 8:36 ` cvs-commit at gcc dot gnu dot org
2005-04-10 8:44 ` tkoenig at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22 18:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-22 14:06 -------
-C is not valid option at all for bound checking. -fbounds-check is the correct option.
*** This bug has been marked as a duplicate of 18452 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20138
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20138] fortran (driver?) bug: array bound checking conflicts with preprocessing
2005-02-22 15:06 [Bug fortran/20138] New: fortran (frontend/driver?) bug: array bound checking conflicts with preprocessing anlauf at hep dot tu-darmstadt dot de
` (2 preceding siblings ...)
2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
@ 2005-04-10 8:36 ` cvs-commit at gcc dot gnu dot org
2005-04-10 8:44 ` tkoenig at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-10 8:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-04-10 08:36 -------
Subject: Bug 20138
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tkoenig@gcc.gnu.org 2005-04-10 08:35:40
Modified files:
libgfortran : ChangeLog
libgfortran/io : transfer.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gfortran.dg: eor_handling_1.f90 eor_handling_2.f90
eor_handling_3.f90 eor_handling_4.f90
eor_handling_5.f90 noadv_size.f90
pad_no.f90
Log message:
2005-04-10 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/17992
PR libfortran/19568
PR libfortran/19595
PR libfortran/20005
PR libfortran/20092
PR libfortran/20131
PR libfortran/20138
PR libfortran/20661
PR libfortran/20744
* io/transfer.c (top level): eor_condition: New static variable.
(read_sf): Remove unnecessary zeroing of buffer (there is enough
information in its length).
Return a string of length 0 (to be padded by caller) if EOR was
seen previously.
Remove erroneous special casing of EOR for standard input.
Set eor_condition for non-advancing I/O if an end of line was
detected.
Increment ioparm.size if necessary.
(formatted_transfer): Skip the function if there is an EOR condition.
(data_transfer_init): Initialize eor_condition to zero (false).
(next_record_r): Clear sf_seen_eor if a \n has been seen already.
(finalize_transfer): If there is an EOR condition, raise the error.
2005-04-10 Thomas Koenig <Thomas.Koenig@online.de>
* eor_handling_1.f90: New test case.
* eor_handling_2.f90: New test case.
* eor_handling_3.f90: New test case.
* eor_handling_4.f90: New test case.
* eor_handling_5.f90: New test case.
* noadv_size.f90: New test case.
* pad_no.f90: New test case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&r1=1.188&r2=1.189
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&r1=1.35&r2=1.36
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5320&r2=1.5321
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_1.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_3.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_4.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/eor_handling_5.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/noadv_size.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/pad_no.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20138
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/20138] fortran (driver?) bug: array bound checking conflicts with preprocessing
2005-02-22 15:06 [Bug fortran/20138] New: fortran (frontend/driver?) bug: array bound checking conflicts with preprocessing anlauf at hep dot tu-darmstadt dot de
` (3 preceding siblings ...)
2005-04-10 8:36 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-10 8:44 ` tkoenig at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-04-10 8:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tkoenig at gcc dot gnu dot org 2005-04-10 08:44 -------
(In reply to comment #4)
> Subject: Bug 20138
Whoops, an erroneous entry in the Changelog here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20138
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-04-10 8:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 15:06 [Bug fortran/20138] New: fortran (frontend/driver?) bug: array bound checking conflicts with preprocessing anlauf at hep dot tu-darmstadt dot de
2005-02-22 15:10 ` [Bug fortran/20138] fortran (driver?) " anlauf at hep dot tu-darmstadt dot de
2005-02-22 15:16 ` anlauf at hep dot tu-darmstadt dot de
2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
2005-04-10 8:36 ` cvs-commit at gcc dot gnu dot org
2005-04-10 8:44 ` tkoenig 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).