Re: Definition of BUG on x86

From: Jeremy Fitzhardinge
Date: Thu Feb 19 2009 - 11:32:59 EST


Ingo Molnar wrote:
could we just do:

__builtin_trap();
for (;;);

and _now_ GCC would optimize away the infinite loop? And if it does something silly in a future release, we'd either get a build error or we'd run into the infinite loop for sure.

I guess that would work. And we have plenty of infrastructure and precedent for compiler-dependent defines like this.

J
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/