DragonFly BSD
DragonFly commits List (threaded) for 2004-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/sys


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Aug 2004 05:08:41 -0700 (PDT)

joerg       2004/08/27 05:08:41 PDT

DragonFly src repository

  Modified files:
    sys/sys              cdefs.h linker_set.h 
  Log:
  Fix linker set creation for GCC 3.4 with -funit-at-a-time.
  
  GCC 3.4 optimizes away global statics, which are referenced. Define a new
  macro __used, which expands to attribute((used)) and tells the compiler that
  a certain static indead referenced. For older versions and other compilers
  it defaults to the meaning of __unused to avoid warnings.
  
  Revision  Changes    Path
  1.11      +2 -0      src/sys/sys/cdefs.h
  1.4       +1 -1      src/sys/sys/linker_set.h


http://www.dragonflybsd.org/cvsweb/src/sys/sys/cdefs.h.diff?r1=1.10&r2=1.11&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/linker_set.h.diff?r1=1.3&r2=1.4&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]