From patchwork Wed Jan 17 01:52:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 861980 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-471446-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="F2Eb65fP"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zLqpx2Whqz9s7n for ; Wed, 17 Jan 2018 12:52:40 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=OpaEiYy/EiZymINsWRTQy66GvRGUawrbi/9XqMbW4JyVUc bOL+/cxPjgRUODHAi4ZWwvZewe9z4M+AWGuBHh/cm/v1qwJvxFVtmzUnbzRDgvM5 nJgq9yStIJHX23F4C6gfJOrpGHogRE3tePBGwnuGnl9lqv+Sy5PYRwbjFvoCI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=I6G3AqHxishWNbv1hQWcJiRpP+o=; b=F2Eb65fPxRO2gro9/cgL cw8uKMfaL1IA/aGJ/2XzeXwvi+C3Jlt1kcBDxKGU68wrBogdTMKW3Rx80vDzJlRP HrIZHOn9oOaFBBHti79CyoGvfHitoPSVRZqjr6++eZY/T0FCodkr+lTIhBFtZ658 HY0XwCtzLJd11bacZwUf5bM= Received: (qmail 20132 invoked by alias); 17 Jan 2018 01:52:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 20028 invoked by uid 89); 17 Jan 2018 01:52:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy= X-HELO: mtlfep02.bell.net Received: from belmont80srvr.owm.bell.net (HELO mtlfep02.bell.net) (184.150.200.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Jan 2018 01:52:30 +0000 Received: from bell.net mtlfep02 184.150.200.30 by mtlfep02.bell.net with ESMTP id <20180117015228.GYFW22355.mtlfep02.bell.net@mtlspm01.bell.net> for ; Tue, 16 Jan 2018 20:52:28 -0500 Received: from [192.168.2.49] (really [76.69.123.119]) by mtlspm01.bell.net with ESMTP id <20180117015228.UTFU28394.mtlspm01.bell.net@[192.168.2.49]>; Tue, 16 Jan 2018 20:52:28 -0500 Message-ID: <5A5EAC5B.1080305@bell.net> Date: Tue, 16 Jan 2018 20:52:27 -0500 From: John David Anglin User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [committed] hppa: Rework MALLOC_ABI_ALIGNMENT macro When I defined MALLOC_ABI_ALIGNMENT, I inadvertently changed the default alignment for various hppa*-*-*bsd* targets. Nick Hudson is still maintaining the netbsd target. This patch corrects the default malloc alignment for 32-bit targest and moves the linux special case to its own file. Committed to trunk. Dave Index: config/pa/pa.h =================================================================== --- config/pa/pa.h (revision 256561) +++ config/pa/pa.h (working copy) @@ -307,7 +307,7 @@ POSIX types such as pthread_mutex_t require 16-byte alignment. Again, this is non critical since 16-byte alignment is no longer needed for atomic operations. */ -#define MALLOC_ABI_ALIGNMENT (TARGET_SOM ? 64 : 128) +#define MALLOC_ABI_ALIGNMENT (TARGET_64BIT ? 128 : 64) /* Make arrays of chars word-aligned for the same reasons. */ #define DATA_ALIGNMENT(TYPE, ALIGN) \ Index: config/pa/pa32-linux.h =================================================================== --- config/pa/pa32-linux.h (revision 256561) +++ config/pa/pa32-linux.h (working copy) @@ -62,3 +62,8 @@ #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE BITS_PER_WORD + +/* POSIX types such as pthread_mutex_t require 16-byte alignment to retain + layout compatibility with the original linux thread implementation. */ +#undef MALLOC_ABI_ALIGNMENT +#define MALLOC_ABI_ALIGNMENT 128