lkml.org 
[lkml]   [2013]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: Issue with BUG() in asm-gemeric/bug.h if CONFIG_BUG=n
    From
    On Mon, Sep 30, 2013 at 7:45 PM, David Daney <ddaney.cavm@gmail.com> wrote:
    >> What about using __builtin_unreachable when we can but turn off warnings
    >> and use do{}while(0) when __builtin_unreachable does not exist? This seems
    >> the both worlds. Newer compilers produce better code with unreachable
    >> anyways.
    >>
    >
    > Simply not true.
    >
    > do{}while(0) is a NOP it is no more useful than an ';' statement. It
    > doesn't serve as a magic uninitialized variable hiding mechanism.

    You missed the "turn off warnings" part of the "and".

    Gr{oetje,eeting}s,

    Geert

    --
    Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
    -- Linus Torvalds


    \
     
     \ /
      Last update: 2013-09-30 21:21    [W:5.290 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site