This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] PR fortran/9972
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Jan Hubicka <jh at suse dot cz>, gcc-patches at gcc dot gnu dot org, Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Tue, 13 May 2003 14:37:30 -0400
- Subject: Re: [PATCH] PR fortran/9972
>>>>> Zack Weinberg writes:
Zack> So what I think you're saying is that the Fortran front end relies on
Zack> dead function elimination happening whether or not optimization is
Probably not intentionally, but yes. I think it "just worked"
The Fortran testcase essentially is testing for Fortran behavior
equivalent to GCC C "static inline" extension. This only works if the
statement is deferred and then the lack of any reference prevents the
function from being emitted. Honza's patch make f771 behave as if
-fkeep-inline-functions were enabled, so the statement always is emitted.
The statement explicitly references an undefined function to produce a
link error if the statement compiled.