From owner-svn-src-head@FreeBSD.ORG Mon Jun 9 21:35:37 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8A501524; Mon, 9 Jun 2014 21:35:37 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 777192521; Mon, 9 Jun 2014 21:35:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s59LZb5e048159; Mon, 9 Jun 2014 21:35:37 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s59LZbK1048157; Mon, 9 Jun 2014 21:35:37 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201406092135.s59LZbK1048157@svn.freebsd.org> From: Jilles Tjoelker Date: Mon, 9 Jun 2014 21:35:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267307 - in head/lib/libc: amd64/gen i386/gen X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 21:35:37 -0000 Author: jilles Date: Mon Jun 9 21:35:36 2014 New Revision: 267307 URL: http://svnweb.freebsd.org/changeset/base/267307 Log: siglongjmp(): Preserve floating point exception flags on i386 and amd64. Per POSIX, siglongjmp() shall be equivalent to longjmp() except that it must match sigsetjmp() instead of setjmp() and except for the effect on the signal mask. Therefore, it should preserve the floating point exception flags. This was fixed for longjmp() and _longjmp() in r180080 and r180081 for amd64 and i386 respectively. Modified: head/lib/libc/amd64/gen/sigsetjmp.S head/lib/libc/i386/gen/sigsetjmp.S Modified: head/lib/libc/amd64/gen/sigsetjmp.S ============================================================================== --- head/lib/libc/amd64/gen/sigsetjmp.S Mon Jun 9 21:06:46 2014 (r267306) +++ head/lib/libc/amd64/gen/sigsetjmp.S Mon Jun 9 21:35:36 2014 (r267307) @@ -105,7 +105,6 @@ ENTRY(__siglongjmp) movq 40(%rdx),%r13 movq 48(%rdx),%r14 movq 56(%rdx),%r15 - fninit fldcw 64(%rdx) testq %rax,%rax jnz 1f Modified: head/lib/libc/i386/gen/sigsetjmp.S ============================================================================== --- head/lib/libc/i386/gen/sigsetjmp.S Mon Jun 9 21:06:46 2014 (r267306) +++ head/lib/libc/i386/gen/sigsetjmp.S Mon Jun 9 21:35:36 2014 (r267307) @@ -115,7 +115,6 @@ ENTRY(__siglongjmp) movl 12(%edx),%ebp movl 16(%edx),%esi movl 20(%edx),%edi - fninit fldcw 24(%edx) testl %eax,%eax jnz 1f