Displaying 13 results from an estimated 13 matches for "_unwind_reason_code".
2013 Dec 20
1
[LLVMdev] spilling & restoring registers for EHReturn & return _Unwind_Reason_Code
...ib into my new lib for some such functions - and exceptions 'seem' to work again.
(the critical functions being found in eh_personality.o, unwind-dw2.o, eh_throw.o)
Looking at functions built using the llvm3.0-gcc front end, I noticed that R0 & R1 were spilled/restored (clobbering '_Unwind_Reason_Code') , along with the callee saved regs.
So how are things meant to work?
For example take:
define i32 @_Unwind_RaiseException(%struct._Unwind_Exception* %exc)
This calls:
@llvm.eh.unwind.init()
followed by:
call void @llvm.eh.return()
ret i32 '_Unwind_Reason_Code'
c...
2015 Jul 24
3
[LLVMdev] Compiling LibC++ with LLVM on ARM
...one go by adding libcxx and
libcxxabi into llvm/src/projects.
The first stage obviously has to use the system compiler, which is GCC
4.8.2, but I'm getting an error on ARM:
Unwind-EHABI.cpp:1000:47: error: expected unqualified-id before string constant
_LIBUNWIND_EXPORT extern "C" _Unwind_Reason_Code
with the caret pointing at _Unwind_Reason_Code.
With Clang, it passes, as it's what I'm using on the libcxx ARM buildbot.
I tried using -std=c++11 on CXXFLAGS, but didn't seem to have made a difference.
Ideas?
cheers,
--renato
PS: I have other problems with AArch64, but let's...
2010 Jan 19
1
[LLVMdev] compiler-rt project PATCH
In lib/gcc_personality_v0.c, I believe the type of the exception_cleanup member of the struct
_Unwind_Exception is incorrect. It has a return type of _Unwind_Reason_Code versus a return
type of void as specified in http://refspecs.freestandards.org/abi-eh-1.21.html, and as can be seen
in unwind.h on Linux, and OS X 10.6.x (the latter's unwind.h is under the Developer directory tree).
The attached patch changes this return type to void.
Garrison
----------...
2015 Jul 24
0
[LLVMdev] Compiling LibC++ with LLVM on ARM
Hi Renato,
On 24 July 2015 at 04:35, Renato Golin <renato.golin at linaro.org> wrote:
> Unwind-EHABI.cpp:1000:47: error: expected unqualified-id before string constant
> _LIBUNWIND_EXPORT extern "C" _Unwind_Reason_Code
GCC seems to be stricter than Clang about the ordering of
__attribute__ (from _LIBUNWIND_EXPORT) and 'extern "C"'. You can play
around with:
__attribute__((visibility("default"))) extern "C" void func() {}
Cheers.
Tim.
2020 May 01
2
MTE -- discussion on Exception unwinding ABI
...te this downside we could make a small test to check that the
users build environment is set up correctly -- then there's at least a
simple advertised procedure that the user can use to double check their
unwinder is MTE-aware.
## Approach 2.
An alternative is to introduce new values into the _Unwind_Reason_Code
enum so that a personality routine can inform the unwinder that a given
function has its stack tagged for MTE.
The untagging will still be done in the general unwinder, but those
functions which tag their stack use a different personality routine
(e.g. __gxx_personality_mte_v0) that returns a new...
2018 Dec 10
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...] Building C object
lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/gcc_personality_v0.c.o
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:148:47:
warning: declaration of 'struct _Unwind_Exception' will not be visible
outside of this function [-Wvisibility]
_Unwind_Reason_Code __gnu_unwind_frame(struct _Unwind_Exception *,
^
/home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:153:23:
warning: declaration of 'struct _Unwind_Exception' will not be visible
outside of this function [-Wvisibility]...
2018 Dec 13
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...ject lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/gcc_personality_v0.c.o
>> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:148:47: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this function [-Wvisibility]
>> _Unwind_Reason_Code __gnu_unwind_frame(struct _Unwind_Exception *,
>> ^
>> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:153:23: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this functio...
2018 Dec 14
3
Compiling for baremetal ARMv4 on Ubuntu Linux
...ct lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/gcc_personality_v0.c.o
> > /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:148:47: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this function [-Wvisibility]
> > _Unwind_Reason_Code __gnu_unwind_frame(struct _Unwind_Exception *,
> > ^
> > /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:153:23: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this functi...
2020 Aug 15
5
Supporting libunwind on Windows 10 (32bit; 64bit) for MSVC and Clang
...-ext.c:108:1: warning:
redeclaration of '_Unwind_Backtrace' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
_Unwind_Backtrace(_Unwind_Trace_Fn callback, void *ref) {
^
C:/Users/clang/libunwind/include\unwind.h:307:28: note: previous
declaration is here
extern _Unwind_Reason_Code _Unwind_Backtrace(_Unwind_Trace_Fn, void *);
^
C:/Users/clang/libunwind/src/UnwindLevel1-gcc-ext.c:187:31: warning:
redeclaration of '_Unwind_Find_FDE' should not add 'dllexport' attribute
[-Wdll-attribute-on-redeclaration]
_LIBUNWIND_EXPORT const void *_U...
2019 Feb 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...CMakeFiles/clang_rt.builtins-armhf.dir/gcc_personality_v0.c.o
> >>> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:148:47: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this function [-Wvisibility]
> >>> _Unwind_Reason_Code __gnu_unwind_frame(struct _Unwind_Exception *,
> >>> ^
> >>> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:153:23: warning: declaration of 'struct _Unwind_Exception' will not be visible outsi...
2019 Mar 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...ing C object lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/gcc_personality_v0.c.o
> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:148:47: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this function [-Wvisibility]
> _Unwind_Reason_Code __gnu_unwind_frame(struct _Unwind_Exception *,
> ^
> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:153:23: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this function [-Wvis...
2019 Mar 11
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...ing C object lib/builtins/CMakeFiles/clang_rt.builtins-armhf.dir/gcc_personality_v0.c.o
> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:148:47: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this function [-Wvisibility]
> _Unwind_Reason_Code __gnu_unwind_frame(struct _Unwind_Exception *,
> ^
> /home/llvm_all/llvm/projects/compiler-rt/lib/builtins/gcc_personality_v0.c:153:23: warning: declaration of 'struct _Unwind_Exception' will not be visible outside of this function [-Wvis...
2018 Dec 07
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello,
on the problems cross-building compiler-rt: Tried to follow
https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html which lead to
this cmake:
cmake -G "Ninja" ../llvm/projects/compiler-rt/
-DCOMPILER_RT_BUILD_BUILTINS=ON -DCOMPILER_RT_BUILD_SANITIZERS=OFF
-DCOMPILER_RT_BUILD_XRAY=OFF -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
-DCOMPILER_RT_BUILD_PROFILE=OFF