From patchwork Fri Nov 4 20:19:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 80920 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp160084qge; Fri, 4 Nov 2016 13:19:50 -0700 (PDT) X-Received: by 10.98.9.147 with SMTP id 19mr29750202pfj.68.1478290790228; Fri, 04 Nov 2016 13:19:50 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id v4si18389022pgo.267.2016.11.04.13.19.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Nov 2016 13:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-74447-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-74447-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-74447-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=Qyk91bsLrmKE3H8yhLIKGN1RmCC2heD7AvMrhglF4XZzwBeeoqbFM cNmKUlm4JS1U+gsmLsgbBma0Q26cO17Fe6ri0L1yLCDlPMgw/4q6sIGddIiOZsEQ 2ifirrbqiIcwrtnRWXE5k3BomND3o5YUYvuYCEQglKHx7PwZdfs2XQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=LvAOgUW0xZ30d2t7HX/N27Wg7BY=; b=PmgSKrmG5pRcO2JRlkboALuylqdj dEWLdCR+IvyyA/ZXNvYqJ7m67aNCFpbDgkzO6sT3cXLZ4zqfoBTI8ucz6dV2LxaA gwWcoRvh5DNjrhvEM81D3ONhnuVA6DkuoCfzGjciT1Sh3a+tm8AFXkAazECAYWF8 28QDYPCQRinrS/4= Received: (qmail 106232 invoked by alias); 4 Nov 2016 20:19:41 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 106223 invoked by uid 89); 4 Nov 2016 20:19:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:1921 X-HELO: mail-ua0-f176.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Iq8ffvUVlOvme1DGJydltcktrPGXT6KSzo6nEQukJvk=; b=IbMNB035Nhd4hOI0vhWWtqchRzmTmU6GDcJ+QHu1nWt5e1ZwPiarO9LWRfFqHW5uWN 2g/xMctEHl8+uEY1lUSM0KhjrrtfHUE4KoOWgUr9n53vXrLCr5OsjVpkBaIxmO5bfdfa grje/bwr2tLl30F0mhQXgcrmWGfWOA+gw+h5b0FXr+ACavFDdHVrnKhN9HP9D27pupOl 3lyex4s8n1AwuBe6pAA63Mj7k6TzIkMtLqpJT/UoKED32EBh0F1znJBp/Lrci6UkZN8F UhAycUxDO1h1gTTMBeV2idl4Gx79YdNxlapxzW1/FmhRuyb/Jz/qVfU0q4h1aDiZLqZa BhmA== X-Gm-Message-State: ABUngvf8DEIFbJWbG7j4oyms4X64KTvi30SQKv76M9N8DWSHGS8B4Te6+ncwzGdOUDzBWFpT X-Received: by 10.176.0.169 with SMTP id 38mr12767193uaj.34.1478290768672; Fri, 04 Nov 2016 13:19:28 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Steve Ellcey Subject: [PATCH] Fix sparc build due missing __WORDSIZE_TIME64_COMPAT32 definition (committed) Date: Fri, 4 Nov 2016 18:19:21 -0200 Message-Id: <1478290761-7603-1-git-send-email-adhemerval.zanella@linaro.org> This patch adds the missing Linux sparc definitions from d060cd0. Both value are copied from default sparc value [1] and with this fix now both sparc 32 and 64 bits builds on Linux. Also, there are lot of duplicated definition and some are not really required. I see two possible future cleanups: 1. Remove 32 bits definition form 64 bits headers and vice versa. For instance, powerpc32 and sparc32 linux wordsize contains checks for 64 bits definition and ideally 32 bit build should not include such header. 2. Linux definition could include-next default definition instead of replicate its value. * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and 64 bits. [1] sysdeps/sparc/sparc{32,64}/bits/wordsize.h --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/sparc/bits/wordsize.h | 2 ++ 2 files changed, 7 insertions(+) -- 2.7.4 diff --git a/ChangeLog b/ChangeLog index 3cf5347..27ebce7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-11-04 Adhemerval Zanella + + * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h + (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and 64 bits. + 2016-11-04 Joseph Myers [BZ #20768] diff --git a/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h b/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h index 76d6579..121b4fe 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h @@ -2,10 +2,12 @@ #if defined __arch64__ || defined __sparcv9 # define __WORDSIZE 64 +# define __WORDSIZE_TIME64_COMPAT32 1 #else # define __WORDSIZE 32 # define __WORDSIZE32_SIZE_ULONG 0 # define __WORDSIZE32_PTRDIFF_LONG 0 +# define __WORDSIZE_TIME64_COMPAT32 0 #endif #if !defined __NO_LONG_DOUBLE_MATH && !defined __LONG_DOUBLE_MATH_OPTIONAL