GNU Binutils with patches for OS216
Revision | 52cf9762c53f5de7070a3951a3a6156082839d35 (tree) |
---|---|
Zeit | 2016-02-10 19:54:29 |
Autor | Nick Clifton <nickc@redh...> |
Commiter | Nick Clifton |
Sync top level files with gcc.
Import these patches from the GCC mainline:
2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
* configure.ac: Enable LTO for DJGPP
* configure: Regenerate
2016-01-24 Mikhail Maltsev <maltsevm@gmail.com>
PR bootstrap/69329
* Makefile.tpl (BASE_FLAGS_TO_PASS): Add LSAN_OPTIONS.
* Makefile.in: Regenerate.
2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com>
* Makefile.in: Regenerate.
* Makefile.tpl: Export ISLVER.
* configure: Regenerate.
* config/isl.m4: Detect isl-0.15.
2016-01-29 Sebastian Pop <s.pop@samsung.com>
* config/isl.m4: Add comments about isl-0.16.
* configure: Regenerate.
@@ -1,3 +1,31 @@ | ||
1 | +2016-02-10 Nick Clifton <nickc@redhat.com> | |
2 | + | |
3 | + Import these patches from the GCC mainline: | |
4 | + | |
5 | + 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi> | |
6 | + | |
7 | + * configure.ac: Enable LTO for DJGPP | |
8 | + * configure: Regenerate | |
9 | + | |
10 | + 2016-01-24 Mikhail Maltsev <maltsevm@gmail.com> | |
11 | + | |
12 | + PR bootstrap/69329 | |
13 | + * Makefile.tpl (BASE_FLAGS_TO_PASS): Add LSAN_OPTIONS. | |
14 | + * Makefile.in: Regenerate. | |
15 | + | |
16 | + 2016-01-25 Aditya Kumar <aditya.k7@samsung.com> | |
17 | + Sebastian Pop <s.pop@samsung.com> | |
18 | + | |
19 | + * Makefile.in: Regenerate. | |
20 | + * Makefile.tpl: Export ISLVER. | |
21 | + * configure: Regenerate. | |
22 | + * config/isl.m4: Detect isl-0.15. | |
23 | + | |
24 | + 2016-01-29 Sebastian Pop <s.pop@samsung.com> | |
25 | + | |
26 | + * config/isl.m4: Add comments about isl-0.16. | |
27 | + * configure: Regenerate. | |
28 | + | |
1 | 29 | 2016-01-12 H.J. Lu <hongjiu.lu@intel.com> |
2 | 30 | |
3 | 31 | Sync with GCC |
@@ -3,7 +3,8 @@ | ||
3 | 3 | # |
4 | 4 | # Makefile for directory with subdirs to build. |
5 | 5 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
6 | -# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | |
6 | +# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | |
7 | +# 2011, 2012, 2013, 2014, 2015, 2016 | |
7 | 8 | # Free Software Foundation |
8 | 9 | # |
9 | 10 | # This file is free software; you can redistribute it and/or modify |
@@ -222,6 +223,7 @@ HOST_EXPORTS = \ | ||
222 | 223 | GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
223 | 224 | ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \ |
224 | 225 | ISLINC="$(HOST_ISLINC)"; export ISLINC; \ |
226 | + ISLVER="$(HOST_ISLVER)"; export ISLVER; \ | |
225 | 227 | LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \ |
226 | 228 | LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \ |
227 | 229 | XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \ |
@@ -315,6 +317,7 @@ HOST_GMPINC = @gmpinc@ | ||
315 | 317 | # Where to find isl |
316 | 318 | HOST_ISLLIBS = @isllibs@ |
317 | 319 | HOST_ISLINC = @islinc@ |
320 | +HOST_ISLVER = @islver@ | |
318 | 321 | |
319 | 322 | # Where to find libelf |
320 | 323 | HOST_LIBELFLIBS = @libelflibs@ |
@@ -789,7 +792,8 @@ BASE_FLAGS_TO_PASS = \ | ||
789 | 792 | $(CXX_FOR_TARGET_FLAG_TO_PASS) \ |
790 | 793 | "TFLAGS=$(TFLAGS)" \ |
791 | 794 | "CONFIG_SHELL=$(SHELL)" \ |
792 | - "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" | |
795 | + "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
796 | + $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)") | |
793 | 797 | |
794 | 798 | # We leave this in just in case, but it is not needed anymore. |
795 | 799 | RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) |
@@ -6,7 +6,8 @@ in | ||
6 | 6 | # |
7 | 7 | # Makefile for directory with subdirs to build. |
8 | 8 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
9 | -# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | |
9 | +# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | |
10 | +# 2011, 2012, 2013, 2014, 2015, 2016 | |
10 | 11 | # Free Software Foundation |
11 | 12 | # |
12 | 13 | # This file is free software; you can redistribute it and/or modify |
@@ -225,6 +226,7 @@ HOST_EXPORTS = \ | ||
225 | 226 | GMPINC="$(HOST_GMPINC)"; export GMPINC; \ |
226 | 227 | ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \ |
227 | 228 | ISLINC="$(HOST_ISLINC)"; export ISLINC; \ |
229 | + ISLVER="$(HOST_ISLVER)"; export ISLVER; \ | |
228 | 230 | LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \ |
229 | 231 | LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \ |
230 | 232 | XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \ |
@@ -318,6 +320,7 @@ HOST_GMPINC = @gmpinc@ | ||
318 | 320 | # Where to find isl |
319 | 321 | HOST_ISLLIBS = @isllibs@ |
320 | 322 | HOST_ISLINC = @islinc@ |
323 | +HOST_ISLVER = @islver@ | |
321 | 324 | |
322 | 325 | # Where to find libelf |
323 | 326 | HOST_LIBELFLIBS = @libelflibs@ |
@@ -590,7 +593,8 @@ BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \ | ||
590 | 593 | $(CXX_FOR_TARGET_FLAG_TO_PASS) \ |
591 | 594 | "TFLAGS=$(TFLAGS)" \ |
592 | 595 | "CONFIG_SHELL=$(SHELL)" \ |
593 | - "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" | |
596 | + "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
597 | + $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)") | |
594 | 598 | |
595 | 599 | # We leave this in just in case, but it is not needed anymore. |
596 | 600 | RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) |
@@ -106,7 +106,7 @@ AC_DEFUN([ISL_CHECK_VERSION], | ||
106 | 106 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
107 | 107 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" |
108 | 108 | |
109 | - AC_MSG_CHECKING([for isl 0.15 (or deprecated 0.14)]) | |
109 | + AC_MSG_CHECKING([for isl 0.16, 0.15, or deprecated 0.14]) | |
110 | 110 | AC_TRY_LINK([#include <isl/ctx.h>], |
111 | 111 | [isl_ctx_get_max_operations (isl_ctx_alloc ());], |
112 | 112 | [gcc_cv_isl=yes], |
@@ -114,7 +114,19 @@ AC_DEFUN([ISL_CHECK_VERSION], | ||
114 | 114 | AC_MSG_RESULT([$gcc_cv_isl]) |
115 | 115 | |
116 | 116 | if test "${gcc_cv_isl}" = no ; then |
117 | - AC_MSG_RESULT([recommended isl version is 0.15, minimum required isl version 0.14 is deprecated]) | |
117 | + AC_MSG_RESULT([recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated]) | |
118 | + fi | |
119 | + | |
120 | + AC_MSG_CHECKING([for isl 0.16 or 0.15]) | |
121 | + AC_TRY_LINK([#include <isl/schedule.h>], | |
122 | + [isl_options_set_schedule_serialize_sccs (NULL, 0);], | |
123 | + [ac_has_isl_options_set_schedule_serialize_sccs=yes], | |
124 | + [ac_has_isl_options_set_schedule_serialize_sccs=no]) | |
125 | + AC_MSG_RESULT($ac_has_isl_options_set_schedule_serialize_sccs) | |
126 | + | |
127 | + if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
128 | + islver="0.15" | |
129 | + AC_SUBST([islver]) | |
118 | 130 | fi |
119 | 131 | |
120 | 132 | CFLAGS=$_isl_saved_CFLAGS |
@@ -650,6 +650,7 @@ extra_linker_plugin_flags | ||
650 | 650 | extra_linker_plugin_configure_flags |
651 | 651 | islinc |
652 | 652 | isllibs |
653 | +islver | |
653 | 654 | poststage1_ldflags |
654 | 655 | poststage1_libs |
655 | 656 | stage1_ldflags |
@@ -6020,8 +6021,8 @@ $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | ||
6020 | 6021 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6021 | 6022 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" |
6022 | 6023 | |
6023 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 (or deprecated 0.14)" >&5 | |
6024 | -$as_echo_n "checking for isl 0.15 (or deprecated 0.14)... " >&6; } | |
6024 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 | |
6025 | +$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
6025 | 6026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6026 | 6027 | /* end confdefs.h. */ |
6027 | 6028 | #include <isl/ctx.h> |
@@ -6044,8 +6045,36 @@ rm -f core conftest.err conftest.$ac_objext \ | ||
6044 | 6045 | $as_echo "$gcc_cv_isl" >&6; } |
6045 | 6046 | |
6046 | 6047 | if test "${gcc_cv_isl}" = no ; then |
6047 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.15, minimum required isl version 0.14 is deprecated" >&5 | |
6048 | -$as_echo "recommended isl version is 0.15, minimum required isl version 0.14 is deprecated" >&6; } | |
6048 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 | |
6049 | +$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
6050 | + fi | |
6051 | + | |
6052 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 | |
6053 | +$as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
6054 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6055 | +/* end confdefs.h. */ | |
6056 | +#include <isl/schedule.h> | |
6057 | +int | |
6058 | +main () | |
6059 | +{ | |
6060 | +isl_options_set_schedule_serialize_sccs (NULL, 0); | |
6061 | + ; | |
6062 | + return 0; | |
6063 | +} | |
6064 | +_ACEOF | |
6065 | +if ac_fn_c_try_link "$LINENO"; then : | |
6066 | + ac_has_isl_options_set_schedule_serialize_sccs=yes | |
6067 | +else | |
6068 | + ac_has_isl_options_set_schedule_serialize_sccs=no | |
6069 | +fi | |
6070 | +rm -f core conftest.err conftest.$ac_objext \ | |
6071 | + conftest$ac_exeext conftest.$ac_ext | |
6072 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
6073 | +$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
6074 | + | |
6075 | + if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
6076 | + islver="0.15" | |
6077 | + | |
6049 | 6078 | fi |
6050 | 6079 | |
6051 | 6080 | CFLAGS=$_isl_saved_CFLAGS |
@@ -6127,7 +6156,7 @@ if test $target_elf = yes; then : | ||
6127 | 6156 | else |
6128 | 6157 | if test x"$default_enable_lto" = x"yes" ; then |
6129 | 6158 | case $target in |
6130 | - *-apple-darwin9* | *-cygwin* | *-mingw*) ;; | |
6159 | + *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; | |
6131 | 6160 | # On other non-ELF platforms, LTO has yet to be validated. |
6132 | 6161 | *) enable_lto=no ;; |
6133 | 6162 | esac |
@@ -6138,7 +6167,7 @@ else | ||
6138 | 6167 | # warn during gcc/ subconfigure; unless you're bootstrapping with |
6139 | 6168 | # -flto it won't be needed until after installation anyway. |
6140 | 6169 | case $target in |
6141 | - *-cygwin* | *-mingw* | *-apple-darwin*) ;; | |
6170 | + *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; | |
6142 | 6171 | *) if test x"$enable_lto" = x"yes"; then |
6143 | 6172 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 |
6144 | 6173 | fi |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
2 | 2 | # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, |
3 | -# 2014, 2015 Free Software Foundation, Inc. | |
3 | +# 2014, 2015, 2016 Free Software Foundation, Inc. | |
4 | 4 | # |
5 | 5 | # This file is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU General Public License as published by |
@@ -1817,7 +1817,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always. | ||
1817 | 1817 | build_lto_plugin=yes |
1818 | 1818 | ],[if test x"$default_enable_lto" = x"yes" ; then |
1819 | 1819 | case $target in |
1820 | - *-apple-darwin9* | *-cygwin* | *-mingw*) ;; | |
1820 | + *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; | |
1821 | 1821 | # On other non-ELF platforms, LTO has yet to be validated. |
1822 | 1822 | *) enable_lto=no ;; |
1823 | 1823 | esac |
@@ -1828,7 +1828,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always. | ||
1828 | 1828 | # warn during gcc/ subconfigure; unless you're bootstrapping with |
1829 | 1829 | # -flto it won't be needed until after installation anyway. |
1830 | 1830 | case $target in |
1831 | - *-cygwin* | *-mingw* | *-apple-darwin*) ;; | |
1831 | + *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; | |
1832 | 1832 | *) if test x"$enable_lto" = x"yes"; then |
1833 | 1833 | AC_MSG_ERROR([LTO support is not enabled for this target.]) |
1834 | 1834 | fi |