Re: [patch 1/2] i386: add CFI macros for stack manipulation

From: Andi Kleen
Date: Fri Jul 28 2006 - 14:34:25 EST

On Friday 28 July 2006 19:50, Chuck Ebbert wrote:
> Add macros to dwarf2.h to simplify pushing and popping stack
> variables.

I feared someone would do that patch. I've thought about it myself.

However it's not a good idea. I've already had complaints that some code in
x86-64 is too hard to read/debug because it uses too many macros. I think
it's better if the core core still uses "real" instructions and keep the
CFI_* stuff as annotation that most people can just ignore.

With your change that wouldn't be the case and everybody hacking
the code would need to know all of CFI too, which is still quite arcane

So while it would make the source shorter and require less typing
I don't think it's good for readability.

What would be a good thing if someone could write it up would
be a short tutorial for Documentation/* on CFI

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at