diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-09-15 15:18:51 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-09-15 15:18:51 +0000 |
commit | 16807db3d46ce311ca75cc3b383f5aea28c83b79 (patch) | |
tree | 202f4a4a4739096e8a3fc5c4d32352cbfd71a48d /llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp | |
parent | 8b62e0887d7280d015e8efc09b475227c2420f74 (diff) | |
download | bcm5719-llvm-16807db3d46ce311ca75cc3b383f5aea28c83b79.tar.gz bcm5719-llvm-16807db3d46ce311ca75cc3b383f5aea28c83b79.zip |
[sanitizer][mips64] fix MIPS64 kernel_stat_to_stat()
This patch tackles with two issues:
Output stat st_[a|m|c]time fields were holding wrong values.
st_[a|m|c]time fields should have contained value of seconds and instead
these are filled with st_[a|m|c]time_nsec fields which hold nanoseconds.
Build fails for MIPS64 if SANITIZER_ANDROID. Recently <sys/stat.h> from
bionic introduced st_[a|m|c]time_nsec macros for compatibility with old NDKs
and those clashed with the field names of the <asm/stat.h> kernel_stat
structure.
To fix both issues and make sure sanitizer builds on all platforms, we must
un-define all compatibility macros and access the fields directly when
copying the 'time' fields.
Patch by Miodrag Dinic <miodrag.dinic@imgtec.com>
Differential Revision: https://reviews.llvm.org/D35671
llvm-svn: 313360
Diffstat (limited to 'llvm/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions