Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Use HUGE_VAL on VAX as INFINITY requires a warning according...
details: https://anonhg.NetBSD.org/src/rev/a6632285ffa1
branches: trunk
changeset: 752538:a6632285ffa1
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Mar 01 00:15:47 2010 +0000
description:
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.
diffstat:
external/gpl3/binutils/dist/libiberty/floatformat.c | 4 ++++
gnu/dist/gcc4/libiberty/floatformat.c | 4 ++++
gnu/dist/gdb6/libiberty/floatformat.c | 4 ++++
3 files changed, 12 insertions(+), 0 deletions(-)
diffs (45 lines):
diff -r a1038cd4c0f7 -r a6632285ffa1 external/gpl3/binutils/dist/libiberty/floatformat.c
--- a/external/gpl3/binutils/dist/libiberty/floatformat.c Mon Mar 01 00:13:47 2010 +0000
+++ b/external/gpl3/binutils/dist/libiberty/floatformat.c Mon Mar 01 00:15:47 2010 +0000
@@ -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;
diff -r a1038cd4c0f7 -r a6632285ffa1 gnu/dist/gcc4/libiberty/floatformat.c
--- a/gnu/dist/gcc4/libiberty/floatformat.c Mon Mar 01 00:13:47 2010 +0000
+++ b/gnu/dist/gcc4/libiberty/floatformat.c Mon Mar 01 00:15:47 2010 +0000
@@ -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;
diff -r a1038cd4c0f7 -r a6632285ffa1 gnu/dist/gdb6/libiberty/floatformat.c
--- a/gnu/dist/gdb6/libiberty/floatformat.c Mon Mar 01 00:13:47 2010 +0000
+++ b/gnu/dist/gdb6/libiberty/floatformat.c Mon Mar 01 00:15:47 2010 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index