svn commit: r277877 - head/lib/libc/mips/gen

Ed Maste emaste at FreeBSD.org
Thu Jan 29 15:30:06 UTC 2015


Author: emaste
Date: Thu Jan 29 15:30:04 2015
New Revision: 277877
URL: https://svnweb.freebsd.org/changeset/base/277877

Log:
  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

Modified:
  head/lib/libc/mips/gen/sigsetjmp.S

Modified: head/lib/libc/mips/gen/sigsetjmp.S
==============================================================================
--- head/lib/libc/mips/gen/sigsetjmp.S	Thu Jan 29 14:23:31 2015	(r277876)
+++ head/lib/libc/mips/gen/sigsetjmp.S	Thu Jan 29 15:30:04 2015	(r277877)
@@ -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)


More information about the svn-src-head mailing list