From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12260 invoked by alias); 25 Jun 2002 23:46:18 -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 12239 invoked by uid 71); 25 Jun 2002 23:46:16 -0000 Resent-Date: 25 Jun 2002 23:46:16 -0000 Resent-Message-ID: <20020625234616.12238.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Falk Hueffner Received: (qmail 11429 invoked from network); 25 Jun 2002 23:42:41 -0000 Received: from unknown (HELO mailout02.sul.t-online.com) (194.25.134.17) by sources.redhat.com with SMTP; 25 Jun 2002 23:42:41 -0000 Received: from fwd08.sul.t-online.de by mailout02.sul.t-online.com with smtp id 17MzxI-00081s-00; Wed, 26 Jun 2002 01:42:40 +0200 Received: from localhost (520046482682-0001@[217.81.149.147]) by fmrl08.sul.t-online.com with esmtp id 17MzxI-0dG8vYC; Wed, 26 Jun 2002 01:42:40 +0200 Received: from falk by localhost with local (Exim 3.35 #1 (Debian)) id 17MzxF-0000yT-00 for ; Wed, 26 Jun 2002 01:42:37 +0200 Message-Id: Date: Tue, 25 Jun 2002 17:42:00 -0000 From: Falk Hueffner To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c/7128: Undeclared variables as asm argument cause ICE X-SW-Source: 2002-06/txt/msg00617.txt.bz2 List-Id: >Number: 7128 >Category: c >Synopsis: Undeclared variables as asm argument cause ICE >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Tue Jun 25 16:46:09 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Falk Hueffner >Release: 3.2 20020607 (experimental) >Organization: >Environment: System: Linux borkum 2.4.18 #6 Wed Apr 24 22:18:43 CEST 2002 alpha unknown Architecture: alpha host: alphapca56-unknown-linux-gnu build: alphapca56-unknown-linux-gnu target: alphapca56-unknown-linux-gnu configured with: ../configure --enable-languages=c >Description: Undeclared variables as asm argument cause ICE. >How-To-Repeat: % cat bug.c void foo() { asm ("foo %0" : "=r" (r)); } % gcc -c bug.c bug.c: In function `foo': bug.c:2: Error: `r' undeclared (first use in this function) bug.c:2: Error: (Each undeclared identifier is reported only once bug.c:2: Error: for each function it appears in.) bug.c:2: Internal compiler error: tree check: expected class 't', have 'x' (error_mark) in c_expand_asm_operands, at c-typeck.c:6977 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >Fix: >Release-Note: >Audit-Trail: >Unformatted: