aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-common.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a54214c..c9c74bc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2002-09-16 Richard Henderson <rth@redhat.com>
+ * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
+
+2002-09-16 Richard Henderson <rth@redhat.com>
+
* real.c, real.h: Rewrite from scratch.
* Makefile.in (simplify-rtx.o): Depend on TREE_H.
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 34941e0..bdb8a58 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -5048,6 +5048,13 @@ builtin_define_float_constants (name_prefix, fp_suffix, type)
sprintf (name, "__%s_EPSILON__", name_prefix);
sprintf (buf, "0x1p%d", (1 - mant_dig) * log2_b);
builtin_define_with_hex_fp_value (name, type, decimal_dig, buf, fp_suffix);
+
+ /* For C++ std::numeric_limits<T>::denorm_min. The minimum denormalized
+ positive floating-point number, b**(min_exp-p). Winds up being zero
+ for targets that don't support denormals. */
+ sprintf (name, "__%s_DENORM_MIN__", name_prefix);
+ sprintf (buf, "0x1p%d", (min_exp - mant_dig) * log2_b);
+ builtin_define_with_hex_fp_value (name, type, decimal_dig, buf, fp_suffix);
}
/* Hook that registers front end and target-specific built-ins. */