This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix PR bootstrap/21230
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 May 2005 14:25:05 +0200
- Subject: Fix PR bootstrap/21230
GCC cannot be bootstrapped on Solaris 10 with the Sun Studio compiler because
of a glitch in libcpp/configure:
...
<snip>
...
checking whether cc supports -Wold-style-definition... no
/tmp/z/gcc-4.0.0/libcpp/configure: test: argument expected
make[1]: Entering directory `/tmp/z/gcc-b400/libiberty'
...
<snip>
...
make[1]: Leaving directory `/tmp/z/gcc-b400/libiberty'
make[1]: Entering directory `/tmp/z/gcc-b400/libcpp'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/tmp/z/gcc-b400/libcpp'
make: *** [all-libcpp] Error 2
%
Fixed thusly, bootstrapped/regtested on sparc-sun-solaris2.10, applied to
mainline and 4.0 as obvious.
2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
config/
PR bootstrap/21230
* warnings.m4 (ACX_PROG_CC_WARNING_ALMOST_PEDANTIC): Add
doubles quotes around GCC variable.
libcpp/
PR bootstrap/21230
* configure: Regenerate.
--
Eric Botcazou
Index: config/warnings.m4
===================================================================
RCS file: /cvs/gcc/gcc/config/warnings.m4,v
retrieving revision 1.2
diff -u -r1.2 warnings.m4
--- config/warnings.m4 23 Jan 2005 19:21:24 -0000 1.2
+++ config/warnings.m4 12 May 2005 04:34:50 -0000
@@ -50,7 +50,7 @@
AC_SUBST([WARN_PEDANTIC])dnl
AS_VAR_PUSHDEF([acx_Pedantic], [acx_cv_prog_cc_pedantic_$1])dnl
WARN_PEDANTIC=
-AS_IF([test $GCC = yes],
+AS_IF([test "$GCC" = yes],
[AC_CACHE_CHECK([whether $CC supports -pedantic $1], acx_Pedantic,
[save_CFLAGS="$CFLAGS"
CFLAGS="-pedantic $1"
Index: libcpp/configure
===================================================================
RCS file: /cvs/gcc/gcc/libcpp/configure,v
retrieving revision 1.13.6.2
diff -u -r1.13.6.2 configure
--- libcpp/configure 24 Apr 2005 22:54:11 -0000 1.13.6.2
+++ libcpp/configure 12 May 2005 04:34:51 -0000
@@ -2757,7 +2757,7 @@
CFLAGS="$save_CFLAGS"
WARN_PEDANTIC=
-if test $GCC = yes; then
+if test "$GCC" = yes; then
echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5
echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6
if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then