Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932978Ab1EZW3p (ORCPT ); Thu, 26 May 2011 18:29:45 -0400 Received: from mga02.intel.com ([134.134.136.20]:45856 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758599Ab1EZW3f (ORCPT ); Thu, 26 May 2011 18:29:35 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.65,276,1304319600"; d="scan'208";a="5575812" Message-ID: <4DDED44E.9070402@linux.intel.com> Date: Thu, 26 May 2011 15:29:34 -0700 From: Andi Kleen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Russell King - ARM Linux CC: Nicolas Pitre , Will Deacon , =?ISO-8859-1?Q?M=E5ns_Rullg=E5rd?= , Catalin Marinas , lkml , Andrew Morton , sam@ravnborg.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: Do not allow unaligned accesses when CONFIG_ALIGNMENT_TRAP References: <1306229953.19557.14.camel@e102109-lin.cambridge.arm.com> <20110524171331.GA2941@arm.com> <20110525111405.GA12010@e102109-lin.cambridge.arm.com> <20110525124348.GA2340@arm.com> <1306429854.26735.9.camel@e102144-lin.cambridge.arm.com> <20110526215101.GL24876@n2100.arm.linux.org.uk> In-Reply-To: <20110526215101.GL24876@n2100.arm.linux.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 20 > Catalin said in his mail "I haven't tried with -mno-unaligned-access, I > suspect the variables on the stack would be aligned.". So I don't think > we know enough to say whether -mno-unaligned-access avoids the stack > packing. It won't, the arm gcc code just checks flag_conserve_stack. IMHO it's just a gcc bug. You should report it to http://gcc.gnu.org/bugzilla As a temporary workaround you can disable it in the kernel too, but as soon as the compiler it's fixed I would recommend considering to reenable it. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/