public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic
@ 2007-01-26 22:18 jb at gcc dot gnu dot org
2007-01-27 0:02 ` [Bug fortran/30605] " kargl at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: jb at gcc dot gnu dot org @ 2007-01-26 22:18 UTC (permalink / raw)
To: gcc-bugs
-Wno-tabs according to the manual currently is active for -pedantic, -std=f95,
and -Wall. It should be active for -std=f2003 as well. Finally, it's not
actually active for -pedantic.
% cat xtabs.f90
print *, "hi"
end
-std=f2003 and -pedantic don't work:
% gfortran -std=f2003 xtabs.f90
%
% gfortran -pedantic xtabs.f90
%
-std=f95 and -Wall do work:
% gfortran -std=f95 xtabs.f90
xtabs.f90:1.1:
print *, "hi"
1
Warning: Nonconforming tab character at (1)
% gfortran -Wall xtabs.f90
xtabs.f90:1.1:
print *, "hi"
1
Warning: Nonconforming tab character at (1)
--
Summary: -Wno-tabs should be active for -std=f2003 and -pedantic
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jb at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
2007-01-27 0:02 ` [Bug fortran/30605] " kargl at gcc dot gnu dot org
@ 2007-01-27 0:02 ` kargl at gcc dot gnu dot org
2007-01-27 0:45 ` kargl at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-01-27 0:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from kargl at gcc dot gnu dot org 2007-01-27 00:01 -------
Created an attachment (id=12966)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12966&action=view)
untested patch
Here's an untested patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
@ 2007-01-27 0:02 ` kargl at gcc dot gnu dot org
2007-01-27 0:02 ` kargl at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-01-27 0:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kargl at gcc dot gnu dot org 2007-01-27 00:02 -------
Confirmed. I just attached an untested patch.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-01-27 00:02:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
2007-01-27 0:02 ` [Bug fortran/30605] " kargl at gcc dot gnu dot org
2007-01-27 0:02 ` kargl at gcc dot gnu dot org
@ 2007-01-27 0:45 ` kargl at gcc dot gnu dot org
2007-01-27 18:01 ` kargl at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-01-27 0:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kargl at gcc dot gnu dot org 2007-01-27 00:45 -------
Testing the patch shows -pedantic has found some invalid code
in the testsuite.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-01-27 0:45 ` kargl at gcc dot gnu dot org
@ 2007-01-27 18:01 ` kargl at gcc dot gnu dot org
2007-01-30 23:06 ` jb at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-01-27 18:01 UTC (permalink / raw)
To: gcc-bugs
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |kargl at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-01-27 00:02:23 |2007-01-27 18:01:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-01-27 18:01 ` kargl at gcc dot gnu dot org
@ 2007-01-30 23:06 ` jb at gcc dot gnu dot org
2007-01-30 23:09 ` sgk at troutmask dot apl dot washington dot edu
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jb at gcc dot gnu dot org @ 2007-01-30 23:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jb at gcc dot gnu dot org 2007-01-30 23:06 -------
As an aside, aren't -Wtabs and -Wno-tabs reversed? Now -Wno-tabs warns against
tabs, but shouldn't it be -Wtabs that warns against using them and -Wno-tabs
should turn the warning off?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-01-30 23:06 ` jb at gcc dot gnu dot org
@ 2007-01-30 23:09 ` sgk at troutmask dot apl dot washington dot edu
2007-02-01 11:30 ` jb at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2007-01-30 23:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from sgk at troutmask dot apl dot washington dot edu 2007-01-30 23:09 -------
Subject: Re: -Wno-tabs should be active for -std=f2003 and -pedantic
On Tue, Jan 30, 2007 at 11:06:24PM -0000, jb at gcc dot gnu dot org wrote:
>
> ------- Comment #4 from jb at gcc dot gnu dot org 2007-01-30 23:06 -------
> As an aside, aren't -Wtabs and -Wno-tabs reversed? Now -Wno-tabs warns against
> tabs, but shouldn't it be -Wtabs that warns against using them and -Wno-tabs
> should turn the warning off?
>
Well, when I wrote the original patch I interpreted -Wno-tabs
as "No tabs allowed in source", and -Wtabs is its opposite.
We can change this if others want.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-01-30 23:09 ` sgk at troutmask dot apl dot washington dot edu
@ 2007-02-01 11:30 ` jb at gcc dot gnu dot org
2007-02-04 21:32 ` [Bug fortran/30605] [4.2 only] " kargl at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jb at gcc dot gnu dot org @ 2007-02-01 11:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jb at gcc dot gnu dot org 2007-02-01 11:30 -------
Right, I guess that's an equally valid POV. Thus, I don't think it's worth the
trouble to reverse them and confuse our users.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] [4.2 only] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-02-01 11:30 ` jb at gcc dot gnu dot org
@ 2007-02-04 21:32 ` kargl at gcc dot gnu dot org
2007-02-06 0:28 ` kargl at gcc dot gnu dot org
2007-02-06 0:31 ` kargl at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-04 21:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from kargl at gcc dot gnu dot org 2007-02-04 21:31 -------
Fixed on trunk.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-Wno-tabs should be active |[4.2 only] -Wno-tabs should
|for -std=f2003 and -pedantic|be active for -std=f2003 and
| |-pedantic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] [4.2 only] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-02-04 21:32 ` [Bug fortran/30605] [4.2 only] " kargl at gcc dot gnu dot org
@ 2007-02-06 0:28 ` kargl at gcc dot gnu dot org
2007-02-06 0:31 ` kargl at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-06 0:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from kargl at gcc dot gnu dot org 2007-02-06 00:28 -------
Subject: Bug 30605
Author: kargl
Date: Tue Feb 6 00:28:14 2007
New Revision: 121631
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121631
Log:
2007-02-05 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/30605
* fortran/invoke.texi: Update documentation.
* fortran/options.c (gfc_post_options): Deal with tabs with -std=f2003
and -pedantic.
2007-02-04 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/30605
* gfortran.dg/spread_shape_1.f90: Remove tabs.
* gfortran.dg/derived_init_2.f90: Ditto.
* gfortran.dg/elemental_subroutine_3.f90: Ditto.
* gfortran.dg/array_initializer_1.f90: Ditto.
* gfortran.dg/do_2.f90: Ditto.
* gfortran.dg/proc_assign_1.f90: Ditto.
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/options.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/array_initializer_1.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/derived_init_2.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/do_2.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/elemental_subroutine_3.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/proc_assign_1.f90
branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/spread_shape_1.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug fortran/30605] [4.2 only] -Wno-tabs should be active for -std=f2003 and -pedantic
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-02-06 0:28 ` kargl at gcc dot gnu dot org
@ 2007-02-06 0:31 ` kargl at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: kargl at gcc dot gnu dot org @ 2007-02-06 0:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from kargl at gcc dot gnu dot org 2007-02-06 00:31 -------
Fixed in trunk and 4.2. Won't fix in 4.1 or earlier.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30605
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-02-06 0:31 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-26 22:18 [Bug fortran/30605] New: -Wno-tabs should be active for -std=f2003 and -pedantic jb at gcc dot gnu dot org
2007-01-27 0:02 ` [Bug fortran/30605] " kargl at gcc dot gnu dot org
2007-01-27 0:02 ` kargl at gcc dot gnu dot org
2007-01-27 0:45 ` kargl at gcc dot gnu dot org
2007-01-27 18:01 ` kargl at gcc dot gnu dot org
2007-01-30 23:06 ` jb at gcc dot gnu dot org
2007-01-30 23:09 ` sgk at troutmask dot apl dot washington dot edu
2007-02-01 11:30 ` jb at gcc dot gnu dot org
2007-02-04 21:32 ` [Bug fortran/30605] [4.2 only] " kargl at gcc dot gnu dot org
2007-02-06 0:28 ` kargl at gcc dot gnu dot org
2007-02-06 0:31 ` kargl 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).