Source-Changes-HG archive

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

[src/trunk]: src .fpu is not handled correctly by LLVM's assembler parser, so...



details:   https://anonhg.NetBSD.org/src/rev/2ae6b7d71583
branches:  trunk
changeset: 330194:2ae6b7d71583
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Jun 28 20:18:15 2014 +0000

description:
.fpu is not handled correctly by LLVM's assembler parser, so use GAS for
now.

diffstat:

 doc/TODO.clang                 |  5 ++++-
 sys/lib/libunwind/Makefile.inc |  6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r a7d271ec982d -r 2ae6b7d71583 doc/TODO.clang
--- a/doc/TODO.clang    Sat Jun 28 17:32:27 2014 +0000
+++ b/doc/TODO.clang    Sat Jun 28 20:18:15 2014 +0000
@@ -1,4 +1,4 @@
-$NetBSD: TODO.clang,v 1.9 2014/02/15 08:25:01 wiz Exp $
+$NetBSD: TODO.clang,v 1.10 2014/06/28 20:18:15 joerg Exp $
 
 Hacks for the clang integration
 -------------------------------
@@ -9,3 +9,6 @@
 Missing atomic support in ARM libgcc, -march=armv6 "workaround":
     src/external/bsd/libc++/lib
     src/external/bsd/lllvm/lib/libLLVMSupport
+
+Workaround for .fpu handling in src/sys/lib/libunwind for ARM by forcing
+GNU as.
diff -r a7d271ec982d -r 2ae6b7d71583 sys/lib/libunwind/Makefile.inc
--- a/sys/lib/libunwind/Makefile.inc    Sat Jun 28 17:32:27 2014 +0000
+++ b/sys/lib/libunwind/Makefile.inc    Sat Jun 28 20:18:15 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.7 2014/06/13 21:31:20 matt Exp $
+#      $NetBSD: Makefile.inc,v 1.8 2014/06/28 20:18:15 joerg Exp $
 
 .PATH: ${NETBSDSRCDIR}/sys/lib/libunwind
 
@@ -11,3 +11,7 @@
 COPTS.libunwind.cxx+=  -funwind-tables -fno-rtti
 COPTS.libunwind.cxx+=  -fno-exceptions -fvisibility=hidden
 COPTS.libunwind.cxx+=  -Wno-old-style-cast
+
+.if ${MACHINE_CPU} == "arm"
+AFLAGS.unwind_registers.S+=    -no-integrated-as
+.endif



Home | Main Index | Thread Index | Old Index