| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
This removes the unused variable `flags`. NFC
llvm-svn: 266892
|
|
|
|
|
|
|
|
|
| |
Windows does not honour the __attribute__((pcs)) on ARM. Although this will
result in ABI mismatches, compiler-rt should largely be unneeded for resolving
dependencies as we generate MS ABI compliant library calls now for the most
part.
llvm-svn: 266891
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clang's StaticAnalyzer seems to (correctly) complain about code like:
T *p = calloc(sizeof(U), N);
...Where T and U are different types.
This patch removes some instances of this pattern from compiler-rt.
Patch by Apelete Seketeli.
Differential Revision: http://reviews.llvm.org/D19085
llvm-svn: 266388
|
|
|
|
|
|
| |
This just gets rid of a bunch of empty object file warnings. It doesn't impact the generated archives.
llvm-svn: 264751
|
|
|
|
|
|
| |
This addresses PR27077. For some historical reason Darwin wasn't shipping multi3 in the compiler builtin library or in the OS builtin library. This caused building ffmpeg to fail because Polly was generating calls to multi3. It is easy enough to just add the builtin.
llvm-svn: 264750
|
|
|
|
|
|
| |
This just gets rid of a bunch of empty object file warnings. It doesn't impact the generated archives.
llvm-svn: 264749
|
|
|
|
|
|
|
| |
__clear_cache on Android is identical to the version on Linux. Use __linux__
instead of __ANDROID__ as __linux__ is defined for Linux and Android.
llvm-svn: 263833
|
|
|
|
|
|
|
| |
Support __clear_cache on Windows on ARM using the `FlushInstructionCache`
library call.
llvm-svn: 263832
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Until now the only exception APIs supported by gcc_personality_v0
are DWARF EH and SJLJ. This adds support for ARM EHABI as well.
This is achieved by
a) changing the function signature on ARM EHABI,
b) unwinding the stack before returning _URC_CONTINUE_UNWIND.
See "Exception Handling ABI for the ARM Architecture" for details
(http://infocenter.arm.com/help/topic/com.arm.doc.ihi0038b/IHI0038B_ehabi.pdf).
Patch by Timon Van Overveldt.
llvm-svn: 263010
|
|
|
|
|
|
|
|
|
| |
Adjust the clobbers list. This use to work with older versions of gcc, but now
will error on newer versions (tested against 5.3) (as well as clang).
Patch by Tee Hao Wei!
llvm-svn: 261821
|
|
|
|
|
|
|
|
| |
This enables MSVC build of complex number arithmetic compiler-rt builtins.
Differential Revision: http://reviews.llvm.org/D17452
llvm-svn: 261432
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The type of size and align in struct __emutls_control must be
typedef unsigned int gcc_word __attribute__((mode(word)));
to match GCC. When gcc_word is larger than size_t, which is the case
for x32, the upper extra bits are all zeros. We can use variables of
size_t to operate on size and align.
Fix one trivial C99 warning about mixed declaration and code.
Differential Revision: http://reviews.llvm.org/D16886
llvm-svn: 259824
|
|
|
|
| |
llvm-svn: 259451
|
|
|
|
| |
llvm-svn: 257619
|
|
|
|
| |
llvm-svn: 257618
|
|
|
|
| |
llvm-svn: 256256
|
|
|
|
|
|
|
|
|
|
|
|
| |
si_int is already defined in sysroot's siginfo.h
emutls.c includes pthread.h which includes asm/siginfo.h which
in turn includes asm-generic/siginfo.h and that defines si_int.
si_int is also defined in builtin's int_types.h and this leads to
errors. This patch fixes the issue by undefining the si_int in int_types.h
Differential Revision: http://reviews.llvm.org/D15086
llvm-svn: 254472
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D15083
llvm-svn: 254470
|
|
|
|
|
|
| |
Mark the unit test as applying to all platforms.
llvm-svn: 253831
|
|
|
|
| |
llvm-svn: 253828
|
|
|
|
| |
llvm-svn: 253827
|
|
|
|
|
|
|
|
| |
Thanks to angelsl for the patch!
Differential Revision: http://reviews.llvm.org/D13692
llvm-svn: 253646
|
|
|
|
| |
llvm-svn: 252965
|
|
|
|
| |
llvm-svn: 252964
|
|
|
|
|
|
| |
I was a little too aggressive about adding sources from the arm subdirectory.
llvm-svn: 252929
|
|
|
|
|
|
| |
Turns out you need to save before committing.
llvm-svn: 252928
|
|
|
|
|
|
| |
Also added a TODO comment to make the build system throw an error if the CMakeLists gets out of sync again.
llvm-svn: 252927
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of tests and __fixuint
Summary:
The following tests for 128-bit floating-point type behaved in a strange way, thought it were bugs, but seem to be mistakes in tests:
* `fixtfsi` test checked for `0x80000001` as a value returned for number less than can be represented, while `LONG_MIN` should be returned on saturation;
* `fixunstfdi` wasn't enabled for AArch64, only for PPC, but there is nothing PPC specific in that test;
* `multf3` tried to underflow multiplication by producing result with 16383 exponent, while there are still 112 bits of fraction plus implicit bit, so resultant exponent should be 16497.
Tests for some other builtins didn't exist:
* `fixtfdi`
* `fixtfti`
* `fixunstfti`
They were made by copying similar files and adjusting for wider types and adding/removing some reasonable/extra checks.
Also `__fixuint` seems to have off by one error, updated tests to catch this case.
Reviewers: rengolin, zatrazz, howard.hinnant, t.p.northover, jmolloy, enefaim
Subscribers: aemerson, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D14187
llvm-svn: 252180
|
|
|
|
| |
llvm-svn: 251931
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add chkstk/alloca for gcc objects.
Replace or instructions with test, the latter should be marginally more
efficent, as it does not write to memory.
Differential Revision: http://reviews.llvm.org/D14044
Patch by vadimcn
llvm-svn: 251928
|
|
|
|
|
|
|
|
|
| |
MSVC 2013 doesnt support C99 fully, including the hexidecimal floating point
representation. Use the expanded value to permit building with it.
Patch by Tee Hao Wei!
llvm-svn: 250365
|
|
|
|
|
|
|
|
|
| |
The assembly implementations use GNU syntax which MSVC doesn't handle. Rather
than duplicate the code in a second syntax, use the C implementations.
Patch by Tee Hao Wei!
llvm-svn: 250360
|
|
|
|
|
|
|
|
|
| |
Add an implementation for __builtin_clzll on MSVC even when _BitScanForward4 is
unavailable.
Patch by Tee Hao Wei!
llvm-svn: 250359
|
|
|
|
|
|
|
|
| |
Revert once more. This seems to fail to build on the buildbots which build with
ninja rather than MSBuild/Visual Studio. This requires further build
infrastructure changes to deal with the assembly routines.
llvm-svn: 250001
|
|
|
|
|
|
|
| |
Previous changes should now permit building on MSVC 2013 in addition to MSVC
2015.
llvm-svn: 250000
|
|
|
|
|
|
| |
Abstract out the always inline spelling similar to ASAN. NFC.
llvm-svn: 249986
|
|
|
|
|
|
|
| |
Now that we have the NORETURN macro, use that to mark the function as noreturn,
rather than the GNU __attribute__.
llvm-svn: 249985
|
|
|
|
|
|
|
|
|
| |
__inline is a vendor specific spelling for inline. clang and gcc treat it the
same as inline, and is available in MSVC 2013 which does not implement C99
(VS2015 supports the inline keyword though). This will allow us to build the
builtins using MSVC.
llvm-svn: 249953
|
|
|
|
|
|
|
| |
Seems to break on the sanitizer buildbot. Revert until it can be fixed
properly.
llvm-svn: 249950
|
|
|
|
|
|
| |
_BitReverse64 is only available on ARM and x64. Guard it accordingly.
llvm-svn: 249949
|
|
|
|
|
|
| |
Patch by Tee Hao Wei!
llvm-svn: 249948
|
|
|
|
| |
llvm-svn: 249914
|
|
|
|
|
|
| |
Xcode distribution.
llvm-svn: 249912
|
|
|
|
| |
llvm-svn: 249888
|
|
|
|
|
|
|
| |
The ARM RTABI defines these functions as __aeabi_h2f, __aeabi_f2h and
__aeabi_d2h, so we need aliases for them.
llvm-svn: 249559
|
|
|
|
|
|
|
| |
__GNUC__ indicates the GNU compiler, not __GNU__. This got through due to
building with clang rather than gcc.
llvm-svn: 249516
|
|
|
|
|
|
|
|
|
| |
cl does not support the same intrinsics as clang. Provide implementations for
the intrinsics using MSVC builtins.
Patch by Tee Hao Wei!
llvm-svn: 249515
|
|
|
|
|
|
|
|
|
| |
cl does not support C99 completely as of VS2015. Emulate _Complex to allow
building with MSVC.
Patch by Tee Hao Wei!
llvm-svn: 249514
|
|
|
|
|
|
|
|
| |
Use MSVCRT functions for floating-point builtins unavailable on MSVC.
Patch by Tee Hao Wei!
llvm-svn: 249513
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: howard.hinnant, samsonov
Subscribers: samsonov, dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D13098
llvm-svn: 249382
|