• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Révision8a643cc36cf121de3a9131f95547eba927413710 (tree)
l'heure2015-07-15 00:39:12
AuteurH.J. Lu <hjl.tools@gmai...>
CommiterH.J. Lu

Message de Log

Sync config/warnings.m4 with GCC

config/

Sync with GCC
2015-05-27 Jason Merrill <jason@redhat.com>

PR bootstrap/66304
* warnings.m4 (ACX_PROG_CXX_WARNING_OPTS)
(ACX_PROG_CXX_WARNINGS_ARE_ERRORS)
(ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC): New.
(ACX_PROG_CC_WARNING_OPTS, ACX_PROG_CC_WARNING_ALMOST_PEDANTIC)
(ACX_PROG_CC_WARNINGS_ARE_ERRORS): Push into C language context.

libdecnumber/

* configure: Regenerated.

libiberty/

* configure: Regenerated.

opcodes/

* configure: Regenerated.

Change Summary

Modification

--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,6 +1,18 @@
11 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
22
33 Sync with GCC
4+ 2015-05-27 Jason Merrill <jason@redhat.com>
5+
6+ PR bootstrap/66304
7+ * warnings.m4 (ACX_PROG_CXX_WARNING_OPTS)
8+ (ACX_PROG_CXX_WARNINGS_ARE_ERRORS)
9+ (ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC): New.
10+ (ACX_PROG_CC_WARNING_OPTS, ACX_PROG_CC_WARNING_ALMOST_PEDANTIC)
11+ (ACX_PROG_CC_WARNINGS_ARE_ERRORS): Push into C language context.
12+
13+2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14+
15+ Sync with GCC
416 * mh-alpha-linux: Restored.
517
618 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
--- a/config/warnings.m4
+++ b/config/warnings.m4
@@ -18,11 +18,12 @@
1818 #along with GCC; see the file COPYING3. If not see
1919 #<http://www.gnu.org/licenses/>.
2020
21-# ACX_PROG_CC_WARNING_OPTS(WARNINGS, [VARIABLE = WARN_CFLAGS)
21+# ACX_PROG_CC_WARNING_OPTS(WARNINGS, [VARIABLE = WARN_CFLAGS])
2222 # Sets @VARIABLE@ to the subset of the given options which the
2323 # compiler accepts.
2424 AC_DEFUN([ACX_PROG_CC_WARNING_OPTS],
2525 [AC_REQUIRE([AC_PROG_CC])dnl
26+AC_LANG_PUSH(C)
2627 m4_pushdef([acx_Var], [m4_default([$2], [WARN_CFLAGS])])dnl
2728 AC_SUBST(acx_Var)dnl
2829 m4_expand_once([acx_Var=
@@ -48,6 +49,7 @@ for real_option in $1; do
4849 done
4950 CFLAGS="$save_CFLAGS"
5051 m4_popdef([acx_Var])dnl
52+AC_LANG_POP(C)
5153 ])# ACX_PROG_CC_WARNING_OPTS
5254
5355 # ACX_PROG_CC_WARNING_ALMOST_PEDANTIC(WARNINGS, [VARIABLE = WARN_PEDANTIC])
@@ -55,6 +57,7 @@ m4_popdef([acx_Var])dnl
5557 # and accepts all of those options simultaneously, otherwise to nothing.
5658 AC_DEFUN([ACX_PROG_CC_WARNING_ALMOST_PEDANTIC],
5759 [AC_REQUIRE([AC_PROG_CC])dnl
60+AC_LANG_PUSH(C)
5861 m4_pushdef([acx_Var], [m4_default([$2], [WARN_PEDANTIC])])dnl
5962 AC_SUBST(acx_Var)dnl
6063 m4_expand_once([acx_Var=
@@ -77,6 +80,7 @@ AS_IF([test AS_VAR_GET(acx_Pedantic) = yes],
7780 AS_VAR_POPDEF([acx_Pedantic])dnl
7881 m4_popdef([acx_Woptions])dnl
7982 m4_popdef([acx_Var])dnl
83+AC_LANG_POP(C)
8084 ])# ACX_PROG_CC_WARNING_ALMOST_PEDANTIC
8185
8286 # ACX_PROG_CC_WARNINGS_ARE_ERRORS([x.y.z], [VARIABLE = WERROR])
@@ -88,6 +92,7 @@ m4_popdef([acx_Var])dnl
8892 # appeared on the configure command line.
8993 AC_DEFUN([ACX_PROG_CC_WARNINGS_ARE_ERRORS],
9094 [AC_REQUIRE([AC_PROG_CC])dnl
95+AC_LANG_PUSH(C)
9196 m4_pushdef([acx_Var], [m4_default([$2], [WERROR])])dnl
9297 AC_SUBST(acx_Var)dnl
9398 m4_expand_once([acx_Var=
@@ -114,4 +119,109 @@ AS_IF([test $enable_werror_always = yes],
114119 [acx_Var="$acx_Var${acx_Var:+ }-Werror"])
115120 AS_VAR_POPDEF([acx_GCCvers])])
116121 m4_popdef([acx_Var])dnl
122+AC_LANG_POP(C)
117123 ])# ACX_PROG_CC_WARNINGS_ARE_ERRORS
124+
125+# ACX_PROG_CXX_WARNING_OPTS(WARNINGS, [VARIABLE = WARN_CXXFLAGS])
126+# Sets @VARIABLE@ to the subset of the given options which the
127+# compiler accepts.
128+AC_DEFUN([ACX_PROG_CXX_WARNING_OPTS],
129+[AC_REQUIRE([AC_PROG_CXX])dnl
130+AC_LANG_PUSH(C++)
131+m4_pushdef([acx_Var], [m4_default([$2], [WARN_CXXFLAGS])])dnl
132+AC_SUBST(acx_Var)dnl
133+m4_expand_once([acx_Var=
134+],m4_quote(acx_Var=))dnl
135+save_CXXFLAGS="$CXXFLAGS"
136+for real_option in $1; do
137+ # Do the check with the no- prefix removed since gcc silently
138+ # accepts any -Wno-* option on purpose
139+ case $real_option in
140+ -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
141+ *) option=$real_option ;;
142+ esac
143+ AS_VAR_PUSHDEF([acx_Woption], [acx_cv_prog_cc_warning_$option])
144+ AC_CACHE_CHECK([whether $CXX supports $option], acx_Woption,
145+ [CXXFLAGS="$option"
146+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
147+ [AS_VAR_SET(acx_Woption, yes)],
148+ [AS_VAR_SET(acx_Woption, no)])
149+ ])
150+ AS_IF([test AS_VAR_GET(acx_Woption) = yes],
151+ [acx_Var="$acx_Var${acx_Var:+ }$real_option"])
152+ AS_VAR_POPDEF([acx_Woption])dnl
153+done
154+CXXFLAGS="$save_CXXFLAGS"
155+m4_popdef([acx_Var])dnl
156+AC_LANG_POP(C++)
157+])# ACX_PROG_CXX_WARNING_OPTS
158+
159+# ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC(WARNINGS, [VARIABLE = WARN_PEDANTIC])
160+# Append to VARIABLE "-pedantic" + the argument, if the compiler is G++
161+# and accepts all of those options simultaneously, otherwise to nothing.
162+AC_DEFUN([ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC],
163+[AC_REQUIRE([AC_PROG_CXX])dnl
164+AC_LANG_PUSH(C++)
165+m4_pushdef([acx_Var], [m4_default([$2], [WARN_PEDANTIC])])dnl
166+AC_SUBST(acx_Var)dnl
167+m4_expand_once([acx_Var=
168+],m4_quote(acx_Var=))dnl
169+# Do the check with the no- prefix removed from the warning options
170+# since gcc silently accepts any -Wno-* option on purpose
171+m4_pushdef([acx_Woptions], [m4_bpatsubst([$1], [-Wno-], [-W])])dnl
172+AS_VAR_PUSHDEF([acx_Pedantic], [acx_cv_prog_cc_pedantic_]acx_Woptions)dnl
173+AS_IF([test "$GXX" = yes],
174+[AC_CACHE_CHECK([whether $CXX supports -pedantic ]acx_Woptions, acx_Pedantic,
175+[save_CXXFLAGS="$CXXFLAGS"
176+CXXFLAGS="-pedantic acx_Woptions"
177+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
178+ [AS_VAR_SET(acx_Pedantic, yes)],
179+ [AS_VAR_SET(acx_Pedantic, no)])
180+CXXFLAGS="$save_CXXFLAGS"])
181+AS_IF([test AS_VAR_GET(acx_Pedantic) = yes],
182+ [acx_Var="$acx_Var${acx_Var:+ }-pedantic $1"])
183+])
184+AS_VAR_POPDEF([acx_Pedantic])dnl
185+m4_popdef([acx_Woptions])dnl
186+m4_popdef([acx_Var])dnl
187+AC_LANG_POP(C++)
188+])# ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC
189+
190+# ACX_PROG_CXX_WARNINGS_ARE_ERRORS([x.y.z], [VARIABLE = WERROR])
191+# sets @VARIABLE@ to "-Werror" if the compiler is G++ >=x.y.z, or if
192+# --enable-werror-always was given on the command line, otherwise
193+# to nothing.
194+# If the argument is the word "manual" instead of a version number,
195+# then @VARIABLE@ will be set to -Werror only if --enable-werror-always
196+# appeared on the configure command line.
197+AC_DEFUN([ACX_PROG_CXX_WARNINGS_ARE_ERRORS],
198+[AC_REQUIRE([AC_PROG_CXX])dnl
199+AC_LANG_PUSH(C++)
200+m4_pushdef([acx_Var], [m4_default([$2], [WERROR])])dnl
201+AC_SUBST(acx_Var)dnl
202+m4_expand_once([acx_Var=
203+],m4_quote(acx_Var=))dnl
204+AC_ARG_ENABLE(werror-always,
205+ AS_HELP_STRING([--enable-werror-always],
206+ [enable -Werror despite compiler version]),
207+[], [enable_werror_always=no])
208+AS_IF([test $enable_werror_always = yes],
209+ [acx_Var="$acx_Var${acx_Var:+ }-Werror"])
210+ m4_if($1, [manual],,
211+ [AS_VAR_PUSHDEF([acx_GXXvers], [acx_cv_prog_cxx_gxx_$1_or_newer])dnl
212+ AC_CACHE_CHECK([whether $CXX is G++ >=$1], acx_GXXvers,
213+ [set fnord `echo $1 | tr '.' ' '`
214+ shift
215+ AC_PREPROC_IFELSE(
216+[#if __GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ \
217+ < [$]1 * 10000 + [$]2 * 100 + [$]3
218+#error insufficient
219+#endif],
220+ [AS_VAR_SET(acx_GXXvers, yes)],
221+ [AS_VAR_SET(acx_GXXvers, no)])])
222+ AS_IF([test AS_VAR_GET(acx_GXXvers) = yes],
223+ [acx_Var="$acx_Var${acx_Var:+ }-Werror"])
224+ AS_VAR_POPDEF([acx_GXXvers])])
225+m4_popdef([acx_Var])dnl
226+AC_LANG_POP(C++)
227+])# ACX_PROG_CXX_WARNINGS_ARE_ERRORS
--- a/libdecnumber/ChangeLog
+++ b/libdecnumber/ChangeLog
@@ -1,3 +1,7 @@
1+2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
2+
3+ * configure: Regenerated.
4+
15 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
26
37 * configure: Regenerated.
--- a/libdecnumber/configure
+++ b/libdecnumber/configure
@@ -3272,6 +3272,12 @@ test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
32723272 # See config/warnings.m4 for details.
32733273
32743274
3275+ac_ext=c
3276+ac_cpp='$CPP $CPPFLAGS'
3277+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280+
32753281 WARN_CFLAGS=
32763282 save_CFLAGS="$CFLAGS"
32773283 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
@@ -3318,6 +3324,18 @@ $as_echo "$ac_res" >&6; }
33183324 fi
33193325 done
33203326 CFLAGS="$save_CFLAGS"
3327+ac_ext=c
3328+ac_cpp='$CPP $CPPFLAGS'
3329+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332+
3333+
3334+ac_ext=c
3335+ac_cpp='$CPP $CPPFLAGS'
3336+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338+ac_compiler_gnu=$ac_cv_c_compiler_gnu
33213339
33223340 WARN_PEDANTIC=
33233341 # Do the check with the no- prefix removed from the warning options
@@ -3356,10 +3374,22 @@ if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
33563374 fi
33573375
33583376 fi
3377+ac_ext=c
3378+ac_cpp='$CPP $CPPFLAGS'
3379+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382+
33593383
33603384
33613385 # Only enable with --enable-werror-always until existing warnings are
33623386 # corrected.
3387+ac_ext=c
3388+ac_cpp='$CPP $CPPFLAGS'
3389+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392+
33633393 WERROR=
33643394 # Check whether --enable-werror-always was given.
33653395 if test "${enable_werror_always+set}" = set; then :
@@ -3372,6 +3402,12 @@ if test $enable_werror_always = yes; then :
33723402 WERROR="$WERROR${WERROR:+ }-Werror"
33733403 fi
33743404
3405+ac_ext=c
3406+ac_cpp='$CPP $CPPFLAGS'
3407+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409+ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410+
33753411
33763412
33773413 # Checks for header files.
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
1+2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
2+
3+ * configure: Regenerated.
4+
15 2015-06-01 Jason Merrill <jason@redhat.com>
26
37 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -4389,6 +4389,12 @@ fi
43894389
43904390 ac_c_preproc_warn_flag=yes
43914391
4392+ac_ext=c
4393+ac_cpp='$CPP $CPPFLAGS'
4394+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396+ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397+
43924398 ac_libiberty_warn_cflags=
43934399 save_CFLAGS="$CFLAGS"
43944400 for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
@@ -4434,6 +4440,18 @@ $as_echo "$ac_res" >&6; }
44344440 fi
44354441 done
44364442 CFLAGS="$save_CFLAGS"
4443+ac_ext=c
4444+ac_cpp='$CPP $CPPFLAGS'
4445+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447+ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448+
4449+
4450+ac_ext=c
4451+ac_cpp='$CPP $CPPFLAGS'
4452+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454+ac_compiler_gnu=$ac_cv_c_compiler_gnu
44374455
44384456 # Do the check with the no- prefix removed from the warning options
44394457 # since gcc silently accepts any -Wno-* option on purpose
@@ -4471,6 +4489,12 @@ if test $acx_cv_prog_cc_pedantic_ = yes; then :
44714489 fi
44724490
44734491 fi
4492+ac_ext=c
4493+ac_cpp='$CPP $CPPFLAGS'
4494+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496+ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497+
44744498
44754499
44764500 if test "x$CC" != xcc; then
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
1+2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
2+
3+ * configure: Regenerated.
4+
15 2015-07-03 Alan Modra <amodra@gmail.com>
26
37 * ppc-opc.c (PPC750, PPC7450, PPC860): Define using PPC_OPCODE_*.
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -11576,6 +11576,12 @@ fi
1157611576
1157711577
1157811578
11579+ac_ext=c
11580+ac_cpp='$CPP $CPPFLAGS'
11581+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11582+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11583+ac_compiler_gnu=$ac_cv_c_compiler_gnu
11584+
1157911585 NO_WMISSING_FIELD_INITIALIZERS=
1158011586 save_CFLAGS="$CFLAGS"
1158111587 for real_option in -Wno-missing-field-initializers; do
@@ -11620,6 +11626,12 @@ $as_echo "$ac_res" >&6; }
1162011626 fi
1162111627 done
1162211628 CFLAGS="$save_CFLAGS"
11629+ac_ext=c
11630+ac_cpp='$CPP $CPPFLAGS'
11631+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11632+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11633+ac_compiler_gnu=$ac_cv_c_compiler_gnu
11634+
1162311635
1162411636
1162511637 ac_config_headers="$ac_config_headers config.h:config.in"