re PR sanitizer/64013 (libsanitizer fails to build)
PR sanitizer/64013 * sanitizer_common/sanitizer_linux.cc (FileExists): Cherry pick upstream r222532. From-SVN: r217921
This commit is contained in:
parent
e984e36fe0
commit
7697b16f45
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-11-21 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/61137
|
||||
* config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
|
||||
(TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
|
||||
|
||||
2014-11-14 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* sanitizer_common/Makefile.am (AM_CXXFLAGS): Use -std=gnu++11.
|
||||
|
|
|
@ -281,17 +281,15 @@ uptr internal_execve(const char *filename, char *const argv[],
|
|||
|
||||
// ----------------- sanitizer_common.h
|
||||
bool FileExists(const char *filename) {
|
||||
struct stat st;
|
||||
#if SANITIZER_USES_CANONICAL_LINUX_SYSCALLS
|
||||
struct stat st;
|
||||
if (internal_syscall(SYSCALL(newfstatat), AT_FDCWD, filename, &st, 0))
|
||||
return false;
|
||||
#else
|
||||
struct stat st;
|
||||
if (internal_stat(filename, &st))
|
||||
#endif
|
||||
return false;
|
||||
// Sanity check: filename is a regular file.
|
||||
return S_ISREG(st.st_mode);
|
||||
#endif
|
||||
}
|
||||
|
||||
uptr GetTid() {
|
||||
|
|
Loading…
Add table
Reference in a new issue