Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern don't use -fnon-call-exceptions on arm. not...



details:   https://anonhg.NetBSD.org/src/rev/9ca2d57c963c
branches:  trunk
changeset: 448700:9ca2d57c963c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Feb 07 10:44:54 2019 +0000

description:
don't use -fnon-call-exceptions on arm.  not needed and triggers eh_frame generation.

diffstat:

 sys/lib/libkern/Makefile.compiler-rt |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r de64465d87fa -r 9ca2d57c963c sys/lib/libkern/Makefile.compiler-rt
--- a/sys/lib/libkern/Makefile.compiler-rt      Thu Feb 07 10:36:20 2019 +0000
+++ b/sys/lib/libkern/Makefile.compiler-rt      Thu Feb 07 10:44:54 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.compiler-rt,v 1.7 2019/02/07 05:22:09 mrg Exp $
+# $NetBSD: Makefile.compiler-rt,v 1.8 2019/02/07 10:44:54 mrg Exp $
 
 COMPILER_RT_SRCDIR=    ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist
 
@@ -129,5 +129,7 @@
 
 # XXX Explicit divide by zero in udivmoddi4.c -> abort().
 .if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+. if ${MACHINE_CPU} != "arm"
 COPTS.udivmoddi4.c+=   -fnon-call-exceptions
+. endif
 .endif



Home | Main Index | Thread Index | Old Index