On 11/04/11 15:37, Hans-Peter Nilsson wrote: > On Thu, 3 Nov 2011, Iyer, Balaji V wrote: >> Is it possible to make sure that the "LABELX" occurs right >> after the "Call some_function" instruction (and the instruction >> scheduler moves the label with the call INSN)? I insert the >> label right after the call is expanded and LABELX is being moved >> above the Call instruction by the schedule_insns function. > > Is emitting the label in port-specific code together with the > call insn (trigged by a punctuation like "%&" for i386) not an > option?
Some ports do that kind of thing. You must also define the cannot_copy_insn_p hook to make sure that only one of these labels gets emitted. In general however you don't want to do this since it prevents optimizations. Bernd