Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

From: Denys Vlasenko
Date: Tue Jan 13 2015 - 07:07:38 EST


On Mon, Jan 12, 2015 at 9:26 PM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
> I think I prefer the somewhat less magical:
>
> pushq_reg_cfi %r11 /* saves r11 */
> pushq_reg_cfi %r11, savereg=rip /* saves rip */
> pushq_nounwind_cfi $0
>
> Or something like that.

That's very close to my patch. With it:

pushq_cfi - doesn't emit "register is saved" annotation, can be
used with non-register args.
pushq_cfi_reg - emits it
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/