[PATCH] PR fortran/9972

David Edelsohn dje@watson.ibm.com
Tue May 13 18:37:00 GMT 2003


>>>>> 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



More information about the Gcc-patches mailing list