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]

Preserve labels for the life of Compliation


Hello Everyone,
	I would like to insert labels at certain instances of the program as a marker and then print them out at a separate section at the end of the assembly file. I am able to do that but the garbage collector seem to be deleting the labels. Is it possible for me to stop this?

The way I am creating the labels are doing the following:

new_label = gen_label_rtx ()
LABEL_PRESERVE_P (new_label) = 1;
INSN_UID (new_label) = ctrl->emit.x_cur_insn_uid++;
LABEL_NUSES(new_label) = 1;

Is there any other tag I can add to make sure the garbage collector doesn't touch it?

Thanks,

Balaji V. Iyer. 


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