Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Revert 1.34 now that clang supports .pushsection / ....
details: https://anonhg.NetBSD.org/src/rev/2c7cb36c9477
branches: trunk
changeset: 762237:2c7cb36c9477
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 17 21:06:26 2011 +0000
description:
Revert 1.34 now that clang supports .pushsection / .popsection.
diffstat:
sys/sys/cdefs_elf.h | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (39 lines):
diff -r 6ddac9dd34a9 -r 2c7cb36c9477 sys/sys/cdefs_elf.h
--- a/sys/sys/cdefs_elf.h Thu Feb 17 21:02:26 2011 +0000
+++ b/sys/sys/cdefs_elf.h Thu Feb 17 21:06:26 2011 +0000
@@ -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" \
Home |
Main Index |
Thread Index |
Old Index