This is the mail archive of the
mailing list for the GCC project.
Re: [Patch, Fortran, committed] PR 50585: [4.6/4.7 Regression] ICE with assumed length character array argument
- From: Tobias Burnus <burnus at net-b dot de>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 07 Oct 2011 11:45:09 +0200
- Subject: Re: [Patch, Fortran, committed] PR 50585: [4.6/4.7 Regression] ICE with assumed length character array argument
- References: <CAKwh3qjkW-YXe7pFy8CR5vtt-qJJpeKb6v8WdDK591boFp6rHA@mail.gmail.com>
I completely missed that this patch is still pending review as you wrote
"committed". However, it only applied to the ICE and not to the
documentation and backporting.
On 10/01/2011 02:00 PM, Janus Weil wrote:
I have just committed as obvious a one-line patch to fix a regression
which is triggered by -fwhole-file:
Should I backport to 4.6? And also to 4.5?
Yes, please backport to 4.6. If you want, you can also backport to 4.5.
However, I do not think that -fwhole-file gets used in 4.5 - especially,
as it has some issues.
Moreover, I noticed that
falsely claims that -fwhole-file is not used by default (which it is
since 4.6, see http://gcc.gnu.org/gcc-4.6/changes.html). Attached is a
small documentation patch to fix this. Ok to apply to trunk and 4.6?
OK. By the way, I was thinking of completely removing that option.
-fwhole-file avoids some wrong-code issues, generates faster code, and
improves diagnostic. Thus, there is no real reason* of keeping
-fno-whole-file. Thus, I would like to deprecate the option. (* = one
reason is to see whether a bug is due to this flag, but that does not
really help with fixing the issue.)
I think your wording is fine, I still wonder whether one should somehow
imply more clearly that -fno-whole-file is not recommended and that the
whole flag is deprecated.
PS: I think except for procedure calls where the explicit interface is
not known, gfortran generates finally the correct declaration for the
middle end. At least I have not encountered any multiple-declaration
issues for a long time!