This is the mail archive of the gcc@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]
Other format: [Raw text]

Dependent Labels Question


Hello Everyone,
	Is it possible in GCC to create a label that is some-how dependent on a RTL INSN (i.e. if the RTL INSN moves, the label moves with it)?

For example: In the below code

   	...
	Add r1, r2, r3
	Call some_function
LABELX:                        
	Sub r3, r4, r5
	...
	...

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.

Thanks,

Balaji V. Iyer.


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