]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tile: avoid using _LP64
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 11 May 2012 20:53:19 +0000 (16:53 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 14 May 2012 19:46:11 +0000 (15:46 -0400)
The convention is to use __WORDSIZE everywhere.  I happened to
notice that we weren't doing this in __tls_get_addr.S.

ChangeLog.tile
sysdeps/tile/__tls_get_addr.S

index 2ce98e971b537c3595607d011c58480d266d5866..5cdc293f8ee6a2d19e32f5abde5318fab9911349 100644 (file)
@@ -1,3 +1,7 @@
+2012-05-12  Chris Metcalf  <cmetcalf@tilera.com>
+
+       * sysdeps/tile/__tls_get_addr.S: Use __WORDSIZE, not _LP64.
+
 2012-05-12  Chris Metcalf  <cmetcalf@tilera.com>
 
        * sysdeps/tile/stackguard-macros.h: New file.
index 8cf49f0b2ba2e4cb63d3331a83889121a5d15dd5..74e4fa2c2635c1971ce03e6fea34821d24c637af 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
 
@@ -18,8 +18,9 @@
 
 #include <sysdep.h>
 #include <tls.h>
+#include <bits/wordsize.h>
 
-#ifdef _LP64
+#if __WORDSIZE == 64
 #define LOG_SIZEOF_DTV_T 4
 #else
 #define LOG_SIZEOF_DTV_T 3