https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104596
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am trying to understand what you are trying to do. You want to mark an insn with a comment which is emitted during formation of the prologue generation as being generated because of a specific option? and you don't want to add some extra patterns to do the marking? Is there a reason why you want to annotate the instruction in the assembly besides just easier to see if it was emitted because of that option or is there some assembler reason? If it is just for debugging, why not while emitting the prologue, print out the instruction # that was added (if details dump is enabled) and then use -dP to see the instruction outputs the assembler. The other thing you could is have a INSN_NOTE which takes a string which you then output during the final scan. This requires adding some extra stuff to the rest of the compiler but it should work.