[LLVMdev] GCC/LLVM frame pointer incompatibility on ARM
Yury Gribov
y.gribov at samsung.com
Tue Jul 15 22:45:05 PDT 2014
Hi all,
As has been mentioned several times (*), LLVM and GCC setup frame
pointer to point to different stack slots on ARM. GCC's fp points to
stack slot holding lr while LLVM's fp points at the next slot.
Fp incompatibility complicates low-level system code e.g. stack
unwinders because it is impossible to robustly determine location of
caller's fp.
Is this incompatibility intentional/desired or we could somehow unify
GCC and LLVM in this regard?
(*) Links to older discussions:
* http://comments.gmane.org/gmane.comp.compilers.llvm.devel/69514
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61771
--
Best regards,
Yury Gribov
More information about the llvm-dev
mailing list