From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5638 invoked by alias); 4 Oct 2006 22:20:47 -0000 Received: (qmail 5591 invoked by uid 48); 4 Oct 2006 22:20:38 -0000 Date: Wed, 04 Oct 2006 22:20:00 -0000 Message-ID: <20061004222038.5590.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug inline-asm/23200] [4.0/4.1/4.2 regression] rejects "i"(&var + 1) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00341.txt.bz2 List-Id: ------- Comment #23 from jakub at gcc dot gnu dot org 2006-10-04 22:20 ------- "i"(&var) of course can't work with -fpic, it would only work at the expense of text relocations, but those are not allowed on some architectures and highly undesirable on the rest of architectures. In position independent code, &var typically means you need to load that address from global offset table into a register, and a register of course can't satisfy "i" constraint. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23200