cvs commit: src/sys/sys

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Fri Aug 27 05:09:09 PDT 2004


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





More information about the Commits mailing list