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/114f753b424c
branches:  trunk
changeset: 997966:114f753b424c
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 c0aeaade24ea -r 114f753b424c 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