[PATCH] [compiler-rt] fix and simplify GetMaxVirtualAddress for ppc64*
Will Schmidt
willschm at us.ibm.com
Thu Oct 30 15:37:30 PDT 2014
Hi kcc, samsonov, wschmidt,
Use __builtin_frame_address(0) to calculate the memory layout for power. This works for both PPC64 endian-ness modes, so also eliminates the need for the BIG_ENDIAN/LITTLE_ENDIAN checks.
By trial and error, it also looks like the kPPC64_ShadowOffset64 value is (1ULL << 41) for both BE and LE, so that #if/#elif/#endif block has also been simplified.
http://reviews.llvm.org/D6044
Files:
lib/asan/asan_mapping.h
lib/sanitizer_common/sanitizer_posix.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6044.15587.patch
Type: text/x-patch
Size: 2000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141030/e804d0e0/attachment.bin>
More information about the llvm-commits
mailing list