[Openmcl-cvs-notifications] r11578 - /trunk/source/lisp-kernel/linuxppc64/Makefile

gb at clozure.com gb at clozure.com
Mon Jan 5 00:32:35 EST 2009


Author: gb
Date: Mon Jan  5 00:32:35 2009
New Revision: 11578

Log:
Try to disable gcc warnings about formatting directives.  Once in a while,
one of these warnings might say something useful ("if you give a million
monkeys a million typewriters, sooner or later one of them will write
King Lear"), but the warnings are often useless.

Modified:
    trunk/source/lisp-kernel/linuxppc64/Makefile

Modified: trunk/source/lisp-kernel/linuxppc64/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/source/lisp-kernel/linuxppc64/Makefile (original)
+++ trunk/source/lisp-kernel/linuxppc64/Makefile Mon Jan  5 00:32:35 2009
@@ -24,7 +24,10 @@
 M4FLAGS =3D -DLINUX -DPPC -DPPC64
 CDEFINES =3D -DLINUX -D_REENTRANT -DPPC -DPPC64 -D_GNU_SOURCE
 CDEBUG =3D -g
-COPT =3D #-O2
+COPT =3D -O2
+# word size issues are a little more relevant on a 64-bit platform
+# than elsewhere, but most gcc format warnings are still nonsense.
+WFORMAT =3D -Wno-format
 =

 # If the linker supports a "--hash-style=3D" option, use traditional
 # Sysv hash tables.  (If it doesn't support that option, assume
@@ -40,7 +43,7 @@
 .s.o:
 	$(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
 .c.o:
-	$(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -m64 -o $@
+	$(CC) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m64 -o $@
 =

 SPOBJ =3D pad.o ppc-spjump.o ppc-spentry.o ppc-subprims.o
 ASMOBJ =3D ppc-asmutils.o imports.o



More information about the Openmcl-cvs-notifications mailing list