Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src apply some -Wno-error and/or -fno-strict-aliasing.



details:   https://anonhg.NetBSD.org/src/rev/4c57add35c5d
branches:  trunk
changeset: 766408:4c57add35c5d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jun 22 02:49:41 2011 +0000

description:
apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.

diffstat:

 bin/ksh/Makefile                             |   7 ++++++-
 crypto/external/bsd/openssh/bin/ssh/Makefile |   7 ++++++-
 crypto/external/bsd/openssl/bin/Makefile     |  10 ++++++++--
 external/bsd/am-utils/bin/amd/Makefile       |   7 ++++++-
 external/bsd/am-utils/bin/hlfsd/Makefile     |   7 ++++++-
 external/bsd/iscsi/initiator/Makefile        |   7 ++++++-
 external/bsd/mdocml/lib/libmandoc/Makefile   |   7 ++++++-
 external/bsd/ntp/bin/ntpd/Makefile           |   6 +++++-
 external/bsd/ntp/lib/libiscntp/Makefile      |   7 ++++++-
 external/bsd/tcpdump/bin/Makefile            |   7 ++++++-
 games/hack/Makefile                          |   7 ++++++-
 lib/libc/rpc/Makefile.inc                    |   7 ++++++-
 libexec/ftpd/Makefile                        |   7 ++++++-
 regress/sys/kern/getcwd/Makefile             |   7 ++++++-
 sbin/dump_lfs/Makefile                       |   7 ++++++-
 sbin/fsdb/Makefile                           |   7 ++++++-
 sbin/ifconfig/Makefile                       |   7 ++++++-
 sbin/mount_smbfs/Makefile                    |   7 ++++++-
 sbin/ping6/Makefile                          |   7 ++++++-
 sys/arch/i386/stand/lib/Makefile             |   7 ++++++-
 usr.bin/cap_mkdb/Makefile                    |   7 ++++++-
 usr.bin/ftp/Makefile                         |   8 +++++++-
 usr.bin/make/Makefile                        |   7 ++++++-
 usr.bin/midiplay/Makefile                    |   7 ++++++-
 usr.bin/sdpquery/Makefile                    |   8 +++++++-
 usr.sbin/altq/libaltq/Makefile               |   7 ++++++-
 usr.sbin/dhcp/omshell/Makefile               |   7 ++++++-
 usr.sbin/fwctl/Makefile                      |   7 ++++++-
 usr.sbin/installboot/Makefile                |   7 ++++++-
 usr.sbin/iopctl/Makefile                     |   7 ++++++-
 usr.sbin/mlxctl/Makefile                     |   8 +++++++-
 usr.sbin/mopd/common/Makefile                |   7 ++++++-
 32 files changed, 196 insertions(+), 33 deletions(-)

diffs (truncated from 584 to 300 lines):

diff -r f0b5adc20bba -r 4c57add35c5d bin/ksh/Makefile
--- a/bin/ksh/Makefile  Tue Jun 21 21:52:49 2011 +0000
+++ b/bin/ksh/Makefile  Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.27 2011/05/26 12:56:24 joerg Exp $
+#      $NetBSD: Makefile,v 1.28 2011/06/22 02:49:41 mrg Exp $
 
 WARNS=3
 
@@ -50,3 +50,8 @@
 CWARNFLAGS.clang+=     -Wno-format-security
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.eval.c+= -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d crypto/external/bsd/openssh/bin/ssh/Makefile
--- a/crypto/external/bsd/openssh/bin/ssh/Makefile      Tue Jun 21 21:52:49 2011 +0000
+++ b/crypto/external/bsd/openssh/bin/ssh/Makefile      Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2011/06/20 07:43:56 mrg Exp $
+#      $NetBSD: Makefile,v 1.6 2011/06/22 02:49:42 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -36,3 +36,8 @@
 .endif
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.clientloop.c+= -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d crypto/external/bsd/openssl/bin/Makefile
--- a/crypto/external/bsd/openssl/bin/Makefile  Tue Jun 21 21:52:49 2011 +0000
+++ b/crypto/external/bsd/openssl/bin/Makefile  Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2011/06/06 13:43:48 spz Exp $
+#      $NetBSD: Makefile,v 1.4 2011/06/22 02:49:42 mrg Exp $
 
 WARNS?=        2       # XXX -Wcast-qual
 
@@ -10,7 +10,7 @@
 USE_FORT?= yes # cryptographic software
 
 # RCSid:
-#      $Id: Makefile,v 1.3 2011/06/06 13:43:48 spz Exp $
+#      $Id: Makefile,v 1.4 2011/06/22 02:49:42 mrg Exp $
 #
 #      @(#) Copyright (c) 1995 Simon J. Gerraty
 #
@@ -112,3 +112,9 @@
 .endif
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.s_server.c+= -Wno-error
+COPTS.s_client.c+= -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d external/bsd/am-utils/bin/amd/Makefile
--- a/external/bsd/am-utils/bin/amd/Makefile    Tue Jun 21 21:52:49 2011 +0000
+++ b/external/bsd/am-utils/bin/amd/Makefile    Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2011/06/20 07:43:57 mrg Exp $
+#      $NetBSD: Makefile,v 1.8 2011/06/22 02:49:42 mrg Exp $
 
 .include "${.CURDIR}/../Makefile.inc"
 
@@ -83,3 +83,8 @@
 
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.readdir.c+=      -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d external/bsd/am-utils/bin/hlfsd/Makefile
--- a/external/bsd/am-utils/bin/hlfsd/Makefile  Tue Jun 21 21:52:49 2011 +0000
+++ b/external/bsd/am-utils/bin/hlfsd/Makefile  Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2008/09/19 21:38:40 christos Exp $
+#      $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
 
 .include "${.CURDIR}/../Makefile.inc"
 
@@ -14,3 +14,8 @@
 LDADD+=                ${LIBAMU} -lrpcsvc
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.stubs.c+=        -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d external/bsd/iscsi/initiator/Makefile
--- a/external/bsd/iscsi/initiator/Makefile     Tue Jun 21 21:52:49 2011 +0000
+++ b/external/bsd/iscsi/initiator/Makefile     Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2010/09/23 09:40:23 he Exp $
+# $NetBSD: Makefile,v 1.4 2011/06/22 02:49:42 mrg Exp $
 
 .sinclude "${.CURDIR}/../Makefile.inc"
 
@@ -26,3 +26,8 @@
 .endif
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.iscsi-initiator.c+=      -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d external/bsd/mdocml/lib/libmandoc/Makefile
--- a/external/bsd/mdocml/lib/libmandoc/Makefile        Tue Jun 21 21:52:49 2011 +0000
+++ b/external/bsd/mdocml/lib/libmandoc/Makefile        Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2011/04/15 14:36:31 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -11,3 +11,8 @@
 MAN=   mandoc.3
 
 .include <bsd.lib.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.mdoc_validate.c+=        -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d external/bsd/ntp/bin/ntpd/Makefile
--- a/external/bsd/ntp/bin/ntpd/Makefile        Tue Jun 21 21:52:49 2011 +0000
+++ b/external/bsd/ntp/bin/ntpd/Makefile        Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2011/02/26 19:17:37 plunky Exp $
+#      $NetBSD: Makefile,v 1.9 2011/06/22 02:49:42 mrg Exp $
 
 #NOGCCERROR=yes
 
@@ -96,3 +96,7 @@
 # kill default .y.c rule - to rebuild ntp_parser.c we need bison which is not part of the toolchain
 .y.c:
 
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.ntp_request.c+= -Wno-error -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d external/bsd/ntp/lib/libiscntp/Makefile
--- a/external/bsd/ntp/lib/libiscntp/Makefile   Tue Jun 21 21:52:49 2011 +0000
+++ b/external/bsd/ntp/lib/libiscntp/Makefile   Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2009/12/13 17:13:48 kardel Exp $
+#      $NetBSD: Makefile,v 1.2 2011/06/22 02:49:42 mrg Exp $
 
 LIBISPRIVATE=yes
 
@@ -42,3 +42,8 @@
         sockaddr.c
 
 .include <bsd.lib.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.time.c+= -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d external/bsd/tcpdump/bin/Makefile
--- a/external/bsd/tcpdump/bin/Makefile Tue Jun 21 21:52:49 2011 +0000
+++ b/external/bsd/tcpdump/bin/Makefile Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2011/05/26 12:56:26 joerg Exp $ 
+#      $NetBSD: Makefile,v 1.6 2011/06/22 02:49:43 mrg Exp $   
 
 WARNS?=        1       # XXX: need to cleanup later
 
@@ -89,3 +89,8 @@
        cp ${.ALLSRC} ${.TARGET}
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS+=        -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d games/hack/Makefile
--- a/games/hack/Makefile       Tue Jun 21 21:52:49 2011 +0000
+++ b/games/hack/Makefile       Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.42 2010/02/03 15:34:38 roy Exp $
+#      $NetBSD: Makefile,v 1.43 2011/06/22 02:49:43 mrg Exp $
 #      @(#)Makefile    8.2 (Berkeley) 4/27/95
 
 .include <bsd.own.mk>
@@ -57,3 +57,8 @@
        rm -f ${DESTDIR}/var/games/hackdir/bones*
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.hack.vault.c+=   -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d lib/libc/rpc/Makefile.inc
--- a/lib/libc/rpc/Makefile.inc Tue Jun 21 21:52:49 2011 +0000
+++ b/lib/libc/rpc/Makefile.inc Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.17 2008/10/25 19:07:26 mrg Exp $
+#      $NetBSD: Makefile.inc,v 1.18 2011/06/22 02:49:43 mrg Exp $
 
 # librpc sources
 .PATH: ${.CURDIR}/rpc
@@ -166,3 +166,8 @@
                xdr.3 xdr_vector.3 \
                xdr.3 xdr_void.3 \
                xdr.3 xdr_wrapstring.3
+
+# XXX
+.if ${HAVE_GCC} == 45 || ${MACHINE} == "vax"
+COPTS.xdr_float.c+= -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d libexec/ftpd/Makefile
--- a/libexec/ftpd/Makefile     Tue Jun 21 21:52:49 2011 +0000
+++ b/libexec/ftpd/Makefile     Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.61 2011/04/24 21:42:06 elric Exp $
+#      $NetBSD: Makefile,v 1.62 2011/06/22 02:49:43 mrg Exp $
 #      @(#)Makefile    8.2 (Berkeley) 4/4/94
 
 .include <bsd.own.mk>
@@ -52,3 +52,8 @@
 #.endif
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.conf.c+= -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d regress/sys/kern/getcwd/Makefile
--- a/regress/sys/kern/getcwd/Makefile  Tue Jun 21 21:52:49 2011 +0000
+++ b/regress/sys/kern/getcwd/Makefile  Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.5 2006/10/14 21:23:01 bjh21 Exp $
+#      $NetBSD: Makefile,v 1.6 2011/06/22 02:49:43 mrg Exp $
 
 NOMAN=         # defined
 LDSTATIC=      -static
@@ -15,3 +15,8 @@
        @find /usr -type d -print | ./getcwd -s
 
 .include <bsd.prog.mk>
+
+# getcwd.c has an on-purpuse array bounds violation
+.if ${HAVE_GCC} == 45
+COPTS.getcwd.c+= -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d sbin/dump_lfs/Makefile
--- a/sbin/dump_lfs/Makefile    Tue Jun 21 21:52:49 2011 +0000
+++ b/sbin/dump_lfs/Makefile    Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2009/04/11 07:58:12 lukem Exp $
+#      $NetBSD: Makefile,v 1.12 2011/06/22 02:49:43 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 #      lfs_inode.c             LFS filestore-specific routines
@@ -29,3 +29,8 @@
        ${NETBSDSRCDIR}/sys/ufs/ffs
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.lfs_inode.c+=    -fno-strict-aliasing
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d sbin/fsdb/Makefile
--- a/sbin/fsdb/Makefile        Tue Jun 21 21:52:49 2011 +0000
+++ b/sbin/fsdb/Makefile        Wed Jun 22 02:49:41 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.29 2011/06/20 07:44:00 mrg Exp $
+#      $NetBSD: Makefile,v 1.30 2011/06/22 02:49:43 mrg Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/5/93
 
 WARNS?=        3       # XXX: sign-compare issues in ../fsck_ffs
@@ -44,3 +44,8 @@
 .endif
 
 .include <bsd.prog.mk>
+
+# XXX
+.if ${HAVE_GCC} == 45
+COPTS.fsdb.c+= -Wno-error
+.endif
diff -r f0b5adc20bba -r 4c57add35c5d sbin/ifconfig/Makefile
--- a/sbin/ifconfig/Makefile    Tue Jun 21 21:52:49 2011 +0000
+++ b/sbin/ifconfig/Makefile    Wed Jun 22 02:49:41 2011 +0000



Home | Main Index | Thread Index | Old Index