Re: Definition of BUG on x86

Jeremy Fitzhardinge
2009-02-19T16:32:58Z

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