Cherry-pick compiler-rt revision 338606 (PR sanitizer/86022).
authorMartin Liska <mliska@suse.cz>
Thu, 2 Aug 2018 09:32:58 +0000 (11:32 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 2 Aug 2018 09:32:58 +0000 (09:32 +0000)
Fix sizeof(struct pthread) in glibc 2.14.

2018-08-02  Martin Liska  <mliska@suse.cz>

        PR sanitizer/86022
* sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
        Cherry-pick compiler-rt revision 338606.

From-SVN: r263246

libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc

index 52b88337f0017fa691f22cccac8efa3b275de506..556fdfbddc49e5956f26717a50f3d963a1c84e05 100644 (file)
@@ -1,3 +1,9 @@
+2018-08-02  Martin Liska  <mliska@suse.cz>
+
+        PR sanitizer/86022
+       * sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
+        Cherry-pick compiler-rt revision 338606.
+
 2018-08-01  Marek Polacek  <polacek@redhat.com>
 
        PR sanitizer/86759
index d27a84358024c120ea24a2f6535fea939fbaec95..3b1a2174c46c15212a222d7ce33c9e8c84661262 100644 (file)
@@ -235,7 +235,7 @@ uptr ThreadDescriptorSize() {
         val = FIRST_32_SECOND_64(1168, 1776);
       else if (minor == 11 || (minor == 12 && patch == 1))
         val = FIRST_32_SECOND_64(1168, 2288);
-      else if (minor <= 13)
+      else if (minor <= 14)
         val = FIRST_32_SECOND_64(1168, 2304);
       else
         val = FIRST_32_SECOND_64(1216, 2304);