Module Name: src
Committed By: christos
Date: Sat Aug 27 08:30:04 UTC 2022
Modified Files:
src/external/gpl3/gcc/dist/libiberty: floatformat.c
Log Message:
pass lint on vax (avoid zerodivide)
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/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/gcc/dist/libiberty/floatformat.c
diff -u src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.9 src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.10
--- src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.9 Sat Apr 10 20:02:20 2021
+++ src/external/gpl3/gcc/dist/libiberty/floatformat.c Sat Aug 27 04:30:04 2022
@@ -53,9 +53,14 @@ Foundation, Inc., 51 Franklin Street - F
#ifdef DBL_QNAN
#define NAN DBL_QNAN
#else
+#ifdef __lint__
+static double zero = 0.0;
+#define NAN (0.0 / zero)
+#else
#define NAN (0.0 / 0.0)
#endif
#endif
+#endif
static int mant_bits_set (const struct floatformat *, const unsigned char *);
static unsigned long get_field (const unsigned char *,