From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28519 invoked by alias); 14 May 2012 19:58:31 -0000 Received: (qmail 28509 invoked by uid 22791); 14 May 2012 19:58:31 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from usmamail.tilera.com (HELO USMAMAIL.TILERA.COM) (12.216.194.151) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 May 2012 19:58:18 +0000 Received: from farm-0002.internal.tilera.com (10.2.0.32) by USMAEXCH2.tad.internal.tilera.com (10.3.0.33) with Microsoft SMTP Server (TLS) id 14.0.694.0; Mon, 14 May 2012 15:58:17 -0400 Received: (from cmetcalf@localhost) by farm-0002.internal.tilera.com (8.13.8/8.12.11/Submit) id q4EJwH4H007511; Mon, 14 May 2012 15:58:17 -0400 Message-ID: <201205141958.q4EJwH4H007511@farm-0002.internal.tilera.com> From: Chris Metcalf Date: Mon, 14 May 2012 19:58:00 -0000 Subject: [PATCH 07/14] tile: avoid using _LP64 To: In-Reply-To: <4FB161CE.6070905@tilera.com> References: <4FB161CE.6070905@tilera.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00064.txt.bz2 The convention is to use __WORDSIZE everywhere. I happened to notice that we weren't doing this in __tls_get_addr.S. --- ChangeLog.tile | 4 ++++ sysdeps/tile/__tls_get_addr.S | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.tile b/ChangeLog.tile index 2ce98e9..5cdc293 100644 --- a/ChangeLog.tile +++ b/ChangeLog.tile @@ -1,5 +1,9 @@ 2012-05-12 Chris Metcalf + * sysdeps/tile/__tls_get_addr.S: Use __WORDSIZE, not _LP64. + +2012-05-12 Chris Metcalf + * sysdeps/tile/stackguard-macros.h: New file. * sysdeps/tile/elf/stackguard-macros.h: New stub include file. diff --git a/sysdeps/tile/__tls_get_addr.S b/sysdeps/tile/__tls_get_addr.S index 8cf49f0..74e4fa2 100644 --- a/sysdeps/tile/__tls_get_addr.S +++ b/sysdeps/tile/__tls_get_addr.S @@ -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 , 2011. @@ -18,8 +18,9 @@ #include #include +#include -#ifdef _LP64 +#if __WORDSIZE == 64 #define LOG_SIZEOF_DTV_T 4 #else #define LOG_SIZEOF_DTV_T 3 -- 1.6.5.2