Skip to content

Commit b555fb2

Browse files
committedOct 31, 2018
Merge autoconf / automake update changes from GCC.
Top level: Merge from GCC: PR bootstrap/82856 * multilib.am: New file. From automake. config: Merge from GCC: PR bootstrap/82856 * math.m4, tls.m4: Use AC_LANG_SOURCE. zlib: Merge from GCC. PR bootstrap/82856 * Makefile.am: Include multilib.am. * Makefile.in: Regenerate.
1 parent 1443936 commit b555fb2

File tree

8 files changed

+134
-30
lines changed

8 files changed

+134
-30
lines changed
 

‎ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2018-10-31 Joseph Myers <joseph@codesourcery.com>
2+
3+
Merge from GCC:
4+
PR bootstrap/82856
5+
* multilib.am: New file. From automake.
6+
17
2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
28

39
* src-release.sh (GDB_SUPPORT_DIRS): Add "contrib".

‎config/ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2018-10-31 Joseph Myers <joseph@codesourcery.com>
2+
3+
Merge from GCC:
4+
PR bootstrap/82856
5+
* math.m4, tls.m4: Use AC_LANG_SOURCE.
6+
17
2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
28

39
* override.m4 (_GCC_AUTOCONF_VERSION): Bump from 2.64 to 2.69.

