[MLton-commit] r6534

Ville Laurikari ville at mlton.org
Mon Apr 7 00:38:00 PDT 2008


On many platforms, we need to use a flag to quell some warnings
generated by GMP headers with GCC 4.2.

----------------------------------------------------------------------

U   mlton/trunk/runtime/Makefile

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile	2008-04-07 07:17:50 UTC (rev 6533)
+++ mlton/trunk/runtime/Makefile	2008-04-07 07:37:58 UTC (rev 6534)
@@ -49,9 +49,13 @@
 OPTWARNFLAGS += -Winline
 endif
 
-ifeq ($(TARGET_ARCH), ia64)
+ifeq ($(findstring $(TARGET_ARCH), hppa ia64 powerpc sparc),$(TARGET_ARCH))
+ifeq (4.2, $(firstword $(sort $(GCC_VERSION) 4.2)))
+# GMP headers contain C99 inline functions which generate warnings
+# with a suggestion to use this flag to disable the warnings.
 FLAGS += -fgnu89-inline
 endif
+endif
 
 ifeq ($(TARGET_ARCH), sparc)
 FLAGS += -m32 -mcpu=v8 -Wa,-xarch=v8plusa




More information about the MLton-commit mailing list