From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 825 invoked by alias); 3 Dec 2012 17:43:53 -0000 Received: (qmail 714 invoked by uid 48); 3 Dec 2012 17:43:35 -0000 From: "jsm28 at gcc dot gnu.org" To: glibc-bugs@sources.redhat.com Subject: [Bug ports/14908] New: ARM setjmp/longjmp wrongly save/restore floating-point flags Date: Mon, 03 Dec 2012 17:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: ports X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00023.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14908 Bug #: 14908 Summary: ARM setjmp/longjmp wrongly save/restore floating-point flags Product: glibc Version: 2.16 Status: NEW Severity: normal Priority: P2 Component: ports AssignedTo: unassigned@sourceware.org ReportedBy: jsm28@gcc.gnu.org CC: carlos@systemhalted.org, roland@gnu.org Classification: Unclassified The ARM implementation of setjmp and longjmp wrongly saves and restores fpscr - but saving and restoring floating-point exceptions and rounding modes is contrary to the requirements of C99 and C11. fpscr should not be saved and restored, and there should be an architecture-independent testcase to verify that exceptions and rounding modes are the same on the second return from setjmp as they were when longjmp was called, not the same as on the original call to setjmp. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.