diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-11-25 19:09:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-11-25 19:09:40 +0000 |
commit | 7ade6c809a90fb332410de9feadd3f43f65e9c85 (patch) | |
tree | 7fc4f6f7b2b4f0d527707ee63e2874a70ffc615d /lib/builtins/gcc_personality_v0.c | |
parent | b58b5b4a2eef87f528c56a9e91d9bfeba74ac210 (diff) | |
download | src-7ade6c809a90fb332410de9feadd3f43f65e9c85.tar.gz src-7ade6c809a90fb332410de9feadd3f43f65e9c85.zip |
Vendor import of compiler-rt release_39 branch r287912:vendor/compiler-rt/compiler-rt-release_39-r287912
Notes
Notes:
svn path=/vendor/compiler-rt/dist/; revision=309158
svn path=/vendor/compiler-rt/compiler-rt-release_39-r287912/; revision=309159; tag=vendor/compiler-rt/compiler-rt-release_39-r287912
Diffstat (limited to 'lib/builtins/gcc_personality_v0.c')
-rw-r--r-- | lib/builtins/gcc_personality_v0.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/builtins/gcc_personality_v0.c b/lib/builtins/gcc_personality_v0.c index 29e5be30712f..0bc765624564 100644 --- a/lib/builtins/gcc_personality_v0.c +++ b/lib/builtins/gcc_personality_v0.c @@ -12,6 +12,17 @@ #include "int_lib.h" #include <unwind.h> +#if defined(__arm__) && !defined(__ARM_DWARF_EH__) && !defined(__USING_SJLJ_EXCEPTIONS__) +/* + * When building with older compilers (e.g. clang <3.9), it is possible that we + * have a version of unwind.h which does not provide the EHABI declarations + * which are quired for the C personality to conform to the specification. In + * order to provide forward compatibility for such compilers, we re-declare the + * necessary interfaces in the helper to permit a standalone compilation of the + * builtins (which contains the C unwinding personality for historical reasons). + */ +#include "unwind-ehabi-helpers.h" +#endif /* * Pointer encodings documented at: |