[PATCH] Wrap .subsections_via_symbols directives in #if __APPLE__

Jon Roelofs jonathan at codesourcery.com
Fri May 9 14:16:11 PDT 2014


Hi t.p.northover,

http://reviews.llvm.org/D3708

Files:
  lib/builtins/arm/restore_vfp_d8_d15_regs.S
  lib/builtins/arm/save_vfp_d8_d15_regs.S
  lib/builtins/arm/switch16.S
  lib/builtins/arm/switch32.S
  lib/builtins/arm/switch8.S
  lib/builtins/arm/switchu8.S

Index: lib/builtins/arm/restore_vfp_d8_d15_regs.S
===================================================================
--- lib/builtins/arm/restore_vfp_d8_d15_regs.S
+++ lib/builtins/arm/restore_vfp_d8_d15_regs.S
@@ -31,5 +31,7 @@
 	bx      lr                      // return to prolog
 END_COMPILERRT_FUNCTION(__restore_vfp_d8_d15_regs)
 
+#if defined(__APPLE__)
 	// tell linker it can break up file at label boundaries
 	.subsections_via_symbols
+#endif
Index: lib/builtins/arm/save_vfp_d8_d15_regs.S
===================================================================
--- lib/builtins/arm/save_vfp_d8_d15_regs.S
+++ lib/builtins/arm/save_vfp_d8_d15_regs.S
@@ -31,5 +31,7 @@
 	bx      lr                      // return to prolog
 END_COMPILERRT_FUNCTION(__save_vfp_d8_d15_regs)
 
+#if defined(__APPLE__)
 	// tell linker it can break up file at label boundaries
 	.subsections_via_symbols
+#endif
Index: lib/builtins/arm/switch16.S
===================================================================
--- lib/builtins/arm/switch16.S
+++ lib/builtins/arm/switch16.S
@@ -42,5 +42,7 @@
 	bx      ip                      // jump to computed label
 END_COMPILERRT_FUNCTION(__switch16)
 
+#if defined(__APPLE__)
 	// tell linker it can break up file at label boundaries
 	.subsections_via_symbols
+#endif
Index: lib/builtins/arm/switch32.S
===================================================================
--- lib/builtins/arm/switch32.S
+++ lib/builtins/arm/switch32.S
@@ -42,6 +42,8 @@
 	bx      ip                       // jump to computed label
 END_COMPILERRT_FUNCTION(__switch32)
 
+#if defined(__APPLE__)
 	// tell linker it can break up file at label boundaries
 	.subsections_via_symbols
+#endif
 
Index: lib/builtins/arm/switch8.S
===================================================================
--- lib/builtins/arm/switch8.S
+++ lib/builtins/arm/switch8.S
@@ -40,6 +40,8 @@
 	bx      ip                      // jump to computed label
 END_COMPILERRT_FUNCTION(__switch8)
 
+#if defined(__APPLE__)
 	// tell linker it can break up file at label boundaries
 	.subsections_via_symbols
+#endif
 
Index: lib/builtins/arm/switchu8.S
===================================================================
--- lib/builtins/arm/switchu8.S
+++ lib/builtins/arm/switchu8.S
@@ -40,6 +40,8 @@
 	bx      ip                      // jump to computed label
 END_COMPILERRT_FUNCTION(__switchu8)
 
+#if defined(__APPLE__)
 	// tell linker it can break up file at label boundaries
 	.subsections_via_symbols
+#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3708.9274.patch
Type: text/x-patch
Size: 2505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140509/9d7a2c4f/attachment.bin>


More information about the llvm-commits mailing list