From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26604 invoked by alias); 3 Feb 2011 13:23:46 -0000 Received: (qmail 26594 invoked by uid 22791); 3 Feb 2011 13:23:45 -0000 X-SWARE-Spam-Status: No, hits=-2.6 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; Thu, 03 Feb 2011 13:23:41 +0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/23200] [4.3/4.4/4.5/4.6 Regression] rejects "i"(&var + 1) 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: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.3.6 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 Date: Thu, 03 Feb 2011 13:23:00 -0000 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-02/txt/msg00499.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23200 --- Comment #46 from Jakub Jelinek 2011-02-03 13:23:02 UTC --- Created attachment 23236 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23236 gcc46-pr23200-2.patch Or we could perhaps for EXPAND_INITIALIZER just try harder to look at SSA_NAME definitions, as done in this patch. EXPAND_INITIALIZER expansion is used just in a couple of places, usually the expression is already known to be constant, and in stmt.c it is for asm inputs with constraints that allow neither a register nor memory.