Source-Changes-HG archive

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

[src/trunk]: src/tools GCC build exceeds the macOS clang default bracket nest...



details:   https://anonhg.NetBSD.org/src/rev/17338b139bf7
branches:  trunk
changeset: 321996:17338b139bf7
user:      snj <snj%NetBSD.org@localhost>
date:      Fri Apr 13 06:15:26 2018 +0000

description:
GCC build exceeds the macOS clang default bracket nesting level of 256.
Work around with -fbracket-depth=512.

>From potr in PR toolchain/53178.

diffstat:

 tools/Makefile.gnuhost |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r e22a7b4e15a9 -r 17338b139bf7 tools/Makefile.gnuhost
--- a/tools/Makefile.gnuhost    Fri Apr 13 06:07:20 2018 +0000
+++ b/tools/Makefile.gnuhost    Fri Apr 13 06:15:26 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.gnuhost,v 1.44 2016/01/16 18:38:53 christos Exp $
+#      $NetBSD: Makefile.gnuhost,v 1.45 2018/04/13 06:15:26 snj Exp $
 #
 # Rules used when building a GNU host package.  Expects MODULE to be set.
 #
@@ -18,9 +18,12 @@
 .include <bsd.own.mk>
 
 # Disable use of pre-compiled headers on Darwin.
+# GCC build exceeds the macOS clang default bracket nesting level of 256.
 BUILD_OSTYPE!= uname -s
 .if ${BUILD_OSTYPE} == "Darwin"
 HOST_CFLAGS+=-O2 -no-cpp-precomp
+HOST_CFLAGS+=-O2 -no-cpp-precomp -fbracket-depth=512
+HOST_CXXFLAGS+= -fbracket-depth=512
 .endif
 MAKE_PROGRAM?= ${MAKE}
 



Home | Main Index | Thread Index | Old Index