Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2002 23:11:29 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys cdefs.h linker_set.h
Message-ID:  <200209230611.g8N6BTH1038099@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       2002/09/22 23:11:29 PDT

  Modified files:
    sys/sys              cdefs.h linker_set.h 
  Log:
  Add a __section(x) macro as well.  Use this in linker_set.h.  ie:
  static void const * const __set_##set##_sym_##sym
   __attribute__((__section__("set_" #set),__unused__)) = &sym
  becomes:
  static void const * const __set_##set##_sym_##sym
   __section("set_" #set) __unused = &sym
  Like the other macros, these #define away for unrecognized compilers or
  lint.
  
  Also, fix the argments in the previous commit for the non-gcc case. lint
  might be a bit happier about that.  Note that the gcc <= 2.6 case
  needs some research.
  
  Revision  Changes    Path
  1.64      +6 -3      src/sys/sys/cdefs.h
  1.13      +1 -1      src/sys/sys/linker_set.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209230611.g8N6BTH1038099>