[PATCH, re-send] Always trap on BUG()

H. Peter Anvin hpa at zytor.com
Tue Jul 23 05:54:06 EDT 2013


On 07/23/2013 02:36 AM, Ingo Molnar wrote:
>>
>> Well, there are three alternatives here, right:
>>
>> 1. We can use unreachable(), which means that the compiler can assume it
>> never happens.
> 
> AFAICS this is dangerous as it loses warnings and moves execution into 
> la-la-land without any obvious sign at the C level.
> 

Extremely dangerous.

	-hpa




More information about the linux-arm-kernel mailing list