This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add new built-in: __builtin_unreachable()


int f(char *f)
{
  if (*f)
    __builtin_unreachable();
  return f ? 1 : 0;
}
f:
.LFB0:
    movl    $1, %eax
    ret

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).


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]