chiark / gitweb /
base/asm-common.h: Use `GOTREG' rather than the raw register name.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 24 Jun 2016 00:17:19 +0000 (01:17 +0100)
Note that this doesn't mean that one can redefine `GOTREG' and have the
macros use a different register by default; the relative expansion
orders of the two macro systems don't work like that.

base/asm-common.h

index 0af9cb58fbf58d07659a157610837f3338a0d1e2..4d0d9a60d280aa1e07d235e8358acdc70c96fef9 100644 (file)
@@ -173,7 +173,7 @@ _where_am_i.\got :
 #define GOTREG r9
 
 // Maybe load GOT address into GOT.
-       .macro  ldgot   got=r9
+       .macro  ldgot   got=GOTREG
 #if WANT_PIC
        ldr     \got, =_GLOBAL_OFFSET_TABLE_ - . - 12
        add     \got, pc, \got