From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18109 invoked by alias); 14 Dec 2013 03:59:15 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18099 invoked by uid 89); 14 Dec 2013 03:59:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f47.google.com Received: from mail-pa0-f47.google.com (HELO mail-pa0-f47.google.com) (209.85.220.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 14 Dec 2013 03:59:13 +0000 Received: by mail-pa0-f47.google.com with SMTP id kq14so817910pab.20 for ; Fri, 13 Dec 2013 19:59:11 -0800 (PST) X-Received: by 10.68.218.165 with SMTP id ph5mr7338296pbc.11.1386993551848; Fri, 13 Dec 2013 19:59:11 -0800 (PST) Received: from Wu-Chung-Jude-MacBook-Air.local (180-176-201-156.dynamic.kbronet.com.tw. [180.176.201.156]) by mx.google.com with ESMTPSA id yg3sm11835218pab.16.2013.12.13.19.59.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Dec 2013 19:59:10 -0800 (PST) Message-ID: <52ABD78B.1050109@gmail.com> Date: Sat, 14 Dec 2013 03:59:00 -0000 From: Chung-Ju Wu User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Michael Weise CC: gcc-help@gcc.gnu.org Subject: Re: Inline asm - only clobber list case sensitive? References: <20131115102648.9a74a4de2a73c4d229c260ad@ek-team.de> In-Reply-To: <20131115102648.9a74a4de2a73c4d229c260ad@ek-team.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00104.txt.bz2 On 11/15/13, 5:26 PM, Michael Weise wrote: > Hi, > > yesterday I've been facing a strange problem with some inline asm > code (see below), emitting errors like these: > (gcc 4.7.3, targetting m68k-elf, Windows 7/64, msys): > [snip] > > asm volatile ( > " move.l %[in1],%%a0 \n" // asm code > " move.l %[in2],%%A1 \n" > " trap #8 \n" > " move.b %%D0,%[out1]\n" > " move.b %%d1,%[out2]\n" > :[out1] "=m" (*pc1), // output > [out2] "=m" (*pc2) > :[in1] "r" (cmdadr), // input > [in2] "r" (DUMRadr) > :"%a0","%A1","%d0","%D1", // clobber list > "memory","%CC" > ); > > Results in: > rs232_2.c:2433:2: error: unknown register name '%CC' in 'asm' > rs232_2.c:2433:2: error: unknown register name '%D1' in 'asm' > rs232_2.c:2433:2: error: unknown register name '%A1' in 'asm' > Hi, Michael, If you build m68k-elf on your own, you can implement ADDITIONAL_REGISTER_NAMES in gcc/config/m68k/m68k.h to define alias register names with upper case. This can help gcc recognize them. :) Best regards, jasonwucj