From patchwork Mon Mar 12 22:35:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 7243 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 609A023E12 for ; Mon, 12 Mar 2012 22:36:01 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 14A77A184A1 for ; Mon, 12 Mar 2012 22:36:00 +0000 (UTC) Received: by iage36 with SMTP id e36so9700886iag.11 for ; Mon, 12 Mar 2012 15:36:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :mime-version:date:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=JvHbgMy3DvG0ZfwTxYLFicqPNDHLWVbvUy9ON32VMyo=; b=KhdTG0ZyXPfl5doslzvIejdoVJa8LnujdEtRLMHQssnlvBgUU9MzDsBFTvL8Db2jse gVV4Btrslyr7noO8iVHyDTf2OsdA7ijgPrMlyArYorn5mBU5iZDn3sv4a7LnQ7WKQEAt fnb0BOAqNtjXQ0JohWCHtuXuuTE7EJnhwL0K8Q4ei/sOmd0EX9lwF8LbBbkNRLla5qwq /5x0txP8NhvuKoXrkvNwcqIc+A4GkHgnquggWDk2nzbSp+VFbPwj6rs+c7kYDigVXalE 2Qsug/LpfjGs5oS0Jcy4ZXjK+kwm4BsD50c4Idal5CmYT4XXI7ChEf8fjBlpYrRXyJSE GPoA== Received: by 10.42.147.199 with SMTP id o7mr17766806icv.50.1331591760457; Mon, 12 Mar 2012 15:36:00 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp52755ibg; Mon, 12 Mar 2012 15:35:59 -0700 (PDT) Received: by 10.101.152.1 with SMTP id e1mr4514625ano.83.1331591759066; Mon, 12 Mar 2012 15:35:59 -0700 (PDT) Received: from mail-gy0-f178.google.com (mail-gy0-f178.google.com [209.85.160.178]) by mx.google.com with ESMTPS id l10si4289794anm.165.2012.03.12.15.35.58 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Mar 2012 15:35:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of ramana.radhakrishnan@linaro.org) client-ip=209.85.160.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of ramana.radhakrishnan@linaro.org) smtp.mail=ramana.radhakrishnan@linaro.org Received: by ghbf1 with SMTP id f1so3795671ghb.37 for ; Mon, 12 Mar 2012 15:35:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.106.131 with SMTP id x3mr10177693qao.23.1331591758684; Mon, 12 Mar 2012 15:35:58 -0700 (PDT) Received: by 10.224.95.196 with HTTP; Mon, 12 Mar 2012 15:35:58 -0700 (PDT) Date: Mon, 12 Mar 2012 22:35:58 +0000 Message-ID: Subject: [Patch ARM] Fix definition of MALLOC_ABI_ALIGNMENT. From: Ramana Radhakrishnan To: gcc-patches Cc: Patch Tracking X-Gm-Message-State: ALoCoQlk08mti+ROArHiblYm6OLjObu6WXpoUBPDUpXHrtMduewGTNpwgkWB+5uvfL3tDNvn0e8i Hi, This sets MALLOC_ABI_ALIGNMENT to 64 bits on ARM which should be safe on all AAPCS implementations given that this is a requirement on our alignment specifiers. I would expect this to be true for most modern malloc implementations on AAPCS targets - Ok ? Ramana 2012-03-12 Ramana Radhakrishnan * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Set to biggest alignment. Index: gcc/config/arm/arm.h =================================================================== --- gcc/config/arm/arm.h (revision 185248) +++ gcc/config/arm/arm.h (working copy) @@ -534,6 +534,11 @@ #define BIGGEST_ALIGNMENT (ARM_DOUBLEWORD_ALIGN ? DOUBLEWORD_ALIGNMENT : 32) +#ifndef MALLOC_ABI_ALIGNMENT +#define MALLOC_ABI_ALIGNMENT (ARM_DOUBLEWORD_ALIGN ? DOUBLEWORD_ALIGNMENT : \ + BITS_PER_WORD) +#endif +