This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48655] False positive with -Warray-temporaries and a=transpose(a)
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Jan 2013 22:56:20 +0000
- Subject: [Bug fortran/48655] False positive with -Warray-temporaries and a=transpose(a)
- Auto-submitted: auto-generated
- References: <bug-48655-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48655
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-01-07
Ever Confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-01-07 22:56:20 UTC ---
I think this has to be fixed at the documentation level (unless the optimizer
is able to report that a temporary has been removed). Presently the manual
says:
> -Warray-temporaries
> Warn about array temporaries generated by the compiler.
> The information generated by this warning is sometimes useful
> in optimization, in order to avoid such temporaries.
What about replacing the first sentence with "Warn about array temporaries
generated by the front-end" (if front-end is found too geek speak, one could
use "by the early stage of the compiler" or whatever is deemed suitable). Then
one could add a sentence of the kind "Note that some optimizing stage can
silently remove the temporary if it can prove it is not necessary." (again
translation from Frenglish to plain English welcomed).