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] 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
Zack> enabled?

	Probably not intentionally, but yes.  I think it "just worked"
before.

	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.

David


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