This is the mail archive of the
mailing list for the GCC project.
Re: [RFC Patch]: Implement remainder() as built-in function [PR fortran/24518]
On Thu, 26 Oct 2006, Joseph S. Myers wrote:
> On Wed, 25 Oct 2006, Kaveh R. GHAZI wrote:
> > I tried out RTH's inline proposal at the time back in Sept 2000:
> > http://gcc.gnu.org/ml/gcc-patches/2000-09/msg00899.html
> > It worked great when we had the RTL inliner, because inlining happened
> > *after* builtin expansion. With the tree inliner running early, builtin
> > expansion (or folding) happens too late to successfully introduce an
> > inline call and have it expand to the body of the inline function.
> Then RTH suggested doing the expansion in the front ends. Either that, or
> an early (pre-inlining) builtin expansion pass, would seem like the way to
> go; capturing stdout from the header in some way seems like the most
> reliable way of getting the right definition for the given multilib,
> sysroot, etc.
> Joseph S. Myers
I agree inlining stdout that way is best. I just have absolutely no idea
how to implement it or where to begin.
Kaveh R. Ghazi firstname.lastname@example.org