[PATCH] Add new built-in: __builtin_unreachable()
Paolo Bonzini
paolo.bonzini@gmail.com
Mon Jun 15 08:54:00 GMT 2009
>> Could you explain why it is allowed to remove the trapping instruction?
>>
>> If this were java (which admittedly it is not), that would not be
>> allowed.
Because of -fdelete-null-pointer-checks. Without non-call exceptions,
*f does not throw an exception but still the compiler is allowed to
assume its address is not null in anything that postdominates it.
Admittedly this case is a bit borderline.
Paolo
More information about the Gcc-patches
mailing list