Source-Changes-HG archive

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

[src/trunk]: src/libexec/ld.elf_so Wrap PowerPC #pragma goop in #if __GNUC_PR...



details:   https://anonhg.NetBSD.org/src/rev/9cc5106992df
branches:  trunk
changeset: 829771:9cc5106992df
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Feb 11 18:58:44 2018 +0000

description:
Wrap PowerPC #pragma goop in #if __GNUC_PREREQ__(6,0).
Our older GCC warns/errors on it.

diffstat:

 libexec/ld.elf_so/rtld.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 920aa079775e -r 9cc5106992df libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c  Sun Feb 11 16:45:35 2018 +0000
+++ b/libexec/ld.elf_so/rtld.c  Sun Feb 11 18:58:44 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld.c,v 1.189 2018/02/07 06:17:45 mrg Exp $    */
+/*     $NetBSD: rtld.c,v 1.190 2018/02/11 18:58:44 jakllsch Exp $       */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rtld.c,v 1.189 2018/02/07 06:17:45 mrg Exp $");
+__RCSID("$NetBSD: rtld.c,v 1.190 2018/02/11 18:58:44 jakllsch Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -1109,10 +1109,14 @@
 static __noinline void *
 hackish_return_address(void)
 {
+#if __GNUC_PREREQ__(6,0)
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wframe-address"
+#endif
        return __builtin_return_address(1);
+#if __GNUC_PREREQ__(6,0)
 #pragma GCC diagnostic pop
+#endif
 }
 #endif
 



Home | Main Index | Thread Index | Old Index