Module Name: src
Committed By: joerg
Date: Thu Feb 17 21:06:26 UTC 2011
Modified Files:
src/sys/sys: cdefs_elf.h
Log Message:
Revert 1.34 now that clang supports .pushsection / .popsection.
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/sys/cdefs_elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/cdefs_elf.h
diff -u src/sys/sys/cdefs_elf.h:1.34 src/sys/sys/cdefs_elf.h:1.35
--- src/sys/sys/cdefs_elf.h:1.34 Wed Dec 8 01:18:55 2010
+++ src/sys/sys/cdefs_elf.h Thu Feb 17 21:06:26 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs_elf.h,v 1.34 2010/12/08 01:18:55 joerg Exp $ */
+/* $NetBSD: cdefs_elf.h,v 1.35 2011/02/17 21:06:26 joerg Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -70,16 +70,10 @@
#define __weak_reference(sym) ; __asm(".weak " _C_LABEL_STRING(#sym))
#endif
-#if defined(__clang__)
-#define __warn_references(sym,msg) \
- static __attribute__((__used__, __section__(".gnu.warning." #sym))) \
- const char ___CONCAT(__warn_reference_##sym,__COUNTER__)[] = msg;
-#else
#define __warn_references(sym,msg) \
__asm(".pushsection .gnu.warning." #sym "\n" \
".ascii \"" msg "\"\n" \
".popsection");
-#endif
#else /* !__STDC__ */
@@ -106,11 +100,7 @@
#endif /* !__STDC__ */
-#if defined(__clang__)
-#define __SECTIONSTRING(_sec, _str) \
- static __attribute__((__used__, __section__(#_sec))) const char \
- ___CONCAT(__sectstr,__COUNTER__)[] = _str
-#elif __STDC__
+#if __STDC__
#define __SECTIONSTRING(_sec, _str) \
__asm(".pushsection " #_sec "\n" \
".asciz \"" _str "\"\n" \