Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2015 15:30:05 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277877 - head/lib/libc/mips/gen
Message-ID:  <201501291530.t0TFU5Qb077741@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501291530.t0TFU5Qb077741>