From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3000 invoked by alias); 7 Feb 2002 14:11:45 -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 2961 invoked by uid 61); 7 Feb 2002 14:11:44 -0000 Date: Thu, 07 Feb 2002 06:11:00 -0000 Message-ID: <20020207141144.2959.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hans.buchmann@fhso.ch, nobody@gcc.gnu.org From: rearnsha@gcc.gnu.org Reply-To: rearnsha@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, hans.buchmann@fhso.ch, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org X-Mailer: gnatsweb 2.9.3 Subject: Re: target/5621: ARM compiler aborts with asm "m" constraint X-SW-Source: 2002-02/txt/msg00176.txt.bz2 List-Id: Old Synopsis: assembler code New Synopsis: ARM compiler aborts with asm "m" constraint State-Changed-From-To: open->analyzed State-Changed-By: rearnsha State-Changed-When: Thu Feb 7 06:11:43 2002 State-Changed-Why: While the compiler shouldn't abort for this, you probably won't ever be able to make such an instruction work as you've expressed it. The best way of expressing what you want here, so that the compiler can handle it cleanly is asm volatile( "ldr %0,[%1]\n\t" :"=r"(i) :"r"(&x) ); The compiler should be fixed to give an error in this case. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5621