Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src remove most of the remaining HAVE_GCC tests that are always ...
details: https://anonhg.NetBSD.org/src/rev/9ed77608d5c2
branches: trunk
changeset: 766286:9ed77608d5c2
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Jun 20 07:43:56 2011 +0000
description:
remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
diffstat:
crypto/external/bsd/openssh/bin/sftp/Makefile | 4 ++--
crypto/external/bsd/openssh/bin/ssh-keygen/Makefile | 4 ++--
crypto/external/bsd/openssh/bin/ssh/Makefile | 4 ++--
crypto/external/bsd/openssh/bin/sshd/Makefile | 4 ++--
crypto/external/bsd/openssh/lib/Makefile | 7 +++++--
distrib/utils/sysinst/Makefile.inc | 4 ++--
distrib/utils/x_dhclient/Makefile | 4 ++--
external/bsd/am-utils/bin/amd/Makefile | 4 ++--
external/bsd/am-utils/bin/amq/Makefile | 4 ++--
external/bsd/am-utils/bin/pawd/Makefile | 4 ++--
external/bsd/am-utils/lib/libamu/Makefile | 4 ++--
external/bsd/bind/Makefile.inc | 4 ++--
external/bsd/bind/bin/named/Makefile | 4 ++--
external/bsd/bind/lib/libdns/Makefile | 4 ++--
external/historical/nawk/bin/Makefile | 4 ++--
lib/libcrypt/Makefile | 4 ++--
lib/libgssapi/Makefile | 4 ++--
lib/libhdb/Makefile | 8 +++-----
lib/libheimntlm/Makefile | 4 ++--
lib/libhx509/Makefile | 8 +++-----
lib/libkadm5clnt/Makefile | 4 ++--
lib/libkadm5srv/Makefile | 4 ++--
lib/libm/Makefile | 4 ++--
lib/libtelnet/Makefile | 4 ++--
libexec/ipropd-master/Makefile | 4 ++--
libexec/ipropd-slave/Makefile | 4 ++--
libexec/kadmind/Makefile | 4 ++--
libexec/kpasswdd/Makefile | 4 ++--
regress/sys/kern/ras/ras1/Makefile | 4 ++--
regress/sys/kern/ras/ras2/Makefile | 4 ++--
regress/sys/kern/ras/ras3/Makefile | 4 ++--
sbin/dkctl/Makefile | 4 ++--
sbin/dump/Makefile | 4 ++--
sbin/fsck_ext2fs/Makefile | 4 ++--
sbin/fsck_ffs/Makefile | 4 ++--
sbin/fsdb/Makefile | 4 ++--
sbin/mount_smbfs/Makefile.inc | 4 ++--
sbin/newfs/Makefile | 4 ++--
sbin/newfs_sysvbfs/Makefile | 4 ++--
sbin/restore/Makefile | 4 ++--
share/mk/bsd.kmodule.mk | 4 ++--
usr.bin/awk/Makefile | 4 ++--
usr.bin/crontab/Makefile | 4 ++--
usr.bin/ctags/Makefile | 4 ++--
usr.bin/gzip/Makefile | 4 ++--
usr.bin/nvi/build/Makefile | 4 ++--
usr.bin/telnet/Makefile | 4 ++--
usr.bin/tr/Makefile | 4 ++--
usr.sbin/bootp/bootptest/Makefile | 4 ++--
usr.sbin/cron/Makefile | 4 ++--
usr.sbin/dhcp/Makefile.inc | 4 ++--
usr.sbin/dumplfs/Makefile | 4 ++--
usr.sbin/hprop/Makefile | 4 ++--
usr.sbin/installboot/Makefile | 4 ++--
usr.sbin/iprop-log/Makefile | 4 ++--
usr.sbin/isdn/isdnd/Makefile | 4 ++--
usr.sbin/isdn/isdnmonitor/Makefile | 4 ++--
usr.sbin/isdn/isdntel/Makefile | 4 ++--
usr.sbin/isdn/isdntrace/Makefile | 4 ++--
usr.sbin/makefs/cd9660/Makefile.inc | 4 ++--
usr.sbin/mopd/common/Makefile | 4 ++--
usr.sbin/mopd/mopd/Makefile | 4 ++--
usr.sbin/mopd/mopprobe/Makefile | 4 ++--
usr.sbin/mscdlabel/Makefile | 4 ++--
usr.sbin/pppd/Makefile.inc | 4 ++--
usr.sbin/pppd/pppd/Makefile | 4 ++--
usr.sbin/rarpd/Makefile | 4 ++--
usr.sbin/rbootd/Makefile | 4 ++--
usr.sbin/rpc.pcnfsd/Makefile | 4 ++--
usr.sbin/rtadvd/Makefile | 4 ++--
usr.sbin/tcpdump/Makefile | 4 ++--
usr.sbin/wiconfig/Makefile | 4 ++--
72 files changed, 149 insertions(+), 150 deletions(-)
diffs (truncated from 1290 to 300 lines):
diff -r 6b7f8266434a -r 9ed77608d5c2 crypto/external/bsd/openssh/bin/sftp/Makefile
--- a/crypto/external/bsd/openssh/bin/sftp/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/crypto/external/bsd/openssh/bin/sftp/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2010/11/21 19:19:22 adam Exp $
+# $NetBSD: Makefile,v 1.4 2011/06/20 07:43:56 mrg Exp $
BINDIR= /usr/bin
@@ -11,7 +11,7 @@
.include <bsd.prog.mk>
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.sftp.c+= -Wno-pointer-sign
COPTS.sftp-client.c+= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 crypto/external/bsd/openssh/bin/ssh-keygen/Makefile
--- a/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2010/11/21 19:19:22 adam Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/20 07:43:56 mrg Exp $
BINDIR= /usr/bin
@@ -7,6 +7,6 @@
.include <bsd.prog.mk>
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.ssh-keygen.c= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 crypto/external/bsd/openssh/bin/ssh/Makefile
--- a/crypto/external/bsd/openssh/bin/ssh/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/crypto/external/bsd/openssh/bin/ssh/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/06/04 02:08:50 tsutsui Exp $
+# $NetBSD: Makefile,v 1.5 2011/06/20 07:43:56 mrg Exp $
.include <bsd.own.mk>
@@ -10,7 +10,7 @@
roaming_common.c roaming_client.c
COPTS.sshconnect1.c= -fno-strict-aliasing
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.mux.c= -Wno-pointer-sign
COPTS.sshconnect2.c= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 crypto/external/bsd/openssh/bin/sshd/Makefile
--- a/crypto/external/bsd/openssh/bin/sshd/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/crypto/external/bsd/openssh/bin/sshd/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2010/12/02 10:21:28 he Exp $
+# $NetBSD: Makefile,v 1.5 2011/06/20 07:43:56 mrg Exp $
.include <bsd.own.mk>
@@ -17,7 +17,7 @@
kexdhs.c kexgexs.c sftp-server.c sftp-common.c auth2-jpake.c \
roaming_common.c roaming_serv.c
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.auth-options.c= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 crypto/external/bsd/openssh/lib/Makefile
--- a/crypto/external/bsd/openssh/lib/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/crypto/external/bsd/openssh/lib/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2011/02/05 16:01:57 christos Exp $
+# $NetBSD: Makefile,v 1.9 2011/06/20 07:43:56 mrg Exp $
.include <bsd.own.mk>
@@ -28,10 +28,13 @@
crypt ${NETBSDSRCDIR}/lib/libcrypt \
z ${NETBSDSRCDIR}/lib/libz
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
.for f in dns channels hostfile ssh-pkcs11
COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.endif
.include <bsd.lib.mk>
+
+# XXX
+COPTS.channels.c+= -fno-strict-aliasing
diff -r 6b7f8266434a -r 9ed77608d5c2 distrib/utils/sysinst/Makefile.inc
--- a/distrib/utils/sysinst/Makefile.inc Mon Jun 20 07:31:18 2011 +0000
+++ b/distrib/utils/sysinst/Makefile.inc Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.52 2011/02/20 08:26:09 matt Exp $
+# $NetBSD: Makefile.inc,v 1.53 2011/06/20 07:43:56 mrg Exp $
#
# Makefile for sysinst
@@ -46,7 +46,7 @@
CPPFLAGS+=-DINET6
.endif
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.label.c+= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 distrib/utils/x_dhclient/Makefile
--- a/distrib/utils/x_dhclient/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/distrib/utils/x_dhclient/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/08/29 00:02:22 gmcgarry Exp $
+# $NetBSD: Makefile,v 1.17 2011/06/20 07:43:57 mrg Exp $
NOMAN=
.include <bsd.own.mk>
@@ -12,7 +12,7 @@
CPPFLAGS+= -DCLIENT_PATH='"PATH=/usr/bin:/usr/sbin:/bin:/sbin"' \
-DSMALL -I${RSRCDIR} -I${RSRCDIR}/includes
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
+.if defined(HAVE_GCC)
CPPFLAGS+= -fno-strict-aliasing
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 external/bsd/am-utils/bin/amd/Makefile
--- a/external/bsd/am-utils/bin/amd/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/external/bsd/am-utils/bin/amd/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2011/05/26 12:56:25 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2011/06/20 07:43:57 mrg Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -44,7 +44,7 @@
SRCS+= info_nis.c
.endif
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
+.if defined(HAVE_GCC)
COPTS.amq_subr.c+= -fno-strict-aliasing
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 external/bsd/am-utils/bin/amq/Makefile
--- a/external/bsd/am-utils/bin/amq/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/external/bsd/am-utils/bin/amq/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2010/02/08 07:56:38 plunky Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/20 07:43:57 mrg Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -13,7 +13,7 @@
CPPFLAGS+= -I${DIST}
LDADD+= ${LIBAMU}
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
+.if defined(HAVE_GCC)
COPTS.amq_xdr.c+= -fno-strict-aliasing
COPTS.amq.c+= -fno-strict-aliasing
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 external/bsd/am-utils/bin/pawd/Makefile
--- a/external/bsd/am-utils/bin/pawd/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/external/bsd/am-utils/bin/pawd/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2010/02/08 07:56:38 plunky Exp $
+# $NetBSD: Makefile,v 1.4 2011/06/20 07:43:57 mrg Exp $
BINDIR= /usr/bin
@@ -15,7 +15,7 @@
CPPFLAGS+= -I${DIST}
LDADD+= ${LIBAMU}
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
+.if defined(HAVE_GCC)
COPTS.amq_xdr.c+= -fno-strict-aliasing
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 external/bsd/am-utils/lib/libamu/Makefile
--- a/external/bsd/am-utils/lib/libamu/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/external/bsd/am-utils/lib/libamu/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2010/02/08 07:56:38 plunky Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/20 07:43:57 mrg Exp $
NOLINKLIB= # defined
@@ -18,7 +18,7 @@
wire.c xdr_func.c xutil.c
# XXX
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
+.if defined(HAVE_GCC)
COPTS.xdr_func.c+= -fno-strict-aliasing
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 external/bsd/bind/Makefile.inc
--- a/external/bsd/bind/Makefile.inc Mon Jun 20 07:31:18 2011 +0000
+++ b/external/bsd/bind/Makefile.inc Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.11 2011/05/26 12:56:25 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.12 2011/06/20 07:43:57 mrg Exp $
.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes
@@ -52,7 +52,7 @@
CPPFLAGS+= -DWANT_IPV6
.endif
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
+.if defined(HAVE_GCC)
COPTS+= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 external/bsd/bind/bin/named/Makefile
--- a/external/bsd/bind/bin/named/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/external/bsd/bind/bin/named/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2009/07/28 21:18:01 christos Exp $
+# $NetBSD: Makefile,v 1.3 2011/06/20 07:43:57 mrg Exp $
.include <bsd.own.mk>
@@ -13,7 +13,7 @@
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include -DCONFIGARGS=\"defaults\"
CPPFLAGS+=-DNO_VERSION_DATE
-.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
+.if defined(HAVE_GCC)
.for f in client
COPTS.${f}.c+= -fno-strict-aliasing
.endfor
diff -r 6b7f8266434a -r 9ed77608d5c2 external/bsd/bind/lib/libdns/Makefile
--- a/external/bsd/bind/lib/libdns/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/external/bsd/bind/lib/libdns/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2011/02/16 03:47:21 christos Exp $
+# $NetBSD: Makefile,v 1.4 2011/06/20 07:43:57 mrg Exp $
LIB=dns
@@ -12,7 +12,7 @@
.PATH.c: ${DIST}/unix ${DIST}/sec/dst ${DIST}
CPPFLAGS+= -I${BIND_SRCDIR}/include/dns -I${DIST}
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
.for f in lookup byaddr request sdb validator
COPTS.${f}.c+= -Wno-pointer-sign -fno-strict-aliasing
.endfor
diff -r 6b7f8266434a -r 9ed77608d5c2 external/historical/nawk/bin/Makefile
--- a/external/historical/nawk/bin/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/external/historical/nawk/bin/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/05/26 12:56:27 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2011/06/20 07:43:57 mrg Exp $
WARNS?= 4
CWARNFLAGS.clang+= -Wno-array-bounds -Wno-self-assign
@@ -17,7 +17,7 @@
DPADD+= ${LIBM}
.endif
YHEADER= yes
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS+= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 lib/libcrypt/Makefile
--- a/lib/libcrypt/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/lib/libcrypt/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2008/08/29 00:02:22 gmcgarry Exp $
+# $NetBSD: Makefile,v 1.22 2011/06/20 07:43:58 mrg Exp $
USE_SHLIBDIR= yes
@@ -25,6 +25,6 @@
.include <bsd.lib.mk>
.endif
-.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
+.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.crypt-sha1.c+= -Wno-pointer-sign
.endif
diff -r 6b7f8266434a -r 9ed77608d5c2 lib/libgssapi/Makefile
--- a/lib/libgssapi/Makefile Mon Jun 20 07:31:18 2011 +0000
+++ b/lib/libgssapi/Makefile Mon Jun 20 07:43:56 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2009/07/20 17:28:51 christos Exp $
+# $NetBSD: Makefile,v 1.23 2011/06/20 07:43:58 mrg Exp $
USE_FORT?= yes # network protocol library
Home |
Main Index |
Thread Index |
Old Index