From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20786 invoked by alias); 19 May 2003 12:23:17 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20735 invoked by uid 48); 19 May 2003 12:23:16 -0000 Date: Mon, 19 May 2003 12:23:00 -0000 Message-ID: <20030519122316.20734.qmail@sources.redhat.com> To: berndtrog@yahoo.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, berndtrog@yahoo.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: inline-asm/10857: Inlining a function with inline-asm: "error: impossible constraint in `asm'" X-SW-Source: 2003-05/txt/msg02070.txt.bz2 List-Id: Synopsis: Inlining a function with inline-asm: "error: impossible constraint in `asm'" State-Changed-From-To: open->closed State-Changed-By: cae State-Changed-When: Mon May 19 12:23:16 2003 State-Changed-Why: Not a bug. An immediate value must be a compile time constant. A procedure parameter is definitly NOT a compile time constant. gcc can deduce its value for an inline function if certain optimizations are done. You can request these optimizations with the various -O flags and in this case the code compiles. Note that there is no guarantee that this will remain true in the future. Also note that the `I' constraint has this description on the avr architecture: | `I' | Constant greater than -1, less than 64 regards Christian http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10857