From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13674 invoked by alias); 11 Jun 2013 18:27: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 13638 invoked by uid 89); 11 Jun 2013 18:27:15 -0000 X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-la0-f48.google.com (HELO mail-la0-f48.google.com) (209.85.215.48) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 11 Jun 2013 18:27:11 +0000 Received: by mail-la0-f48.google.com with SMTP id lx15so6045811lab.7 for ; Tue, 11 Jun 2013 11:27:08 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.6.36 with SMTP id x4mr7902153lax.40.1370975228549; Tue, 11 Jun 2013 11:27:08 -0700 (PDT) Received: by 10.114.79.233 with HTTP; Tue, 11 Jun 2013 11:27:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 18:27:00 -0000 Message-ID: Subject: Re: Thumb inline assembly From: Kalai Rajah N To: Ian Lance Taylor Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-06/txt/msg00071.txt.bz2 Thanks. Changing that line works. I had this code working in the function directly as I was passing immediates. When this is called through a function, it takes registers and I had to update it accordingly. On Mon, Jun 10, 2013 at 6:01 PM, Ian Lance Taylor wrote: > On Mon, Jun 10, 2013 at 5:41 PM, Kalai Rajah N wrote: > >> "ldr r1, =%0 /* load the nvic_iser* register */ \n\t" > > The references are coming from your lines like the above. I don't > know what this syntax means. You are asking GCC to put a register > name in there, so the result is something like > ldr r1, =r1 > This winds up referring to a symbol named r1, rather than the register r1. > > Ian