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]

Re: Problem inlining in c++ (was Re: Patch to add __builtin_printf -> fputs transformations)


On Wed, Sep 20, 2000 at 10:29:03PM -0400, Kaveh R. Ghazi wrote:
> However the C++ front end emits the __builtin_stdout function
> out-of-line and issues a call to it when gathering the fputs args.

This is because C++ does inlining at the tree level, not
the RTL level.  In a short while, the C front end will do
the same thing.

So, like I mentioned before, we should probably be doing
these sorts of optimizations in the front end instead of
in builtins.c.


r~

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