On Thu, 2012-08-09 at 22:05 -0400, Mathieu Desnoyers wrote:

> In your example, is the attribute attached to the if() or the following
> basic block ? Attaching it to the basic block allows a nice level of
> genericity:

Yes, I meant the block, not the if().

Heck, any block could be done this way, even just a block insertion...

void foo(int bar) {
        [...]

        __attribute__((section("mysection")) {
                /* code here is in 'mysection' */
        }
        [...]
}

All gcc would have to do is place a hard jump to the code in the
section, and have the section jump back.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to