Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gmon copy the i386 workaround for amd64.



details:   https://anonhg.NetBSD.org/src/rev/eff4a8e5e34c
branches:  trunk
changeset: 829557:eff4a8e5e34c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Feb 05 22:12:37 2018 +0000

description:
copy the i386 workaround for amd64.

diffstat:

 lib/libc/gmon/Makefile.inc |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r bf9b582fb037 -r eff4a8e5e34c lib/libc/gmon/Makefile.inc
--- a/lib/libc/gmon/Makefile.inc        Mon Feb 05 22:11:42 2018 +0000
+++ b/lib/libc/gmon/Makefile.inc        Mon Feb 05 22:12:37 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.12 2018/02/04 01:13:45 mrg Exp $
+#      $NetBSD: Makefile.inc,v 1.13 2018/02/05 22:12:37 mrg Exp $
 #      @(#)Makefile.inc        8.1 (Berkeley) 6/4/93
 
 # gmon sources
@@ -18,7 +18,8 @@
 COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wa,--no-warn :}
 .endif
 
-.if (${MACHINE_CPU} == "i386") && ${HAVE_GCC:U0} >= 6
+.if (${MACHINE_CPU} == "i386" || ${MACHINE_CPU} == "x86_64") && \
+    ${HAVE_GCC:U0} >= 6
 # The usage of __builtin_frame_address(1) should be OK.
 COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc":? -Wno-error=frame-address :}
 .endif



Home | Main Index | Thread Index | Old Index