Dimitry Andric cb53322fdf Revert r314907, and pull in r298713 from upstream compiler-rt trunk (by
Weiming Zhao):

  builtins: Select correct code fragments when compiling for Thumb1/Thum2/ARM ISA.

  Summary:
  Value of __ARM_ARCH_ISA_THUMB isn't based on the actual compilation
  mode (-mthumb, -marm), it reflect's capability of given CPU.

  Due to this:
   - use  __tbumb__ and __thumb2__ insteand of __ARM_ARCH_ISA_THUMB
   - use '.thumb' directive consistently  in all affected files
   - decorate all thumb functions using
     DEFINE_COMPILERRT_THUMB_FUNCTION()

  ---------
  Note: This patch doesn't fix broken Thumb1 variant of __udivsi3 !

  Reviewers: weimingz, rengolin, compnerd

  Subscribers: aemerson, dim

  Differential Revision: https://reviews.llvm.org/D30938

Discussed with:	mmel
X-MFC-With:	r314564
2017-03-26 20:36:35 +00:00
..
2017-01-08 19:47:17 +00:00
2017-01-08 19:47:17 +00:00
2017-01-08 19:47:17 +00:00
2017-01-08 19:47:17 +00:00
2017-01-08 19:47:17 +00:00
2017-01-08 19:47:17 +00:00
2017-01-08 19:47:17 +00:00
2017-01-08 19:47:17 +00:00
2017-01-09 22:49:35 +00:00