summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-01-29 15:30:04 +0000
committeremaste <emaste@FreeBSD.org>2015-01-29 15:30:04 +0000
commitfea134ce22d1b083ca73d3a5ad123e3e507a7556 (patch)
tree31755931a1354c826ba966cd694fa92d9ab47826
parentfdcbb5500ac5346de0a4a652f68b90c1d34b4a34 (diff)
downloadFreeBSD-src-fea134ce22d1b083ca73d3a5ad123e3e507a7556.zip
FreeBSD-src-fea134ce22d1b083ca73d3a5ad123e3e507a7556.tar.gz
Use zero register instead of immediate 0x0 in MIPS assembly
It seems GAS makes the substitution automatically, but Clang's integrated assembler does not (yet). It fails with "invalid operand for instruction." Reported by: sbruno
-rw-r--r--lib/libc/mips/gen/sigsetjmp.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/mips/gen/sigsetjmp.S b/lib/libc/mips/gen/sigsetjmp.S
index 7705c29..41c47f2 100644
--- a/lib/libc/mips/gen/sigsetjmp.S
+++ b/lib/libc/mips/gen/sigsetjmp.S
@@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$");
LEAF(sigsetjmp)
PIC_PROLOGUE(sigsetjmp)
- bne a1, 0x0, 1f # do saving of signal mask?
+ bne a1, zero, 1f # do saving of signal mask?
PIC_TAILCALL(_setjmp)
1: PIC_TAILCALL(setjmp)
OpenPOWER on IntegriCloud