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 update for GCC 6:



details:   https://anonhg.NetBSD.org/src/rev/8c6d52105895
branches:  trunk
changeset: 359326:8c6d52105895
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Feb 07 06:17:45 2018 +0000

description:
update for GCC 6:

ignore -Wframe-address warnings for the ppc hack.

diffstat:

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

diffs (29 lines):

diff -r e329c0713461 -r 8c6d52105895 libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c  Wed Feb 07 06:17:07 2018 +0000
+++ b/libexec/ld.elf_so/rtld.c  Wed Feb 07 06:17:45 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld.c,v 1.188 2017/11/06 21:16:04 joerg Exp $  */
+/*     $NetBSD: rtld.c,v 1.189 2018/02/07 06:17:45 mrg Exp $    */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rtld.c,v 1.188 2017/11/06 21:16:04 joerg Exp $");
+__RCSID("$NetBSD: rtld.c,v 1.189 2018/02/07 06:17:45 mrg Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -1109,7 +1109,10 @@
 static __noinline void *
 hackish_return_address(void)
 {
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wframe-address"
        return __builtin_return_address(1);
+#pragma GCC diagnostic pop
 }
 #endif
 



Home | Main Index | Thread Index | Old Index