Source-Changes-HG archive

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

[src/trunk]: src/share/mk apply -Wno-error=stack-protector in the same places...



details:   https://anonhg.NetBSD.org/src/rev/c85c5190287a
branches:  trunk
changeset: 814463:c85c5190287a
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Mar 22 08:17:27 2016 +0000

description:
apply -Wno-error=stack-protector in the same places for GCC 5.3 as 4.8.
fixes sh3 and m68k issues, at least.  (vax and or1k are also included.)

diffstat:

 share/mk/bsd.sys.mk |  17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r 29f719b0c62e -r c85c5190287a share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue Mar 22 08:15:24 2016 +0000
+++ b/share/mk/bsd.sys.mk       Tue Mar 22 08:17:27 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.255 2016/03/13 17:56:56 christos Exp $
+#      $NetBSD: bsd.sys.mk,v 1.256 2016/03/22 08:17:27 mrg Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -120,16 +120,19 @@
 .endif
 COPTS+=        -fstack-protector -Wstack-protector 
 
-# gcc 4.8 on m68k erroneously does not protect functions with
+# GCC 4.8 on m68k erroneously does not protect functions with
 # variables needing special alignement, see
 #      http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59674
 # (the underlying issue for sh and vax may be different, needs more
 # investigation, symptoms are similar but for different sources)
-.if "${ACTIVE_CC}" == "gcc" && "${HAVE_GCC}" == "48" && \
-       ( ${MACHINE_CPU} == "sh3" || \
-         ${MACHINE_ARCH} == "vax" || \
-         ${MACHINE_CPU} == "m68k" || \
-         ${MACHINE_CPU} == "or1k" )
+# also true for GCC 5.3
+.if "${ACTIVE_CC}" == "gcc" && \
+     ( ${HAVE_GCC} == "48" || \
+       ${HAVE_GCC} == "53" ) && \
+     ( ${MACHINE_CPU} == "sh3" || \
+       ${MACHINE_ARCH} == "vax" || \
+       ${MACHINE_CPU} == "m68k" || \
+       ${MACHINE_CPU} == "or1k" )
 COPTS+=        -Wno-error=stack-protector 
 .endif
 



Home | Main Index | Thread Index | Old Index