Module Name:    src
Committed By:   joerg
Date:           Mon Mar  1 00:15:48 UTC 2010

Modified Files:
        src/external/gpl3/binutils/dist/libiberty: floatformat.c
        src/gnu/dist/gcc4/libiberty: floatformat.c
        src/gnu/dist/gdb6/libiberty: floatformat.c

Log Message:
Use HUGE_VAL on VAX as INFINITY requires a warning according to ISO C99
on VAX. Use the less intrusive approach of a conditional here.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl3/binutils/dist/libiberty/floatformat.c
cvs rdiff -u -r1.1.1.1 -r1.2 src/gnu/dist/gcc4/libiberty/floatformat.c
cvs rdiff -u -r1.1.1.2 -r1.2 src/gnu/dist/gdb6/libiberty/floatformat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/libiberty/floatformat.c
diff -u src/external/gpl3/binutils/dist/libiberty/floatformat.c:1.1.1.1 src/external/gpl3/binutils/dist/libiberty/floatformat.c:1.2
--- src/external/gpl3/binutils/dist/libiberty/floatformat.c:1.1.1.1	Tue Aug 18 09:50:06 2009
+++ src/external/gpl3/binutils/dist/libiberty/floatformat.c	Mon Mar  1 00:15:47 2010
@@ -473,7 +473,11 @@
       if (nan)
 	dto = NAN;
       else
+#ifdef __vax__
+	dto = HUGE_VAL;
+#else
 	dto = INFINITY;
+#endif
 
       if (get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1))
 	dto = -dto;

Index: src/gnu/dist/gcc4/libiberty/floatformat.c
diff -u src/gnu/dist/gcc4/libiberty/floatformat.c:1.1.1.1 src/gnu/dist/gcc4/libiberty/floatformat.c:1.2
--- src/gnu/dist/gcc4/libiberty/floatformat.c:1.1.1.1	Thu Apr 20 09:59:34 2006
+++ src/gnu/dist/gcc4/libiberty/floatformat.c	Mon Mar  1 00:15:48 2010
@@ -351,7 +351,11 @@
       if (nan)
 	dto = NAN;
       else
+#ifdef __vax__
+	dto = HUGE_VAL;
+#else
 	dto = INFINITY;
+#endif
 
       if (get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1))
 	dto = -dto;

Index: src/gnu/dist/gdb6/libiberty/floatformat.c
diff -u src/gnu/dist/gdb6/libiberty/floatformat.c:1.1.1.2 src/gnu/dist/gdb6/libiberty/floatformat.c:1.2
--- src/gnu/dist/gdb6/libiberty/floatformat.c:1.1.1.2	Sun Jul  2 20:21:43 2006
+++ src/gnu/dist/gdb6/libiberty/floatformat.c	Mon Mar  1 00:15:48 2010
@@ -351,7 +351,11 @@
       if (nan)
 	dto = NAN;
       else
+#ifdef __vax__
+	dto = HUGE_VAL;
+#else
 	dto = INFINITY;
+#endif
 
       if (get_field (ufrom, fmt->byteorder, fmt->totalsize, fmt->sign_start, 1))
 	dto = -dto;

Reply via email to