From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11373 invoked by alias); 30 Sep 2011 18:15:02 -0000 Received: (qmail 11298 invoked by uid 22791); 30 Sep 2011 18:15:00 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Sep 2011 18:14:45 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/50571] [4.6/4.7 Regression] Undesirable folding in "m" constrained asm operands Date: Fri, 30 Sep 2011 18:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.2 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg02417.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50571 --- Comment #3 from Jakub Jelinek 2011-09-30 18:14:38 UTC --- Author: jakub Date: Fri Sep 30 18:14:33 2011 New Revision: 179402 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179402 Log: PR inline-asm/50571 * gimple-fold.c (fold_stmt_1) : If input constraints allow mem and not reg, pass true instead of false as second argument to maybe_fold_reference. * gcc.dg/pr50571.c: New test. Added: branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/pr50571.c Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/gimple-fold.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog