• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision52cf9762c53f5de7070a3951a3a6156082839d35 (tree)
Zeit2016-02-10 19:54:29
AutorNick Clifton <nickc@redh...>
CommiterNick Clifton

Log Message

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.

Ändern Zusammenfassung

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
129 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
230
331 Sync with GCC
--- a/Makefile.in
+++ b/Makefile.in
@@ -3,7 +3,8 @@
33 #
44 # Makefile for directory with subdirs to build.
55 # 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
78 # Free Software Foundation
89 #
910 # This file is free software; you can redistribute it and/or modify
@@ -222,6 +223,7 @@ HOST_EXPORTS = \
222223 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
223224 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
224225 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
226+ ISLVER="$(HOST_ISLVER)"; export ISLVER; \
225227 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
226228 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
227229 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
@@ -315,6 +317,7 @@ HOST_GMPINC = @gmpinc@
315317 # Where to find isl
316318 HOST_ISLLIBS = @isllibs@
317319 HOST_ISLINC = @islinc@
320+HOST_ISLVER = @islver@
318321
319322 # Where to find libelf
320323 HOST_LIBELFLIBS = @libelflibs@
@@ -789,7 +792,8 @@ BASE_FLAGS_TO_PASS = \
789792 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
790793 "TFLAGS=$(TFLAGS)" \
791794 "CONFIG_SHELL=$(SHELL)" \
792- "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
795+ "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
796+ $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
793797
794798 # We leave this in just in case, but it is not needed anymore.
795799 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -6,7 +6,8 @@ in
66 #
77 # Makefile for directory with subdirs to build.
88 # 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
1011 # Free Software Foundation
1112 #
1213 # This file is free software; you can redistribute it and/or modify
@@ -225,6 +226,7 @@ HOST_EXPORTS = \
225226 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
226227 ISLLIBS="$(HOST_ISLLIBS)"; export ISLLIBS; \
227228 ISLINC="$(HOST_ISLINC)"; export ISLINC; \
229+ ISLVER="$(HOST_ISLVER)"; export ISLVER; \
228230 LIBELFLIBS="$(HOST_LIBELFLIBS)"; export LIBELFLIBS; \
229231 LIBELFINC="$(HOST_LIBELFINC)"; export LIBELFINC; \
230232 XGCC_FLAGS_FOR_TARGET="$(XGCC_FLAGS_FOR_TARGET)"; export XGCC_FLAGS_FOR_TARGET; \
@@ -318,6 +320,7 @@ HOST_GMPINC = @gmpinc@
318320 # Where to find isl
319321 HOST_ISLLIBS = @isllibs@
320322 HOST_ISLINC = @islinc@
323+HOST_ISLVER = @islver@
321324
322325 # Where to find libelf
323326 HOST_LIBELFLIBS = @libelflibs@
@@ -590,7 +593,8 @@ BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \
590593 $(CXX_FOR_TARGET_FLAG_TO_PASS) \
591594 "TFLAGS=$(TFLAGS)" \
592595 "CONFIG_SHELL=$(SHELL)" \
593- "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
596+ "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
597+ $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
594598
595599 # We leave this in just in case, but it is not needed anymore.
596600 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
--- a/config/isl.m4
+++ b/config/isl.m4
@@ -106,7 +106,7 @@ AC_DEFUN([ISL_CHECK_VERSION],
106106 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
107107 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
108108
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])
110110 AC_TRY_LINK([#include <isl/ctx.h>],
111111 [isl_ctx_get_max_operations (isl_ctx_alloc ());],
112112 [gcc_cv_isl=yes],
@@ -114,7 +114,19 @@ AC_DEFUN([ISL_CHECK_VERSION],
114114 AC_MSG_RESULT([$gcc_cv_isl])
115115
116116 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])
118130 fi
119131
120132 CFLAGS=$_isl_saved_CFLAGS
--- a/configure
+++ b/configure
@@ -650,6 +650,7 @@ extra_linker_plugin_flags
650650 extra_linker_plugin_configure_flags
651651 islinc
652652 isllibs
653+islver
653654 poststage1_ldflags
654655 poststage1_libs
655656 stage1_ldflags
@@ -6020,8 +6021,8 @@ $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
60206021 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
60216022 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
60226023
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; }
60256026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60266027 /* end confdefs.h. */
60276028 #include <isl/ctx.h>
@@ -6044,8 +6045,36 @@ rm -f core conftest.err conftest.$ac_objext \
60446045 $as_echo "$gcc_cv_isl" >&6; }
60456046
60466047 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+
60496078 fi
60506079
60516080 CFLAGS=$_isl_saved_CFLAGS
@@ -6127,7 +6156,7 @@ if test $target_elf = yes; then :
61276156 else
61286157 if test x"$default_enable_lto" = x"yes" ; then
61296158 case $target in
6130- *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6159+ *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
61316160 # On other non-ELF platforms, LTO has yet to be validated.
61326161 *) enable_lto=no ;;
61336162 esac
@@ -6138,7 +6167,7 @@ else
61386167 # warn during gcc/ subconfigure; unless you're bootstrapping with
61396168 # -flto it won't be needed until after installation anyway.
61406169 case $target in
6141- *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6170+ *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
61426171 *) if test x"$enable_lto" = x"yes"; then
61436172 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
61446173 fi
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
11 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
22 # 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.
44 #
55 # This file is free software; you can redistribute it and/or modify it
66 # 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.
18171817 build_lto_plugin=yes
18181818 ],[if test x"$default_enable_lto" = x"yes" ; then
18191819 case $target in
1820- *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
1820+ *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
18211821 # On other non-ELF platforms, LTO has yet to be validated.
18221822 *) enable_lto=no ;;
18231823 esac
@@ -1828,7 +1828,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always.
18281828 # warn during gcc/ subconfigure; unless you're bootstrapping with
18291829 # -flto it won't be needed until after installation anyway.
18301830 case $target in
1831- *-cygwin* | *-mingw* | *-apple-darwin*) ;;
1831+ *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
18321832 *) if test x"$enable_lto" = x"yes"; then
18331833 AC_MSG_ERROR([LTO support is not enabled for this target.])
18341834 fi