summaryrefslogtreecommitdiff
path: root/pr/src/misc/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'pr/src/misc/Makefile.in')
-rw-r--r--pr/src/misc/Makefile.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/pr/src/misc/Makefile.in b/pr/src/misc/Makefile.in
index 114e110b..afc4b631 100644
--- a/pr/src/misc/Makefile.in
+++ b/pr/src/misc/Makefile.in
@@ -82,12 +82,14 @@ RELEASE_BINS = $(srcdir)/compile-et.pl $(srcdir)/prerr.properties
include $(topsrcdir)/config/rules.mk
-# An AIX Optimization bug causes PR_dtoa() to produce wrong result.
-# This suppresses optimization for this single compilation unit.
-ifeq ($(OS_ARCH), AIX)
-$(OBJDIR)/prdtoa.o: prdtoa.c
+# Prevent floating point errors caused by MSVC 6.0 Processor Pack
+# optimizations (bug 207421). This disables optimizations that
+# could change the precision of floating-point calculations for
+# this single compilation unit.
+ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
+$(OBJDIR)/prdtoa.$(OBJ_SUFFIX): prdtoa.c
@$(MAKE_OBJDIR)
- $(CC) -o $@ -c $(filter-out -O, $(CFLAGS)) $<
+ $(CC) -Fo$@ -c $(CFLAGS) -Op $(call abspath,$<)
endif
#