Messages in this thread | | | Date | Thu, 19 Feb 2009 10:40:43 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] x86: remove unneeded endless loop in BUG() |
| |
Petr Tesarik wrote: > Since __builtin_trap() will always generate an illegal instruction, we > can replace the explicit asm("ud2") with it. > > This way gcc will understand that the function never returns, plus it > won't emit any extra instructions. > > Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
I like this. Will apply shortly.
-hpa
-- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
| |