On Fri, Dec 9, 2016 at 1:37 AM, Rainer Orth <[email protected]>
wrote:
>
> 2016-12-09 Rainer Orth <[email protected]>
>
> * configure.ac: Call GCC_CHECK_LINKER_HWCAP.
> * Makefile.am (AM_LDFLAGS): Initialize to HWCAP_LDFLAGS.
> [USING_SPLIT_STACK]: Add to AM_LDFLAGS.
> * aclocal.m4: Regenerate.
> * configure: Regenerate.
> * Makefile.in: Regenerate.
> * testsuite/Makefile.in: Regenerate.
Thanks. Committed to mainline as follows.
Ian
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE (revision 243459)
+++ gcc/go/gofrontend/MERGE (working copy)
@@ -1,4 +1,4 @@
-ac59bb383e1b446c68465af793722dd0e84abefb
+556a546ba3c7bb14bd1b9b8469ee3b7a914909f6
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
Index: libgo/Makefile.am
===================================================================
--- libgo/Makefile.am (revision 243445)
+++ libgo/Makefile.am (working copy)
@@ -46,8 +46,10 @@ AM_CFLAGS = -fexceptions -fnon-call-exce
-I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
-I $(MULTIBUILDTOP)../../gcc/include
+AM_LDFLAGS = $(HWCAP_LDFLAGS)
+
if USING_SPLIT_STACK
-AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
+AM_LDFLAGS += -XCClinker $(SPLIT_STACK)
endif
# Multilib support.
@@ -561,7 +563,7 @@ s-sigtab: $(srcdir)/mksigtab.sh gen-sysi
runtime.inc: s-runtime-inc; @true
s-runtime-inc: runtime.lo Makefile
rm -f runtime.inc.tmp2
- grep -v "#define _" runtime.inc.tmp | grep -v "#define c[01] " >
runtime.inc.tmp2
+ grep -v "#define _" runtime.inc.tmp | grep -v "#define [cm][01234] " >
runtime.inc.tmp2
for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
grep "#define $$pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
done
Index: libgo/configure.ac
===================================================================
--- libgo/configure.ac (revision 243445)
+++ libgo/configure.ac (working copy)
@@ -421,6 +421,9 @@ case "$target" in
esac
AC_SUBST(OSCFLAGS)
+dnl Check linker hardware capability support.
+GCC_CHECK_LINKER_HWCAP
+
dnl Use -fsplit-stack when compiling C code if available.
AC_CACHE_CHECK([whether -fsplit-stack is supported],
[libgo_cv_c_split_stack_supported],