lkml.org 
[lkml]   [2004]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH][2.6.8-rc1-mm1] drivers/scsi/sg.c gcc341 inlining fix
    Jeff Garzik <jgarzik@pobox.com> wrote:
    >
    > Or you could just call it "gcc is dumb" rather than a compiler bug.

    Yeah, but doing:

    static inline foo(void);

    bar()
    {
    ...
    foo();
    }

    static inline foo(void)
    {
    ...
    }

    is pretty dumb too. I don't see any harm if this compiler feature/problem
    pushes us to fix the above in the obvious way.

    Plus if we do, the inlining attempt actually succeed, on all compiler
    versions.

    -
    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:04    [W:0.018 / U:60.312 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site