[PATCH] [compiler_rt] Fix the armv7 thumb buildins on darwin

Steven Wu stevenwu at apple.com
Fri Oct 3 15:28:39 PDT 2014


Hi

This patch fixes the broken thumb buildins on apple platforms.On apple platforms, .thumb_func directive is required to generated correct symbol for thumb functions. 

 From: Steven Wu <stevenwu at apple.com>
 Date: Fri, 3 Oct 2014 15:10:52 -0700
 Subject: [PATCH] Fix the armv7 thumb buildins on darwin
 
 The arm buildins converted into thumb is completely broken on darwin.
 On apple platforms, .thumb_func directive is required to generated
 correct symbol for thumb functions.
 ---
  lib/builtins/arm/bswapdi2.S   |  2 +-
  lib/builtins/arm/bswapsi2.S   |  2 +-
  lib/builtins/arm/clzdi2.S     |  2 +-
  lib/builtins/arm/clzsi2.S     |  2 +-
  lib/builtins/arm/divmodsi4.S  |  2 +-
  lib/builtins/arm/divsi3.S     |  2 +-
  lib/builtins/arm/modsi3.S     |  2 +-
  lib/builtins/arm/sync-ops.h   |  4 ++--
  lib/builtins/arm/udivmodsi4.S |  2 +-
  lib/builtins/arm/udivsi3.S    |  2 +-
  lib/builtins/arm/umodsi3.S    |  2 +-
  lib/builtins/assembly.h       | 11 +++++++++++
  12 files changed, 23 insertions(+), 12 deletions(-)

Steven


-------------- next part --------------
A non-text attachment was scrubbed...
Name: thumb_func.patch
Type: application/octet-stream
Size: 7375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141003/5c53a3ae/attachment.obj>


More information about the llvm-commits mailing list