Source-Changes-HG archive

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

[src/trunk]: src remove some more GCC 4.5 code. make GCC 5.3 be HAVE_GCC=53, ...



details:   https://anonhg.NetBSD.org/src/rev/2c450b75f5dc
branches:  trunk
changeset: 814245:2c450b75f5dc
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Mar 13 01:06:51 2016 +0000

description:
remove some more GCC 4.5 code.  make GCC 5.3 be HAVE_GCC=53, so that,
for example, HAVE_GCC >= 48 works properly.

diffstat:

 lib/libc/softfloat/Makefile.inc    |  7 ++-----
 share/mk/bsd.own.mk                |  4 ++--
 sys/arch/sun68k/stand/Makefile.inc |  4 ++--
 tools/gcc/Makefile                 |  4 ++--
 4 files changed, 8 insertions(+), 11 deletions(-)

diffs (76 lines):

diff -r cf9b91c26f71 -r 2c450b75f5dc lib/libc/softfloat/Makefile.inc
--- a/lib/libc/softfloat/Makefile.inc   Sun Mar 13 01:05:59 2016 +0000
+++ b/lib/libc/softfloat/Makefile.inc   Sun Mar 13 01:06:51 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.20 2015/04/08 13:16:37 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.21 2016/03/13 01:06:51 mrg Exp $
 
 SOFTFLOAT_BITS?=64
 .PATH:         ${ARCHDIR}/softfloat \
@@ -31,11 +31,8 @@
 
 # XXX
 .if defined(HAVE_GCC)
-. if (${LIBC_MACHINE_CPU} == "arm") && (${HAVE_GCC} == "45")
 # See doc/HACKS for more information.
-COPTS.softfloat.c+=    -Wno-enum-compare
-COPTS.softfloat.c+=    ${${ACTIVE_CXX} == "gcc":? -fno-tree-vrp :}
-.elif (${LIBC_MACHINE_CPU} == "mips" || \
+. if (${LIBC_MACHINE_CPU} == "mips" || \
      ${LIBC_MACHINE_CPU} == "sh3")
 COPTS.softfloat.c+=    -Wno-enum-compare
 . endif
diff -r cf9b91c26f71 -r 2c450b75f5dc share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun Mar 13 01:05:59 2016 +0000
+++ b/share/mk/bsd.own.mk       Sun Mar 13 01:06:51 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.905 2016/03/01 10:29:40 uwe Exp $
+#      $NetBSD: bsd.own.mk,v 1.906 2016/03/13 01:06:51 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -78,7 +78,7 @@
 # We import the old gcc as "gcc.old" when upgrading.  EXTERNAL_GCC_SUBDIR is
 # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC.
 #
-.if ${HAVE_GCC} == 5
+.if ${HAVE_GCC} == 53
 EXTERNAL_GCC_SUBDIR=   gcc
 .elif ${HAVE_GCC} == 48
 EXTERNAL_GCC_SUBDIR=   gcc.old
diff -r cf9b91c26f71 -r 2c450b75f5dc sys/arch/sun68k/stand/Makefile.inc
--- a/sys/arch/sun68k/stand/Makefile.inc        Sun Mar 13 01:05:59 2016 +0000
+++ b/sys/arch/sun68k/stand/Makefile.inc        Sun Mar 13 01:06:51 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.25 2014/07/26 17:24:04 tsutsui Exp $
+#      $NetBSD: Makefile.inc,v 1.26 2016/03/13 01:06:51 mrg Exp $
 
 # Must have S=/usr/src/sys (or equivalent)
 # But note: this is w.r.t. a subdirectory
@@ -22,7 +22,7 @@
 DEFS?= -Dsun3 -D_STANDALONE -D__daddr_t=int32_t
 INCL?= -I. -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
 
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 48
+.if defined(HAVE_GCC)
 # gcc 4.8 convers -mc68000 to -mcpu=68000 and that breaks gas
 # which works for -march=68010 but breaks for -mcpu=68010
 CPUFLAGS= -march=68010
diff -r cf9b91c26f71 -r 2c450b75f5dc tools/gcc/Makefile
--- a/tools/gcc/Makefile        Sun Mar 13 01:05:59 2016 +0000
+++ b/tools/gcc/Makefile        Sun Mar 13 01:06:51 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.76 2016/02/15 13:25:12 martin Exp $
+#      $NetBSD: Makefile,v 1.77 2016/03/13 01:06:51 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -83,7 +83,7 @@
 
 MKNATIVE_CONFIG_TARGET_LIBS=
 
-.if ${HAVE_GCC} == 5
+.if ${HAVE_GCC} >= 50
 MKNATIVE_CONFIG_TARGET_LIBS+=  configure-target-libgcc
 MKNATIVE_CONFIG_TARGET_LIBS+=  configure-target-libgomp
 MKNATIVE_TARGET=       gcc5



Home | Main Index | Thread Index | Old Index