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 Disable optimization for rtld.c on the vax...



details:   https://anonhg.NetBSD.org/src/rev/67775004d9b4
branches:  trunk
changeset: 840348:67775004d9b4
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 03 21:37:58 2019 +0000

description:
Disable optimization for rtld.c on the vax with gcc-7.

diffstat:

 libexec/ld.elf_so/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 79a8361506c9 -r 67775004d9b4 libexec/ld.elf_so/Makefile
--- a/libexec/ld.elf_so/Makefile        Wed Apr 03 21:03:06 2019 +0000
+++ b/libexec/ld.elf_so/Makefile        Wed Apr 03 21:37:58 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.140 2018/12/27 18:58:14 christos Exp $
+#      $NetBSD: Makefile,v 1.141 2019/04/03 21:37:58 christos Exp $
 #
 # NOTE: when changing ld.so, ensure that ldd still compiles.
 #
@@ -124,6 +124,10 @@
 COPTS.rtld.c+= -Wno-stack-protector
 COPTS.symbol.c+=-Wno-stack-protector
 
+.if ${MACHINE_CPU} == "vax"
+COPTS.rtld.c+= -O0
+.endif
+
 LDADD+=                -Wl,--version-script=${.CURDIR}/symbols.map
 LDADD+=                -L${CLIBOBJ} -L${DESTDIR}${LIBDIR}
 .if ${MKPICLIB} != "no"



Home | Main Index | Thread Index | Old Index