From 598174eb2b37ae23d2feb181863e44ce8c057f35 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 6 Mar 2011 10:27:37 +0000 Subject: [PATCH] Apply local namespace protection equivalent to the weak alias done in softfloat-for-gcc.h, which we can't include here, to move "float_exception_mask" into implementation namespace. --- lib/libc/softfloat/softfloat-specialize | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/libc/softfloat/softfloat-specialize b/lib/libc/softfloat/softfloat-specialize index 3da15c462e23..c680ac1271b2 100644 --- a/lib/libc/softfloat/softfloat-specialize +++ b/lib/libc/softfloat/softfloat-specialize @@ -1,4 +1,4 @@ -/* $NetBSD: softfloat-specialize,v 1.5 2011/03/04 11:48:58 martin Exp $ */ +/* $NetBSD: softfloat-specialize,v 1.6 2011/03/06 10:27:37 martin Exp $ */ /* This is a derivative work. */ @@ -55,6 +55,9 @@ substitute a result value. If traps are not implemented, this routine should be simply `float_exception_flags |= flags;'. ------------------------------------------------------------------------------- */ +#ifdef SOFTFLOAT_FOR_GCC +#define float_exception_mask _softfloat_float_exception_mask +#endif fp_except float_exception_mask = 0; void float_raise( fp_except flags ) { @@ -80,6 +83,7 @@ void float_raise( fp_except flags ) sigqueueinfo(getpid(), &info); } } +#undef float_exception_mask /* -------------------------------------------------------------------------------