On Sat, Jun 1, 2013 at 12:28 AM, Mike Stump <mikest...@comcast.net> wrote: > On May 31, 2013, at 2:56 PM, Andrew Pinski <pins...@gmail.com> wrote: >> This will only fix the GCC source but not other sources which does: >> void f(void) >> { >> __builtin_unreachable(); >> } > > Yes. Speaking of which, so how should this be handled? Imagine we have > asm("# no bytes") before the unreachable. The compiler can't know the size > (though, the linker can), and yet, a good solution handles this as well. > Hopefully a dwarf person can weigh in, as engineering a bad solution is worse > than leaving it broken in my book.
Let the assembler compute it as difference of two labels? Richard.