From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25329 invoked by alias); 27 Mar 2003 06:36:01 -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 25307 invoked by uid 71); 27 Mar 2003 06:36:01 -0000 Resent-Date: 27 Mar 2003 06:36:01 -0000 Resent-Message-ID: <20030327063601.25306.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, res@colnet.cmhnet.org Received: (qmail 24431 invoked by uid 48); 27 Mar 2003 06:28:37 -0000 Message-Id: <20030327062837.24430.qmail@sources.redhat.com> Date: Thu, 27 Mar 2003 07:52:00 -0000 From: res@colnet.cmhnet.org Reply-To: res@colnet.cmhnet.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/10238: Strange asm stmt produces compiler error X-SW-Source: 2003-03/txt/msg01875.txt.bz2 List-Id: >Number: 10238 >Category: c >Synopsis: Strange asm stmt produces compiler error >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Mar 27 06:36:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Rob Stampfli >Release: gcc 3.2.2 >Organization: >Environment: Solaris 8 / Ultra 2 Sparc. Compiler was configured and built precisely as described in: in http://sunfreeware.com/gcc.html >Description: The following silly erroneous piece of code produces a compiler error. It's inconsequential, but it shouldn't error out: int lock_io; void xxx() { volatile int _ret; asm volatile ("xchgw %0,%1" : "=q" (_ret), "=m" (*(&lock_io)) : "m" (*(&lock_io)), "0" (0)); } $ gcc x.c x.c: In function `xxx': x.c:4: Internal compiler error in instantiate_virtual_regs_1, at function.c:3971 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: