Displaying 3 results from an estimated 3 matches for "builtin_return_address".
2007 Dec 08
0
[LLVMdev] Darwin vs exceptions
...ns to work on PPC darwin. After much
> digging and confusion, there seem
> to be two separate issues.
Ok.
> The gcc testsuite is running the version of the unwinding code that
> was built with the local (llvm-)gcc,
> which doesn't work because nobody has implemented
> builtin_return_address for that target.
> So that's one problem.
That's an easy problem. I just implemented __builtin_return_address
on PPC, at least builtin_return_address(0), please let me know if that
is sufficient.
> More seriously, the version of the unwinding code installed on the
> system...
2007 Dec 08
4
[LLVMdev] Darwin vs exceptions
So I couldn't get exceptions to work on PPC darwin. After much
digging and confusion, there seem
to be two separate issues.
The gcc testsuite is running the version of the unwinding code that
was built with the local (llvm-)gcc,
which doesn't work because nobody has implemented
builtin_return_address for that target.
So that's one problem.
More seriously, the version of the unwinding code installed on the
system doesn't work either, for a
different reason (and also doesn't work on x86 Darwin). It turns out
the installed code has the
following patch, which is not in the llvm-g...
2007 Dec 08
0
[LLVMdev] Darwin vs exceptions
Chris,
> That's an easy problem. I just implemented __builtin_return_address
> on PPC, at least builtin_return_address(0), please let me know if that
> is sufficient.
There are bunch of another builtins required for eh to execute properly.
The 3 most important one are:
- eh_return
- unwind_init
- dwarf_cfa
The first two precisely match to the gcc's ones, the thir...