From 207f844e6e998d5f82589404bc82b11db99b6e83 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 11 Oct 2016 13:13:17 +0000 Subject: [PATCH] configure: redirect -fsplit-stack compilation to dev/null Avoid an error message in the middle of the configure output. Patch by Eric Botcazou. Reviewed-on: https://go-review.googlesource.com/30813 From-SVN: r240993 --- gcc/go/gofrontend/MERGE | 2 +- libgo/configure | 6 +++--- libgo/configure.ac | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 66b1b856c7e..d09cec1414e 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -a700fa1908aa2a36f05b3ee09932f814fd94a10d +03e53c928ebaa15a915eb1e1b07f193d83fc2852 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/configure b/libgo/configure index e065417fa15..ade92db7da3 100755 --- a/libgo/configure +++ b/libgo/configure @@ -13937,9 +13937,9 @@ EOF cat > conftest2.c << EOF void f() {} EOF -$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c -$CC -c $CFLAGS $CPPFLAGS conftest2.c -if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then +$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1 +$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1 +if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then libgo_cv_c_linker_split_non_split=yes else libgo_cv_c_linker_split_non_split=no diff --git a/libgo/configure.ac b/libgo/configure.ac index 0f98ae83751..e721b0f09e3 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -447,9 +447,9 @@ EOF cat > conftest2.c << EOF void f() {} EOF -$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c -$CC -c $CFLAGS $CPPFLAGS conftest2.c -if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext; then +$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1 +$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1 +if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then libgo_cv_c_linker_split_non_split=yes else libgo_cv_c_linker_split_non_split=no -- 2.30.2