From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31951 invoked by alias); 19 May 2003 11:16:01 -0000 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 Received: (qmail 31918 invoked by uid 71); 19 May 2003 11:16:00 -0000 Resent-Date: 19 May 2003 11:16:00 -0000 Resent-Message-ID: <20030519111600.31917.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, berndtrog@yahoo.com Received: (qmail 11531 invoked by uid 48); 19 May 2003 11:06:41 -0000 Message-Id: <20030519110641.11530.qmail@sources.redhat.com> Date: Mon, 19 May 2003 12:25:00 -0000 From: berndtrog@yahoo.com Reply-To: berndtrog@yahoo.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: inline-asm/10857: Inlining a function with inline-asm: "error: impossible constraint in `asm'" X-SW-Source: 2003-05/txt/msg01612.txt.bz2 List-Id: >Number: 10857 >Category: inline-asm >Synopsis: Inlining a function with inline-asm: "error: impossible constraint in `asm'" >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 19 11:16:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Bernd Trog >Release: gcc-3.3.0 >Organization: >Environment: avr-gcc -v Reading specs from /src/build/gcc-330/lib/gcc-lib/avr/3.3/specs Configured with: /src/gcc-330/configure -v --target=avr --prefix=/src/build/gcc-330 --with-gnu-ld --with-gnu-as --disable-nls --enable-languages=c,ada Thread model: single gcc version 3.3 >Description: $ avr-gcc test.c test.c: In function `write_byte': test.c:8: warning: asm operand 0 probably doesn't match constraints test.c:8: error: impossible constraint in `asm' Note: The information for operand 0 is available at compile-time(#define PORTD 0x12)! >How-To-Repeat: #define PORTD 0x12 static inline void write_byte( unsigned char adr, unsigned char data ) { asm("out %0, %1" : : "I" (adr), "r" (data) ); } int main(void) { write_byte( PORTD, 4); return 0; } >Fix: unknown >Release-Note: >Audit-Trail: >Unformatted: