From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21679 invoked by alias); 18 Nov 2014 13:58:28 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 21666 invoked by uid 89); 18 Nov 2014 13:58:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f172.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=9UzB+pfDAY562ruNYXkzxsptI6l/vaoLg5g+ChsiU9U=; b=Q/AAvkrEBpyx1mZpxffkzLt6nOCZEC4Jb7tdaONVpUhDBtFzMFdkMjxV6GOUSyjgjg ANQ62p6+o3QSZgDUuZe4whJRI3kEWcOtiv/ybhr+Kpggl9bja2sxNb+CUVIFGLiDGZRK 4GjtXpycPXnjp8AZ9243FGLswjz+4uvAQv9cdsI227WnCCpJuriSnuqj4FlgUqX29a0d tVLphgV8+2IDtJAIU7A8iLeeFmhz79mM0Oc58KhV/hNQahHJ/52ussodZ6yOwcr+k288 MHtW2XkSsvLhYPXIM9AofqsH/Z8Fw2NGirM+bok8bF+X7QyWNirnBDaSV38gZ6q3FuPI ogPQ== X-Gm-Message-State: ALoCoQnRUnrY4UyGZ627vH/6tHrYKKSc5U1D4Q2V0gKcacpyifdhAcE3VV8RDK+Sn1BePNhlTFGa MIME-Version: 1.0 X-Received: by 10.107.18.2 with SMTP id a2mr11553538ioj.41.1416319104797; Tue, 18 Nov 2014 05:58:24 -0800 (PST) In-Reply-To: <1414396793-9005-21-git-send-email-apinski@cavium.com> References: <1414396793-9005-1-git-send-email-apinski@cavium.com> <1414396793-9005-21-git-send-email-apinski@cavium.com> Date: Tue, 18 Nov 2014 13:58:00 -0000 Message-ID: Subject: Re: [PATCH 20/29] [AARCH64] Set up wordsize for ILP32. From: Will Newton To: Andrew Pinski Cc: libc-alpha Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-11/txt/msg00436.txt.bz2 On 27 October 2014 07:59, Andrew Pinski wrote: > __WORDSIZE needs to be set to 32 for ILP32. > > * sysdeps/aarch64/bits/wordsize.h (__WORDSIZE): Set to 32 for ILP32. > Update comments. > --- > sysdeps/aarch64/bits/wordsize.h | 10 +++++++--- > 1 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h > index 3ecccaa..3d5a79d 100644 > --- a/sysdeps/aarch64/bits/wordsize.h > +++ b/sysdeps/aarch64/bits/wordsize.h > @@ -15,12 +15,16 @@ > License along with the GNU C Library; if not, see > . */ > > -#define __WORDSIZE 64 > +#ifdef __LP64__ > +# define __WORDSIZE 64 > +#else > +# define __WORDSIZE 32 > +#endif > > -/* LP64 ABI has a 64bit time_t. > +/* LP64 and ILP32s ABI uses a 64bit time_t. LP64 and ILP32 ABIs have a 64bit time_t. Otherwise OK. > This allows aarch32 and AARCH64 applications > both access utmp. */ > #define __WORDSIZE_TIME64_COMPAT32 1 > > -/* LP64 use the 64bit system call interface. */ > +/* LP64 and ILP32 use the 64bit system call interface. */ > #define __SYSCALL_WORDSIZE 64 > -- > 1.7.2.5 > -- Will Newton Toolchain Working Group, Linaro