using emit_library_call

Richard Henderson rth@redhat.com
Mon Aug 5 18:03:00 GMT 2002


On Mon, Aug 05, 2002 at 08:45:18PM +0200, Per Fransson wrote:
> Can emit_library_call be used at any point during RTL generation with any
> rtx's as as arguments (to be used as arguments to the library function I
> wish to call)?

No.  Basically only during initial rtl generation.  You can 
sometime get away with emitting calls later on targets that
pass parameters in registers, but that's sort of accidental.
For targets that pass parameters on the stack, all calls must
be emitted before virtual register instantiation.

> Also, the comment to emit_library_call mentions a function called
> 'protect_from_queue'; what does it mean that  an expression is queued?

  foo(i++)

The post-incrememt will be queued.


r~



More information about the Gcc mailing list