6744609: Disable MMX support when building libpng library
authormartin
Mon, 08 Sep 2008 17:26:24 -0700
changeset 1959 921c735ddfe1
parent 1958 f219439dfa85
child 1960 cc69c7cc3c58
6744609: Disable MMX support when building libpng library Summary: Define -DPNG_NO_MMX_CODE unconditionally, not just on 64-bit Linux Reviewed-by: anthony, art
jdk/make/sun/splashscreen/Makefile
--- a/jdk/make/sun/splashscreen/Makefile	Thu Sep 04 17:24:23 2008 +0400
+++ b/jdk/make/sun/splashscreen/Makefile	Mon Sep 08 17:26:24 2008 -0700
@@ -85,13 +85,6 @@
 CPPFLAGS += -I$(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen -I$(SHARE_SRC)/native/$(PKGDIR)/splashscreen
 CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3
 
-ifeq ($(PLATFORM), linux)
-  ifeq ($(ARCH_DATA_MODEL), 64)
-    # 64-bit gcc has problems compiling MMX instructions.
-    # Google it for more details. Possibly the newer versions of
-    # the PNG-library and/or the new compiler will not need this
-    # option in the future.
-    CPPFLAGS += -DPNG_NO_MMX_CODE
-  endif
-endif
-
+# Shun the less than portable MMX assembly code in pnggccrd.c,
+# and use alternative implementations in C.
+CPPFLAGS += -DPNG_NO_MMX_CODE