PR40011 -fwhole-file problems
Tim Prince
n8tm@aol.com
Wed Jun 3 13:42:00 GMT 2009
Tobias Schlüter wrote:
>
>
> This is the issue, apparently the optimizer can't handle inlining
> functions with static variables (SAVE in Fortran). I verified with a C
> example that indeed functions with static variables are not inlined if
> they're called more than once.
>
This isn't necessarily a bug. All compilers I have used, going back 2
decades, have worked this way. I believe it's one of the reasons
compilers no longer support default SAVE well.
More information about the Fortran
mailing list