This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR 51800 - Fix -finit-local-zero with automatic arrays and -fno-automatic


Toon Moene wrote:
The first part fixes a regression as "-finit-* -fno-automatic" could be
combined before (albeit without initializing the automatic arrays - but
there was no compile error).

Perhaps we can issue a warning.

Well, with your plus my patch it does initialize automatic arrays and character variables with nonconstant lengths. Thus, there is no need for a warning.


Before your patch: No initialization of automatic data objects
With your patch: Initialization for automatic arrays, but fails with -fno-automatic.
With my patch: Initialization also for nonconst-length character strings, no failures with -fno-automatic.



Build and regtested on x86-64-linux.
OK for the trunk?

Note that I backported this change (noted in PR/51310) to the 4.6 branch, so it's needed there too.

Thanks for the reminder!


Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]