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.
What command line are you trying to invoke g77 with?
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.
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.