This is the mail archive of the
mailing list for the GCC project.
Re: [Fortran] RFC: Enabling -fwhole-file by default
On Fri, Jul 23, 2010 at 9:54 PM, Steven Bosscher <email@example.com> wrote:
> On Fri, Jul 23, 2010 at 9:48 PM, Richard Guenther
> <firstname.lastname@example.org> wrote:
>> On Fri, Jul 23, 2010 at 9:18 PM, Steven Bosscher <email@example.com> wrote:
>>> On Fri, Jul 23, 2010 at 9:15 PM, Paul Richard Thomas
>>> <firstname.lastname@example.org> wrote:
>>>>> I think -fwhole-file is now stable enough to be enabled by default; one
>>>>> can still use -fno-whole-file to disable it. (Though, I like to remove
>>>>> that "no" option in the next release, i.e. 4.7.)
>>>> I don't think that I can agree to that, largely for legacy reasons. ?I
>>>> see no harm in leaving the option and would suggest that for
>>>> std=legacy it is automatically set.
>>> I think this should also depend on whether there are still all those
>>> middle-end hacks we used to have for the -fno-whole-file case. Honza?
>> We don't have any - we always just miscompiled stuff.
> ISTR there is special code in the call graph construction, to handle
> multiple function decls...?
No, we get distinct cgraph nodes for them (and thus callers and callees
are messed up).