This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Add new built-in: __builtin_unreachable()
Paolo Bonzini wrote:
int f(char *f)
return f ? 1 : 0;
movl $1, %eax
Sweet. Please add this as a testcase! (Just a target dependent one for
32-bit i386, scanning the assembler for no jmp and no occurrences of
%e[bs]p, will be okay).
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.