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: Const/libcall function calling tweeks


On Thu, Mar 09, 2000 at 11:50:10PM +0100, Jan Hubicka wrote:
> Do you have something like this in the mind?:
> int a(int, int) __attribute__ ((const));
> main()
> {
>   return a(b(1),b(1));
> }

Not quite -- make b const, not a.  We should then make only
one call to b.

> Emit_call_1 takes case to not use pending_stack_adjust for const calls.

Does it?  I thought that's what the NO_DEFER_POP frobbing was for.


r~

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