Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Add missing __{BEGIN,END}_DECLS in order to catch u...



details:   https://anonhg.NetBSD.org/src/rev/463df6467483
branches:  trunk
changeset: 1014836:463df6467483
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Oct 04 10:34:18 2020 +0000

description:
Add missing __{BEGIN,END}_DECLS in order to catch up with
sanitizer_linux_libcdep.cc rev 1.17:

http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc#rev1.17

Fix build with HAVE_GCC=9.

diffstat:

 sys/arch/m68k/include/mcontext.h    |  5 ++++-
 sys/arch/powerpc/include/mcontext.h |  5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (52 lines):

diff -r e784c0e14551 -r 463df6467483 sys/arch/m68k/include/mcontext.h
--- a/sys/arch/m68k/include/mcontext.h  Sun Oct 04 10:16:09 2020 +0000
+++ b/sys/arch/m68k/include/mcontext.h  Sun Oct 04 10:34:18 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.11 2020/09/07 00:32:00 mrg Exp $        */
+/*     $NetBSD: mcontext.h,v 1.12 2020/10/04 10:34:18 rin Exp $        */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -119,6 +119,8 @@
 __CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000);
 __CTASSERT(TLS_TP_OFFSET % sizeof(struct tls_tcb) == 0);
 
+__BEGIN_DECLS
+
 void *_lwp_getprivate(void);
 void _lwp_setprivate(void *);
 
@@ -136,6 +138,7 @@
        __tcb += TLS_TP_OFFSET / sizeof(*__tcb) + 1;
        _lwp_setprivate(__tcb);
 }
+__END_DECLS
 #endif
 
 #endif /* !_M68K_MCONTEXT_H_ */
diff -r e784c0e14551 -r 463df6467483 sys/arch/powerpc/include/mcontext.h
--- a/sys/arch/powerpc/include/mcontext.h       Sun Oct 04 10:16:09 2020 +0000
+++ b/sys/arch/powerpc/include/mcontext.h       Sun Oct 04 10:34:18 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.21 2020/06/22 05:34:57 rin Exp $        */
+/*     $NetBSD: mcontext.h,v 1.22 2020/10/04 10:34:18 rin Exp $        */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -153,6 +153,8 @@
 #define        TLS_DTV_OFFSET  0x8000
 __CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000);
 
+__BEGIN_DECLS
+
 static __inline void *
 __lwp_gettcb_fast(void)
 {
@@ -180,6 +182,7 @@
 
        _lwp_setprivate(__tcb);
 }
+__END_DECLS
 #endif /* _RTLD_SOURCE || _LIBC_SOURCE || __LIBPTHREAD_SOURCE__ */
 
 #endif /* !_POWERPC_MCONTEXT_H_ */



Home | Main Index | Thread Index | Old Index