public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
To: gcc-gnats@gcc.gnu.org
Subject: c/7128: Undeclared variables as asm argument cause ICE
Date: Tue, 25 Jun 2002 17:42:00 -0000	[thread overview]
Message-ID: <E17MzxF-0000yT-00@localhost> (raw)


>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 <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-06-25 23:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-25 17:42 Falk Hueffner [this message]
2002-12-04  6:26 Christian Ehrhardt
2002-12-04  7:23 bangerth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E17MzxF-0000yT-00@localhost \
    --to=falk.hueffner@student.uni-tuebingen.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).