From patchwork Wed May 27 11:00:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 6943 Received: (qmail 110747 invoked by alias); 27 May 2015 11:00:39 -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 110734 invoked by uid 89); 27 May 2015 11:00:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Fix alignment of sem_t for AArch64 ILP32 X-Yow: Ha ha Ha ha Ha ha Ha Ha Ha Ha -- When will I EVER stop HAVING FUN?!! Date: Wed, 27 May 2015 13:00:28 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 sem_t must have the same alignment as struct new_sem. Andreas. * sysdeps/aarch64/nptl/bits/semaphore.h (sem_t) [!__LP64__]: Use long long for __align. --- sysdeps/aarch64/nptl/bits/semaphore.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/aarch64/nptl/bits/semaphore.h b/sysdeps/aarch64/nptl/bits/semaphore.h index 047dd4e..d9f4ab6 100644 --- a/sysdeps/aarch64/nptl/bits/semaphore.h +++ b/sysdeps/aarch64/nptl/bits/semaphore.h @@ -31,5 +31,9 @@ typedef union { char __size[__SIZEOF_SEM_T]; +#ifdef __LP64__ long int __align; +#else + long long int __align; +#endif } sem_t;