jeremfg created this revision.
jeremfg added a reviewer: mstorsjo.
Herald added subscribers: libcxx-commits, ldionne, kristof.beyls, javed.absar.

I'm a first time contributor to LLVM...

While attempting to compile the assembly files ( .S) for a Cortex-M4 device 
using GCC's arm-none-eabi, I encountered issue which this patch fixes.


Repository:
  rUNW libunwind

https://reviews.llvm.org/D60417

Files:
  UnwindRegistersRestore.S
  UnwindRegistersSave.S


Index: UnwindRegistersSave.S
===================================================================
--- UnwindRegistersSave.S
+++ UnwindRegistersSave.S
@@ -750,6 +750,9 @@
 #elif defined(__arm__) && !defined(__APPLE__)
 
 #if !defined(__ARM_ARCH_ISA_ARM)
+#if (__ARM_ARCH_ISA_THUMB == 2)
+  .syntax unified
+#endif
   .thumb
 #endif
 
Index: UnwindRegistersRestore.S
===================================================================
--- UnwindRegistersRestore.S
+++ UnwindRegistersRestore.S
@@ -610,6 +610,9 @@
 #elif defined(__arm__) && !defined(__APPLE__)
 
 #if !defined(__ARM_ARCH_ISA_ARM)
+#if (__ARM_ARCH_ISA_THUMB == 2)
+  .syntax unified
+#endif
   .thumb
 #endif
 


Index: UnwindRegistersSave.S
===================================================================
--- UnwindRegistersSave.S
+++ UnwindRegistersSave.S
@@ -750,6 +750,9 @@
 #elif defined(__arm__) && !defined(__APPLE__)
 
 #if !defined(__ARM_ARCH_ISA_ARM)
+#if (__ARM_ARCH_ISA_THUMB == 2)
+  .syntax unified
+#endif
   .thumb
 #endif
 
Index: UnwindRegistersRestore.S
===================================================================
--- UnwindRegistersRestore.S
+++ UnwindRegistersRestore.S
@@ -610,6 +610,9 @@
 #elif defined(__arm__) && !defined(__APPLE__)
 
 #if !defined(__ARM_ARCH_ISA_ARM)
+#if (__ARM_ARCH_ISA_THUMB == 2)
+  .syntax unified
+#endif
   .thumb
 #endif
 
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to