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/a0316b0fb718
branches:  trunk
changeset: 460654:a0316b0fb718
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 6a4ceac029c4 -r a0316b0fb718 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