• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

GNU Binutils with patches for OS216


コミットメタ情報

リビジョン49d00f48e8e3c1331d367785f19c69867a47b4cd (tree)
日時2015-07-15 01:18:16
作者H.J. Lu <hjl.tools@gmai...>
コミッターH.J. Lu

ログメッセージ

Sync config files with GCC

Sync with GCC
2015-05-13 Eric Botcazou <ebotcazou@adacore.com>

* sjlj.m4: New file.

2015-05-04 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

* bitfields.m4: Change int to long long, and use bitfields of
width 1 instead of 0.

2015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

* bitfields.m4: New file.

2015-04-14 H.J. Lu <hongjiu.lu@intel.com>

* bootstrap-mpx.mk: New file.

2015-03-25 Uros Bizjak <ubizjak@gmail.com>

PR bootstrap/65537
* bootstrap-lto-noplugin.mk: New build configuration.

2014-11-13 Kirill Yukhin <kirill.yukhin@intel.com>

* target-posix: New file.

2014-10-27 Tom Tromey <tromey@redhat.com>

* gcc-plugin.m4: New file.

変更サマリ

差分

--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,6 +1,39 @@
11 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
22
33 Sync with GCC
4+ 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
5+
6+ * sjlj.m4: New file.
7+
8+ 2015-05-04 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9+
10+ * bitfields.m4: Change int to long long, and use bitfields of
11+ width 1 instead of 0.
12+
13+ 2015-05-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14+
15+ * bitfields.m4: New file.
16+
17+ 2015-04-14 H.J. Lu <hongjiu.lu@intel.com>
18+
19+ * bootstrap-mpx.mk: New file.
20+
21+ 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
22+
23+ PR bootstrap/65537
24+ * bootstrap-lto-noplugin.mk: New build configuration.
25+
26+ 2014-11-13 Kirill Yukhin <kirill.yukhin@intel.com>
27+
28+ * target-posix: New file.
29+
30+ 2014-10-27 Tom Tromey <tromey@redhat.com>
31+
32+ * gcc-plugin.m4: New file.
33+
34+2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
35+
36+ Sync with GCC
437 2015-05-27 Jason Merrill <jason@redhat.com>
538
639 PR bootstrap/66304
--- /dev/null
+++ b/config/bitfields.m4
@@ -0,0 +1,25 @@
1+dnl Copyright (C) 2015 Free Software Foundation, Inc.
2+dnl This file is free software, distributed under the terms of the GNU
3+dnl General Public License. As a special exception to the GNU General
4+dnl Public License, this file may be distributed as part of a program
5+dnl that contains a configuration script generated by Autoconf, under
6+dnl the same distribution terms as the rest of that program.
7+
8+# Define HAVE_BITFIELD_TYPE_MATTERS if the type of bitfields effects their
9+# alignment.
10+
11+AC_DEFUN([gt_BITFIELD_TYPE_MATTERS],
12+[
13+ AC_CACHE_CHECK([if the type of bitfields matters], gt_cv_bitfield_type_matters,
14+ [
15+ AC_TRY_COMPILE(
16+ [struct foo1 { char x; char y:1; char z; };
17+struct foo2 { char x; long long int y:1; char z; };
18+int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ]; ],
19+ [], gt_cv_bitfield_type_matters=yes, gt_cv_bitfield_type_matters=no)
20+ ])
21+ if test $gt_cv_bitfield_type_matters = yes; then
22+ AC_DEFINE(HAVE_BITFIELD_TYPE_MATTERS, 1,
23+ [Define if the type of bitfields effects alignment.])
24+ fi
25+])
--- /dev/null
+++ b/config/bootstrap-lto-noplugin.mk
@@ -0,0 +1,6 @@
1+# This option enables LTO for stage2 and stage3 on
2+# hosts without linker plugin support.
3+
4+STAGE2_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
5+STAGE3_CFLAGS += -flto=jobserver -frandom-seed=1 -ffat-lto-objects
6+STAGEprofile_CFLAGS += -fno-lto
--- /dev/null
+++ b/config/bootstrap-mpx.mk
@@ -0,0 +1,9 @@
1+# This option enables -fcheck-pointer-bounds -mmpx for stage2 and stage3.
2+
3+STAGE2_CFLAGS += -fcheck-pointer-bounds -mmpx -frandom-seed=1
4+STAGE3_CFLAGS += -fcheck-pointer-bounds -mmpx -frandom-seed=1
5+POSTSTAGE1_LDFLAGS += -fcheck-pointer-bounds -mmpx -frandom-seed=1 \
6+ -static-libmpx -static-libmpxwrappers \
7+ -B$$r/prev-$(TARGET_SUBDIR)/libmpx \
8+ -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxrt/.libs \
9+ -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxwrap/.libs
--- /dev/null
+++ b/config/gcc-plugin.m4
@@ -0,0 +1,113 @@
1+# gcc-plugin.m4 -*- Autoconf -*-
2+# Check whether GCC is able to be built with plugin support.
3+
4+dnl Copyright (C) 2014 Free Software Foundation, Inc.
5+dnl This file is free software, distributed under the terms of the GNU
6+dnl General Public License. As a special exception to the GNU General
7+dnl Public License, this file may be distributed as part of a program
8+dnl that contains a configuration script generated by Autoconf, under
9+dnl the same distribution terms as the rest of that program.
10+
11+# Check for plugin support.
12+# Respects --enable-plugin.
13+# Sets the shell variables enable_plugin and pluginlibs.
14+AC_DEFUN([GCC_ENABLE_PLUGINS],
15+ [# Check for plugin support
16+ AC_ARG_ENABLE(plugin,
17+ [AS_HELP_STRING([--enable-plugin], [enable plugin support])],
18+ enable_plugin=$enableval,
19+ enable_plugin=yes; default_plugin=yes)
20+
21+ pluginlibs=
22+
23+ case "${host}" in
24+ *-*-darwin*)
25+ if test x$build = x$host; then
26+ export_sym_check="nm${exeext} -g"
27+ elif test x$host = x$target; then
28+ export_sym_check="$gcc_cv_nm -g"
29+ else
30+ export_sym_check=
31+ fi
32+ ;;
33+ *)
34+ if test x$build = x$host; then
35+ export_sym_check="objdump${exeext} -T"
36+ elif test x$host = x$target; then
37+ export_sym_check="$gcc_cv_objdump -T"
38+ else
39+ export_sym_check=
40+ fi
41+ ;;
42+ esac
43+
44+ if test x"$enable_plugin" = x"yes"; then
45+
46+ AC_MSG_CHECKING([for exported symbols])
47+ if test "x$export_sym_check" != x; then
48+ echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
49+ ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
50+ if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
51+ : # No need to use a flag
52+ AC_MSG_RESULT([yes])
53+ else
54+ AC_MSG_RESULT([yes])
55+ AC_MSG_CHECKING([for -rdynamic])
56+ ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
57+ if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
58+ plugin_rdynamic=yes
59+ pluginlibs="-rdynamic"
60+ else
61+ plugin_rdynamic=no
62+ enable_plugin=no
63+ fi
64+ AC_MSG_RESULT([$plugin_rdynamic])
65+ fi
66+ else
67+ AC_MSG_RESULT([unable to check])
68+ fi
69+
70+ # Check -ldl
71+ saved_LIBS="$LIBS"
72+ AC_SEARCH_LIBS([dlopen], [dl])
73+ if test x"$ac_cv_search_dlopen" = x"-ldl"; then
74+ pluginlibs="$pluginlibs -ldl"
75+ fi
76+ LIBS="$saved_LIBS"
77+
78+ # Check that we can build shared objects with -fPIC -shared
79+ saved_LDFLAGS="$LDFLAGS"
80+ saved_CFLAGS="$CFLAGS"
81+ case "${host}" in
82+ *-*-darwin*)
83+ CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
84+ CFLAGS="$CFLAGS -fPIC"
85+ LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
86+ ;;
87+ *)
88+ CFLAGS="$CFLAGS -fPIC"
89+ LDFLAGS="$LDFLAGS -fPIC -shared"
90+ ;;
91+ esac
92+ AC_MSG_CHECKING([for -fPIC -shared])
93+ AC_TRY_LINK(
94+ [extern int X;],[return X == 0;],
95+ [AC_MSG_RESULT([yes]); have_pic_shared=yes],
96+ [AC_MSG_RESULT([no]); have_pic_shared=no])
97+ if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
98+ pluginlibs=
99+ enable_plugin=no
100+ fi
101+ LDFLAGS="$saved_LDFLAGS"
102+ CFLAGS="$saved_CFLAGS"
103+
104+ # If plugin support had been requested but not available, fail.
105+ if test x"$enable_plugin" = x"no" ; then
106+ if test x"$default_plugin" != x"yes"; then
107+ AC_MSG_ERROR([
108+ Building GCC with plugin support requires a host that supports
109+ -fPIC, -shared, -ldl and -rdynamic.])
110+ fi
111+ fi
112+ fi
113+])
--- /dev/null
+++ b/config/sjlj.m4
@@ -0,0 +1,12 @@
1+dnl Check if the compiler is configured for setjmp/longjmp exceptions.
2+AC_DEFUN([GCC_CHECK_SJLJ_EXCEPTIONS],
3+ [AC_CACHE_CHECK([whether the compiler is configured for setjmp/longjmp exceptions],
4+ ac_cv_sjlj_exceptions,
5+ [AC_COMPILE_IFELSE(
6+ [AC_LANG_PROGRAM(
7+ [[#ifdef __USING_SJLJ_EXCEPTIONS__
8+ this will fail
9+ #endif]],
10+ [[int i;]])],
11+ [ac_cv_sjlj_exceptions=no],
12+ [ac_cv_sjlj_exceptions=yes])])])
--- /dev/null
+++ b/config/target-posix
@@ -0,0 +1,12 @@
1+case "${target}" in
2+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3+ ;;
4+ *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
5+ ;;
6+ *-*-solaris2* | *-*-hpux11*)
7+ ;;
8+ *-*-darwin* | *-*-aix*)
9+ ;;
10+ *)
11+ UNSUPPORTED=1 ;;
12+ esac