[gfortran] Fix PR 18111: set DECL_ARTIFICAL on function result parameters

Steven Bosscher stevenb@suse.de
Thu Oct 28 22:34:00 GMT 2004


On Tuesday 26 October 2004 19:28, Tobias Schlüter wrote:
> Tobias Schlüter wrote:
> > PR 18111 is a case where the hidden function argument .__result is not
> > set, and a warning is emitted about this when the compiler is run with
> > -Wunused. This patch sets DECL_ARTIFICIAL on this and the accompanying
> > __result, which fixes the warning.
>
> This is an updated patch which also deals with cases where the hidden
> string length parameter is not used (i.e. when the character length is
> fixed).
>
> Built and tested, ok?

Yes.

Gr.
Steven




More information about the Gcc-patches mailing list