Author: nwhitehorn
Date: Fri Feb 26 20:25:26 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

Modified:
  head/lib/msun/powerpc/fenv.h

Modified: head/lib/msun/powerpc/fenv.h
==============================================================================
--- head/lib/msun/powerpc/fenv.h        Fri Feb 26 20:19:44 2016        
(r296110)
+++ head/lib/msun/powerpc/fenv.h        Fri Feb 26 20:25:26 2016        
(r296111)
@@ -97,8 +97,13 @@ extern const fenv_t  __fe_dfl_env;
 union __fpscr {
        double __d;
        struct {
+#if _BYTE_ORDER == _LITTLE_ENDIAN
+               fenv_t __reg;
+               __uint32_t __junk;
+#else
                __uint32_t __junk;
                fenv_t __reg;
+#endif
        } __bits;
 };
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to