‎config/math.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ AC_DEFUN([GCC_CHECK_MATH_FUNC],
2525
AC_REQUIRE([GCC_CHECK_LIBM])
2626
AC_REQUIRE([GCC_CHECK_MATH_HEADERS])
2727
AC_CACHE_CHECK([for $1], [gcc_cv_math_func_$1],
28-
[AC_LINK_IFELSE([
28+
[AC_LINK_IFELSE([AC_LANG_SOURCE([
2929
#ifdef HAVE_COMPLEX_H
3030
#include <complex.h>
3131
#endif
@@ -40,7 +40,7 @@ main ()
4040
{
4141
return 0;
4242
}
43-
],
43+
])],
4444
[gcc_cv_math_func_$1=yes],
4545
[gcc_cv_math_func_$1=no])])
4646
if test $gcc_cv_math_func_$1 = yes; then

‎config/tls.m4

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ AC_DEFUN([GCC_CHECK_TLS], [
44
GCC_ENABLE(tls, yes, [], [Use thread-local storage])
55
AC_CACHE_CHECK([whether the target supports thread-local storage],
66
gcc_cv_have_tls, [
7-
AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }],
7+
AC_RUN_IFELSE([AC_LANG_SOURCE([__thread int a; int b; int main() { return a = b; }])],
88
[dnl If the test case passed with dynamic linking, try again with
99
dnl static linking, but only if static linking is supported (not
1010
dnl on Solaris 10). This fails with some older Red Hat releases.
1111
chktls_save_LDFLAGS="$LDFLAGS"
1212
LDFLAGS="-static $LDFLAGS"
13-
AC_LINK_IFELSE([int main() { return 0; }],
14-
[AC_RUN_IFELSE([__thread int a; int b; int main() { return a = b; }],
13+
AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])],
14+
[AC_RUN_IFELSE([AC_LANG_SOURCE([__thread int a; int b; int main() { return a = b; }])],
1515
[gcc_cv_have_tls=yes], [gcc_cv_have_tls=no],[])],
1616
[gcc_cv_have_tls=yes])
1717
LDFLAGS="$chktls_save_LDFLAGS"
@@ -71,7 +71,7 @@ AC_DEFUN([GCC_CHECK_TLS], [
7171
[gcc_cv_have_tls=no],
7272
[dnl This is the cross-compiling case. Assume libc supports TLS if the
7373
dnl binutils and the compiler do.
74-
AC_LINK_IFELSE([__thread int a; int b; int main() { return a = b; }],
74+
AC_LINK_IFELSE([AC_LANG_SOURCE([__thread int a; int b; int main() { return a = b; }])],
7575
[chktls_save_LDFLAGS="$LDFLAGS"
7676
dnl Shared library options may depend on the host; this check
7777
dnl is only known to be needed for GNU/Linux.
@@ -83,8 +83,8 @@ AC_DEFUN([GCC_CHECK_TLS], [
8383
chktls_save_CFLAGS="$CFLAGS"
8484
CFLAGS="-fPIC $CFLAGS"
8585
dnl If -shared works, test if TLS works in a shared library.
86-
AC_LINK_IFELSE([int f() { return 0; }],
87-
[AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }],
86+
AC_LINK_IFELSE([AC_LANG_SOURCE([int f() { return 0; }])],
87+
[AC_LINK_IFELSE([AC_LANG_SOURCE([__thread int a; int b; int f() { return a = b; }])],
8888
[gcc_cv_have_tls=yes],
8989
[gcc_cv_have_tls=no])],
9090
[gcc_cv_have_tls=yes])
@@ -102,7 +102,7 @@ AC_DEFUN([GCC_CHECK_CC_TLS], [
102102
GCC_ENABLE(tls, yes, [], [Use thread-local storage])
103103
AC_CACHE_CHECK([whether the target assembler supports thread-local storage],
104104
gcc_cv_have_cc_tls, [
105-
AC_COMPILE_IFELSE([__thread int a; int b; int main() { return a = b; }],
105+
AC_COMPILE_IFELSE([AC_LANG_SOURCE([__thread int a; int b; int main() { return a = b; }])],
106106
[gcc_cv_have_cc_tls=yes], [gcc_cv_have_cc_tls=no])]
107107
)])
108108
if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then

‎multilib.am

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## automake - create Makefile.in from Makefile.am
2+
3+
## Copyright (C) 1994-2017 Free Software Foundation, Inc.
4+
## This Makefile.in is free software; the Free Software Foundation
5+
## gives unlimited permission to copy and/or distribute it,
6+
## with or without modifications, as long as this notice is preserved.
7+
8+
## This program is distributed in the hope that it will be useful,
9+
## but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
## GNU General Public License for more details.
12+
13+
MULTISRCTOP =
14+
MULTIBUILDTOP =
15+
MULTIDIRS =
16+
MULTISUBDIR =
17+
MULTIDO = true
18+
MULTICLEAN = true
19+
20+
# GNU Make needs to see an explicit $(MAKE) variable in the command it
21+
# runs to enable its job server during parallel builds. Hence the
22+
# comments below.
23+
all-multi:
24+
$(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
25+
install-multi:
26+
$(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
27+
mostlyclean-multi:
28+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
29+
clean-multi:
30+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
31+
distclean-multi:
32+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
33+
maintainer-clean-multi:
34+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE)
35+
36+
.MAKE .PHONY: all-multi clean-multi distclean-multi install-am \
37+
install-multi maintainer-clean-multi mostlyclean-multi
38+
39+
install-exec-local: install-multi
40+
41+
all-local: all-multi
42+
mostlyclean-local: mostlyclean-multi
43+
clean-local: clean-multi
44+
distclean-local: distclean-multi
45+
maintainer-clean-local: maintainer-clean-multi

‎zlib/ChangeLog.bin-gdb

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2018-10-31 Joseph Myers <joseph@codesourcery.com>
2+
3+
Merge from GCC.
4+
PR bootstrap/82856
5+
* Makefile.am: Include multilib.am.
6+
* Makefile.in: Regenerate.
7+
18
2018-06-21 Alan Modra <amodra@gmail.com>
29

310
* Makefile.in: Regenerate.

‎zlib/Makefile.am

+2
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ AM_MAKEFLAGS = \
5959
"PICFLAG=$(PICFLAG)" \
6060
"RANLIB=$(RANLIB)" \
6161
"DESTDIR=$(DESTDIR)"
62+
63+
include $(top_srcdir)/../multilib.am

‎zlib/Makefile.in

+59-21
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/../compile \
245245
$(top_srcdir)/../config.guess $(top_srcdir)/../config.sub \
246246
$(top_srcdir)/../depcomp $(top_srcdir)/../install-sh \
247247
$(top_srcdir)/../ltmain.sh $(top_srcdir)/../missing \
248-
$(top_srcdir)/../mkinstalldirs ChangeLog README
248+
$(top_srcdir)/../mkinstalldirs $(top_srcdir)/../multilib.am \
249+
ChangeLog README
249250
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
250251
distdir = $(PACKAGE)-$(VERSION)
251252
top_distdir = $(distdir)
@@ -441,13 +442,19 @@ AM_MAKEFLAGS = \
441442
"RANLIB=$(RANLIB)" \
442443
"DESTDIR=$(DESTDIR)"
443444

445+
MULTISRCTOP =
446+
MULTIBUILDTOP =
447+
MULTIDIRS =
448+
MULTISUBDIR =
449+
MULTIDO = true
450+
MULTICLEAN = true
444451
all: all-am
445452

446453
.SUFFIXES:
447454
.SUFFIXES: .c .lo .o .obj
448455
am--refresh: Makefile
449456
@:
450-
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
457+
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../multilib.am $(am__configure_deps)
451458
@for dep in $?; do \
452459
case '$(am__configure_deps)' in \
453460
*$$dep*) \
@@ -469,6 +476,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
469476
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
470477
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
471478
esac;
479+
$(top_srcdir)/../multilib.am $(am__empty):
472480

473481
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
474482
$(SHELL) ./config.status --recheck
@@ -1030,7 +1038,7 @@ distcleancheck: distclean
10301038
exit 1; } >&2
10311039
check-am: all-am
10321040
check: check-am
1033-
all-am: Makefile $(LIBRARIES) $(LTLIBRARIES)
1041+
all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) all-local
10341042
installdirs:
10351043
for dir in "$(DESTDIR)$(toolexeclibdir)"; do \
10361044
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
@@ -1067,15 +1075,16 @@ maintainer-clean-generic:
10671075
@echo "it deletes files that may require special tools to rebuild."
10681076
clean: clean-am
10691077

1070-
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
1071-
clean-toolexeclibLIBRARIES mostlyclean-am
1078+
clean-am: clean-generic clean-libtool clean-local \
1079+
clean-noinstLTLIBRARIES clean-toolexeclibLIBRARIES \
1080+
mostlyclean-am
10721081

10731082
distclean: distclean-am
10741083
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
10751084
-rm -rf ./$(DEPDIR)
10761085
-rm -f Makefile
10771086
distclean-am: clean-am distclean-compile distclean-generic \
1078-
distclean-libtool distclean-tags
1087+
distclean-libtool distclean-local distclean-tags
10791088

10801089
dvi: dvi-am
10811090

@@ -1095,7 +1104,7 @@ install-dvi: install-dvi-am
10951104

10961105
install-dvi-am:
10971106

1098-
install-exec-am: install-toolexeclibLIBRARIES
1107+
install-exec-am: install-exec-local install-toolexeclibLIBRARIES
10991108

11001109
install-html: install-html-am
11011110

@@ -1122,12 +1131,13 @@ maintainer-clean: maintainer-clean-am
11221131
-rm -rf $(top_srcdir)/autom4te.cache
11231132
-rm -rf ./$(DEPDIR)
11241133
-rm -f Makefile
1125-
maintainer-clean-am: distclean-am maintainer-clean-generic
1134+
maintainer-clean-am: distclean-am maintainer-clean-generic \
1135+
maintainer-clean-local
11261136

11271137
mostlyclean: mostlyclean-am
11281138

11291139
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1130-
mostlyclean-libtool
1140+
mostlyclean-libtool mostlyclean-local
11311141

11321142
pdf: pdf-am
11331143

@@ -1141,28 +1151,56 @@ uninstall-am: uninstall-toolexeclibLIBRARIES
11411151

11421152
.MAKE: install-am install-strip
11431153

1144-
.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
1145-
clean-cscope clean-generic clean-libtool \
1146-
clean-noinstLTLIBRARIES clean-toolexeclibLIBRARIES cscope \
1147-
cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
1154+
.PHONY: CTAGS GTAGS TAGS all all-am all-local am--refresh check \
1155+
check-am clean clean-cscope clean-generic clean-libtool \
1156+
clean-local clean-noinstLTLIBRARIES clean-toolexeclibLIBRARIES \
1157+
cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
11481158
dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
11491159
distcheck distclean distclean-compile distclean-generic \
1150-
distclean-libtool distclean-tags distcleancheck distdir \
1151-
distuninstallcheck dvi dvi-am html html-am info info-am \
1152-
install install-am install-data install-data-am install-dvi \
1153-
install-dvi-am install-exec install-exec-am install-html \
1160+
distclean-libtool distclean-local distclean-tags \
1161+
distcleancheck distdir distuninstallcheck dvi dvi-am html \
1162+
html-am info info-am install install-am install-data \
1163+
install-data-am install-dvi install-dvi-am install-exec \
1164+
install-exec-am install-exec-local install-html \
11541165
install-html-am install-info install-info-am install-man \
11551166
install-pdf install-pdf-am install-ps install-ps-am \
11561167
install-strip install-toolexeclibLIBRARIES installcheck \
11571168
installcheck-am installdirs maintainer-clean \
1158-
maintainer-clean-generic mostlyclean mostlyclean-compile \
1159-
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1160-
tags tags-am uninstall uninstall-am \
1161-
uninstall-toolexeclibLIBRARIES
1169+
maintainer-clean-generic maintainer-clean-local mostlyclean \
1170+
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1171+
mostlyclean-local pdf pdf-am ps ps-am tags tags-am uninstall \
1172+
uninstall-am uninstall-toolexeclibLIBRARIES
11621173

11631174
.PRECIOUS: Makefile
11641175

11651176

1177+
# GNU Make needs to see an explicit $(MAKE) variable in the command it
1178+
# runs to enable its job server during parallel builds. Hence the
1179+
# comments below.
1180+
all-multi:
1181+
$(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
1182+
install-multi:
1183+
$(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
1184+
mostlyclean-multi:
1185+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
1186+
clean-multi:
1187+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
1188+
distclean-multi:
1189+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
1190+
maintainer-clean-multi:
1191+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE)
1192+
1193+
.MAKE .PHONY: all-multi clean-multi distclean-multi install-am \
1194+
install-multi maintainer-clean-multi mostlyclean-multi
1195+
1196+
install-exec-local: install-multi
1197+
1198+
all-local: all-multi
1199+
mostlyclean-local: mostlyclean-multi
1200+
clean-local: clean-multi
1201+
distclean-local: distclean-multi
1202+
maintainer-clean-local: maintainer-clean-multi
1203+
11661204
# Tell versions [3.59,3.63) of GNU make to not export all variables.
11671205
# Otherwise a system limit (for SysV at least) may be exceeded.
11681206
.NOEXPORT:

0 commit comments

Comments
 (0)