[Patch, Fortran] PR37420 - Fix -Wunused-variable.

Tobias Burnus burnus@net-b.de
Wed Sep 10 17:40:00 GMT 2008


Dominique Dhumieres wrote:
> What about libgfortran/mk-sik-inc.sh?
>   

Well, as written 12 minutes before your email as reply to an email by JH Lu:
> --- libgfortran/mk-sik-inc.sh.unused	2008-01-17 09:09:59.000000000 -0800
> > +++ libgfortran/mk-sik-inc.sh	2008-09-10 09:36:29.000000000 -07000
> >   
>   
> I have admittedly forgotten that file (which is now broken), but that
> did not cause any bootstrap failures. :-/
>
> I plan to fix that file as well by applying the following patch (still
> testing).
>   
I applied not mentioned patch as Rev. 140239 and I hope that I have not
forgotten anything else. At leas the *inc and *.h files in
x86-64-linux/libgfortran/ now look OK.

Still, I wonder why that didn't fail before. There was a period when
-Wunused-variable worked. Why didn't that trigger the bug before? After
all, it is a regression?

In any case, it shows that also for doing a simple patch one should
better bootstrap (or at least rm -rf libgfortran/ in the build directory
+ build) and not only build and regression test gfortran + gomp.

Tobias



More information about the Fortran mailing list