lkml.org 
[lkml]   [2004]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: IA32 (2.6.2 - 2004-02-05.22.30) - 3 New warnings (gcc 3.2.2)
    On Tue, 10 Feb 2004 13:32:45 -0000 spam@altium.nl (Dick Streefland) wrote:

    | Linus Torvalds <torvalds@osdl.org> wrote:
    | | On Fri, 6 Feb 2004 viro@parcelfarce.linux.theplanet.co.uk wrote:
    | | >
    | | > Umm... How about
    | | >
    | | > static inline void BUG() __attribute__((noreturn));
    | | >
    | | > static inline void BUG(void)
    | | > {
    | | > __asm__ ....
    | | > }
    | |
    | | Did you try that? Last time I tried, gcc would complain every time it saw
    | | the thing about "noreturn function does return".
    |
    | So, make sure it won't return ;-)
    |
    | static inline void BUG(void)
    | {
    | __asm__ ("1: jmp 1b");
    | BUG();
    | }

    doesn't that sorta miss the BUG output?

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

    \
     
     \ /
      Last update: 2005-03-22 14:00    [W:0.023 / U:65.396 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site