re PR sanitizer/64013 (libsanitizer fails to build)
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Nov 2014 14:03:37 +0000 (15:03 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Nov 2014 14:03:37 +0000 (15:03 +0100)
PR sanitizer/64013
* sanitizer_common/sanitizer_linux.cc (FileExists): Cherry pick
upstream r222532.

From-SVN: r217921

libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_linux.cc

index e3aab56e00b76fdd0d5fc57730823be0b2da6fe1..ed32d032d8e2b7d7127ea2e15c7fd1a74aa5b74b 100644 (file)
@@ -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.
index 8c7979fc6b56405005cc83f1e8e8afd6bf1201a2..9feb307db9f50466ffb96eb27709979895299ead 100644 (file)
@@ -281,17 +281,15 @@ uptr internal_execve(const char *filename, char *const argv[],
 
 // ----------------- sanitizer_common.h
 bool FileExists(const char *filename) {
-#if SANITIZER_USES_CANONICAL_LINUX_SYSCALLS
   struct stat st;
+#if SANITIZER_USES_CANONICAL_LINUX_SYSCALLS
   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() {