From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21812 invoked by alias); 15 Jan 2013 23:35:35 -0000 Received: (qmail 21588 invoked by uid 22791); 15 Jan 2013 23:35:34 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Jan 2013 23:35:02 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 29108290030; Wed, 16 Jan 2013 00:35:11 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4908LikefW8D; Wed, 16 Jan 2013 00:35:11 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 07E48290006; Wed, 16 Jan 2013 00:35:10 +0100 (CET) From: Eric Botcazou To: Richard Biener Cc: gcc-patches@gcc.gnu.org, Michael Matz Subject: Re: [PATCH] Fix PR55882 Date: Tue, 15 Jan 2013 23:35:00 -0000 Message-ID: <9991942.FPBRhTmVq4@polaris> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.16-desktop; KDE/4.7.2; x86_64; ; ) In-Reply-To: References: <1366843.hbPgaJ0q9u@polaris> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00820.txt.bz2 > Not necessarily. The following is a 4.7 variant of the patch > (on trunk get_object_alignment_1 got one extra output which > moved the align return value to by-reference). OK, I obviously didn't try very hard here... > Can you give it testing on the branch and a strict-align target? > > Thanks, > Richard. > > 2013-01-15 Richard Biener > > PR middle-end/55882 > * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly > account for bitpos when computing alignment. > > * gcc.dg/torture/pr55882.c: New testcase. Bootstrapped/regtested on 4.7 branch for SPARC/Solaris, all clear. -- Eric Botcazou