Re: const versus __attribute__((const))

From: H. Peter Anvin (hpa_at_zytor.com)
Date: 12/08/03

  • Next message: Chris Wright: "Re: PROBLEM: A Capability LSM Module serious bug"
    Date:	Mon, 08 Dec 2003 10:31:17 -0800
    To: Nikita Danilov <Nikita@Namesys.COM>
    
    

    Nikita Danilov wrote:
    > >
    > > These functions are available to userspace, though, and can be compiled
    > > with -O0; thus not inlined.
    >
    > And future versions of gcc can be smarter.
    >

    Actually, the reason it doesn't use it for the inlines is because it
    doesn't need to -- it already has full visibility, so it doesn't need it
    to be spelled out.

    So it would be an issue if gcc got dumber, not smarter.

            -hpa

    -
    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: Chris Wright: "Re: PROBLEM: A Capability LSM Module serious bug"

    Relevant Pages

    • Re: const versus __attribute__((const))
      ... > Arnd Bergmann wrote: ... > These functions are available to userspace, though, and can be compiled ... And future versions of gcc can be smarter. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Fix NR_KEYS off-by-one error
      ... > larger types (short or int, ... Probably gcc not warn, I think. ... > You are absolutely correct that overhead is insignificant. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Problems Building Bluetooth with K6 and CONFIG_REGPARM
      ... >>Hi Andy, ... > Sounds like a compiler bug, especially since changing the CPU type fixes ... I was using Debian's GCC 4.0.1-6. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • oops when copying from IDE CD
      ... gcc version 3.3.2 20030908 ... I haven't got any experience in reporting kernel panics, ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: 2.6.6-rc3: gcc 2.95: cx88 __ucmpdi2 error
      ... > the switch in set_tvaudio. ... It might help to use "objdump" to disassemble the object file and see ... slower and bigger code, it's historically been pretty buggy in gcc, so ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)