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

Reply via email to