OSDN Git Service

* real.h (ieee_extended_intel_96_round_53_format): New.
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / freebsd.h
index 64b152f..52dcf1b 100644 (file)
@@ -133,3 +133,13 @@ Boston, MA 02111-1307, USA.  */
 
 #undef  DEFAULT_PCC_STRUCT_RETURN
 #define DEFAULT_PCC_STRUCT_RETURN 0
 
 #undef  DEFAULT_PCC_STRUCT_RETURN
 #define DEFAULT_PCC_STRUCT_RETURN 0
+
+/* FreeBSD sets the rounding precision of the FPU to 53 bits.  Let the
+   compiler get the contents of <float.h> and std::numeric_limits correct.  */
+#define SUBTARGET_OVERRIDE_OPTIONS                     \
+  do {                                                 \
+    real_format_for_mode[XFmode - QFmode]              \
+      = &ieee_extended_intel_96_round_53_format;       \
+    real_format_for_mode[TFmode - QFmode]              \
+      = &ieee_extended_intel_96_round_53_format;       \
+  } while (0)