Re: [PATCH] ARM: Convert BUG() to use unreachable()

From: Richard Henderson
Date: Mon Dec 21 2009 - 14:31:30 EST


On 12/17/2009 10:17 AM, Russell King - ARM Linux wrote:
How is "size-optimal trap" defined?

E.g. Sparc and MIPS have "tcc" instructions that trap based on the
condition codes, and so we eliminate the branch. That's the only
optimization we apply with __builtin_trap.

Let me put it another way: I want this function to terminate with an
explicit NULL pointer dereference in every case.

Then just use that.


r~
--
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/