Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/include do the ignore builtin dance for gcc-8



details:   https://anonhg.NetBSD.org/src/rev/3f585f6a15ad
branches:  trunk
changeset: 966444:3f585f6a15ad
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 30 02:44:29 2019 +0000

description:
do the ignore builtin dance for gcc-8

diffstat:

 sys/arch/powerpc/include/fenv.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 0ec59941c683 -r 3f585f6a15ad sys/arch/powerpc/include/fenv.h
--- a/sys/arch/powerpc/include/fenv.h   Wed Oct 30 00:26:54 2019 +0000
+++ b/sys/arch/powerpc/include/fenv.h   Wed Oct 30 02:44:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fenv.h,v 1.5 2018/04/19 21:50:07 christos Exp $        */
+/*     $NetBSD: fenv.h,v 1.6 2019/10/30 02:44:29 christos Exp $        */
 
 /*-
  * Copyright (c) 2004-2005 David Schultz <das%FreeBSD.ORG@localhost>
@@ -143,6 +143,11 @@
        } __bits;
 };
 
+#if __GNUC_PREREQ__(8, 0)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
 __fenv_static __inline int
 feclearexcept(int __excepts)
 {
@@ -273,6 +278,10 @@
        return (0);
 }
 
+#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