Re: [PATCH] m32r: set CHECKFLAGS properly

From: Al Viro (viro_at_ftp.linux.org.uk)
Date: 09/28/05

  • Next message: Rohit Seth: "Re: 2.6.14-rc2-mm1"
    Date:	Wed, 28 Sep 2005 00:06:19 +0100
    To: Kyle Moffett <mrmacman_g4@mac.com>
    
    

    On Tue, Sep 27, 2005 at 02:37:09PM -0400, Kyle Moffett wrote:
    > >And no, sparse (or any other C compiler) is not required to have
    > >the same pile as gcc does.
    >
    > But when we're using sparse to check kernel sources, it should have a
    > similar set to what the regular compiler (IE: gcc) has when building
    > kernel sources.

    Have you ever looked at that set of defines? Note that even with gcc
    most of them are supposed to be only used in gcc headers. Most of
    those are never used in the kernel code, and for a good reason. Only
    two are actually used - stdarg.h and (for raid6 with CONFIG_ALTIVEC)
    altivec.h. Guess what? The former doesn't use any of these defines
    and in case of the latter the only define used would be a lie - sparse
    does *not* handle -maltivec.

    It gets even better when you get to defines that describe compiler capacities.
    sparse, for example, does *not* support wchar_t et.al.; gcc does. Should
    we lie about that support? Should sparse binary that kinda-sorta imitates
    e.g. builtins of gcc 3.3 (and declares __GNUC... accordingly) pick bogus
    ones from gcc4 you are using for build?

    There are very few defines we really want out of that pile. "Take everything"
    is nowhere near sanity, especially if you consider the differences between
    gcc versions (and gcc builds, while we are at it).
    -
    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/


  • Next message: Rohit Seth: "Re: 2.6.14-rc2-mm1"

    Relevant Pages

    • [SLE] kernel module compile problem
      ... from the kernel sources for SuSE 8.2. ... module build is hanging, however. ... gcc: unrecognized option `-iwithprefix' ...
      (SuSE)
    • Re: Compilation errors for linux-2.6.0 kernel
      ... > silviu wrote: ... > Have you verified your kernel sources were not corrupting during the download? ... > Which version of GCC are you actually using? ... > Looks to me like it's possible that you are using 2.96 to compile the kernels, ...
      (comp.os.linux.questions)
    • Re: Stack usage tasks
      ... A patch went into gcc 4.0 that makes gcc more intelligent ... these lists)? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: SuSe 8.2 Pro (Why the Hassle?) -me too
      ... > kernel sources packages on the distro media, ... YAST during install and YAST doesn't let you get the sources that way. ... You're also right about GCC. ...
      (alt.os.linux.suse)
    • Re: Stack usage tasks
      ... > The task I'm suggesting was therefore: ... A patch went into gcc 4.0 that makes gcc more intelligent ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)