binutils/binutils: do not fwd declare struct stat (2.22).
For canadian cross to host i686-mingw32 fwd declaring
struct stat is not possible.
Instead #include <sys/stat.h>
Signed-off-by: Titus von Boxberg <titus@v9g.de>
Message-Id: <417a15d4277913841ddd.1353100974@tschetwerikow.boxberg.lan>
Patchwork-Id: 199733
3 this change was made to generic __nexttowardf, but not the long double version
5 2008-05-05 Aurelien Jarno <aurelien@aurel32.net>
7 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include float.h.
8 (__nexttowardf): Use math_opt_barrier and
9 math_force_eval macros. If FLT_EVAL_METHOD is not 0, force
12 sysdeps/ieee754/ldbl-128/s_nexttowardf.c | 26 ++++++++++++++++----------
13 1 file changed, 16 insertions(+), 10 deletions(-)
15 diff -durN glibc-2.10.1.orig/sysdeps/ieee754/ldbl-128/s_nexttowardf.c glibc-2.10.1/sysdeps/ieee754/ldbl-128/s_nexttowardf.c
16 --- glibc-2.10.1.orig/sysdeps/ieee754/ldbl-128/s_nexttowardf.c 1999-07-14 02:09:42.000000000 +0200
17 +++ glibc-2.10.1/sysdeps/ieee754/ldbl-128/s_nexttowardf.c 2009-11-13 00:50:06.000000000 +0100
22 -#include "math_private.h"
23 +#include <math_private.h>
27 float __nexttowardf(float x, long double y)
30 if((long double) x==y) return y; /* x=y, return y */
31 if(ix==0) { /* x == 0 */
34 SET_FLOAT_WORD(x,(u_int32_t)((hy>>32)&0x80000000)|1);/* return +-minsub*/
36 - if(x2==x) return x2; else return x; /* raise underflow flag */
37 + u = math_opt_barrier (x);
39 + math_force_eval (u); /* raise underflow flag */
42 if(hx>=0) { /* x > 0 */
43 if(hy<0||(ix>>23)>(iy>>48)-0x3f80
48 - if(hy>=0x7f800000) return x+x; /* overflow */
49 + if(hy>=0x7f800000) {
50 + x = x+x; /* overflow */
51 + if (FLT_EVAL_METHOD != 0)
52 + /* Force conversion to float. */
56 if(hy<0x00800000) { /* underflow */
58 - if(x2!=x) { /* raise underflow flag */
59 - SET_FLOAT_WORD(x2,hx);
63 + math_force_eval (u); /* raise underflow flag */