Bug 207526 - __fpscr union order incorrect for powerpc64le
Summary: __fpscr union order incorrect for powerpc64le
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-standards (Nobody)
URL:
Keywords:
: 207529 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-26 17:13 UTC by Simon Byrne
Modified: 2016-02-26 20:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Byrne 2016-02-26 17:13:19 UTC
The __fpscr union in lib/msun/powerpc/fenv.h has the wrong order when using little-endian mode on powerpc. As a result, most of the fenv.h functions are broken. See
https://github.com/JuliaLang/openlibm/pull/121
Comment 1 David Edelsohn 2016-02-26 19:56:54 UTC
*** Bug 207529 has been marked as a duplicate of this bug. ***
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-02-26 20:25:53 UTC
A commit references this bug:

Author: nwhitehorn
Date: Fri Feb 26 20:25:27 UTC 2016
New revision: 296111
URL: https://svnweb.freebsd.org/changeset/base/296111

Log:
  Make FPSCR definition endian clean.

  PR:		207526
  Submitted by:	Simon Byrne
  Obtained from:	Julia
  MFC after:	1 month

Changes:
  head/lib/msun/powerpc/fenv.h
Comment 3 Nathan Whitehorn freebsd_committer freebsd_triage 2016-02-26 20:27:02 UTC
Thanks for passing this back upstream! I've committed it as r296111. Please continue sending any changes if you run into further issues.