This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Dependent Labels Question
- From: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Thu, 3 Nov 2011 12:54:55 -0700
- Subject: 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.