lkml.org 
[lkml]   [2009]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Definition of BUG on x86
    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


    \
     
     \ /
      Last update: 2009-02-19 17:35    [W:0.022 / U:0.124 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site