Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/include do the ignore -Wshadow dance for built...



details:   https://anonhg.NetBSD.org/src/rev/a66727317fac
branches:  trunk
changeset: 465330:a66727317fac
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Nov 16 22:51:51 2019 +0000

description:
do the ignore -Wshadow dance for builtins and GCC 8, copied from ppc version.

diffstat:

 sys/arch/ia64/include/fenv.h |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r 38f90c5a4631 -r a66727317fac sys/arch/ia64/include/fenv.h
--- a/sys/arch/ia64/include/fenv.h      Sat Nov 16 22:09:56 2019 +0000
+++ b/sys/arch/ia64/include/fenv.h      Sat Nov 16 22:51:51 2019 +0000
@@ -67,6 +67,11 @@
 #define        __stfpsr(__r)   __asm __volatile("mov %0=ar.fpsr" : "=r" (*(__r)))
 #define        __ldfpsr(__r)   __asm __volatile("mov ar.fpsr=%0;;" : : "r" (__r))
 
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
 __fenv_static inline int
 feclearexcept(int __excepts)
 {
@@ -206,6 +211,10 @@
 
 int feupdateenv(const fenv_t *__envp);
 
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic pop
+#endif
+
 #if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE)
 
 __fenv_static inline int



Home | Main Index | Thread Index | Old Index