Module Name: src
Committed By: mrg
Date: Wed Feb 7 06:17:45 UTC 2018
Modified Files:
src/libexec/ld.elf_so: rtld.c
Log Message:
update for GCC 6:
ignore -Wframe-address warnings for the ppc hack.
To generate a diff of this commit:
cvs rdiff -u -r1.188 -r1.189 src/libexec/ld.elf_so/rtld.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ld.elf_so/rtld.c
diff -u src/libexec/ld.elf_so/rtld.c:1.188 src/libexec/ld.elf_so/rtld.c:1.189
--- src/libexec/ld.elf_so/rtld.c:1.188 Mon Nov 6 21:16:04 2017
+++ src/libexec/ld.elf_so/rtld.c Wed Feb 7 06:17:45 2018
@@ -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 @@ _rtld_objmain_sym(const char *name)
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