Bug 13008 - option valid for Fortran but not the selected language
Summary: option valid for Fortran but not the selected language
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: preprocessor (show other bugs)
Version: 3.3.2
: P2 minor
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 10:44 UTC by Steve Edwards
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Edwards 2003-11-11 10:44:13 UTC
Specifying the following options with g77 generates the message
cc1: warning: ignoring command line option '-Wsurprising'
cc1: warning: (it is valid for Fortran but not the selected language)
Known to occur for -Wsurprising, -fno-f2c and -ffortran-bounds-check
Also occurs with builds on rs6000-ibm-aix4.3.2.0 and others.
Comment 1 Andrew Pinski 2003-11-12 01:07:37 UTC
What command line are you trying to invoke g77 with?
Comment 2 Steve Edwards 2003-11-12 09:48:11 UTC
Subject: Re:  option valid for Fortran but not the
	selected language

On Wed, 2003-11-12 at 01:07, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-12 01:07 -------
> What command line are you trying to invoke g77 with?

Typical invocation to cause the warnings to appear would be:

g77 -W -Wall -Wsurprising -O2 -ffloat-store \
 -ffortran-bounds-check -fno-f2c -xf77-cpp-input -c \
 ../../src/source1.f

> 
> -- 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |WAITING
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13008
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.


Comment 3 Andrew Pinski 2003-11-15 09:23:35 UTC
If you do not include -W, cc1 will not warn for some reason but this is already fixed on the 
mainline by the new option handling code.