Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Garbage-collect the __DO_NOT_DO_WEAK__ stuff.



details:   https://anonhg.NetBSD.org/src/rev/eeb7df2d4141
branches:  trunk
changeset: 538017:eeb7df2d4141
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Oct 10 00:52:47 2002 +0000

description:
Garbage-collect the __DO_NOT_DO_WEAK__ stuff.

diffstat:

 sys/sys/cdefs_elf.h |  10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diffs (45 lines):

diff -r 51756f7a70b9 -r eeb7df2d4141 sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h       Thu Oct 10 00:22:19 2002 +0000
+++ b/sys/sys/cdefs_elf.h       Thu Oct 10 00:52:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdefs_elf.h,v 1.11 2002/01/27 07:19:25 lukem Exp $     */
+/*     $NetBSD: cdefs_elf.h,v 1.12 2002/10/10 00:52:47 thorpej Exp $   */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -49,19 +49,13 @@
 #endif
 #endif
 
-#undef __DO_NOT_DO_WEAK__              /* we use weak syms */
-
-#ifndef __DO_NOT_DO_WEAK__
 #define        __indr_reference(sym,alias)     /* nada, since we do weak refs */
-#endif /* !__DO_NOT_DO_WEAK__ */
 
 #if __STDC__
 
-#ifndef __DO_NOT_DO_WEAK__
 #define        __weak_alias(alias,sym)                                         \
     __asm__(".weak " _C_LABEL_STRING(#alias) " ; "                     \
            _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym));
-#endif /* !__DO_NOT_DO_WEAK__ */
 #define        __weak_extern(sym)                                              \
     __asm__(".weak " _C_LABEL_STRING(#sym));
 #define        __warn_references(sym,msg)                                      \
@@ -69,7 +63,6 @@
 
 #else /* !__STDC__ */
 
-#ifndef __DO_NOT_DO_WEAK__
 #ifdef __LEADING_UNDERSCORE
 #define __weak_alias(alias,sym) ___weak_alias(_/**/alias,_/**/sym)
 #define        ___weak_alias(alias,sym)                                        \
@@ -78,7 +71,6 @@
 #define        __weak_alias(alias,sym)                                         \
     __asm__(".weak alias ; alias = sym");
 #endif
-#endif /* !__DO_NOT_DO_WEAK__ */
 #ifdef __LEADING_UNDERSCORE
 #define __weak_extern(sym) ___weak_extern(_/**/sym)
 #define        ___weak_extern(sym)                                             \



Home | Main Index | Thread Index | Old Index