Re: [PATCH 0/2] __builtin_unreachable

From: H. Peter Anvin
Date: Thu Sep 10 2009 - 02:44:16 EST


On 09/09/2009 09:42 PM, AmÃrico Wang wrote:
>
> Just curious, what different asm code will gcc generate for this? Comparing it
> to for(;;) ? I am sorry that I don't have gcc 4.5 on hand.
>

It generates nothing. It is you as the programmer guaranteeing that we
will never get there, and as such gcc will generate no code at all.

-hpa
--
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/