configure.in: Check for -Wno-long-long option support and improve handling of warning CFLAGS...
* configure.in: Check for -Wno-long-long option support and improve handling of warning CFLAGS for stages 1 and 2. * Makefile.in (WARN_CFLAGS): Move definition to configure.in. * configure: Regenerate. From-SVN: r34156
This commit is contained in:
parent
9ea551b2b3
commit
ff5def207e
|
@ -1,3 +1,10 @@
|
|||
2000-05-24 J. David Anglin <dave@hiauly.hia.nrc.ca>
|
||||
|
||||
* configure.in: Check for -Wno-long-long option support and improve
|
||||
handling of warning CFLAGS for stages 1 and 2.
|
||||
* Makefile.in (WARN_CFLAGS): Move definition to configure.in.
|
||||
* configure: Regenerate.
|
||||
|
||||
Wed May 24 19:37:53 2000 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gcc.texi: Remove contributor list. Instead include contrib.texi.
|
||||
|
|
|
@ -76,7 +76,7 @@ XCFLAGS =
|
|||
TCFLAGS =
|
||||
CFLAGS = -g @stage1_warn_cflags@
|
||||
BOOT_CFLAGS = -O2 $(CFLAGS)
|
||||
WARN_CFLAGS = -W -Wall -Wtraditional -pedantic -Wno-long-long -Wwrite-strings
|
||||
WARN_CFLAGS = @stage2_warn_cflags@
|
||||
LOOSE_CFLAGS = `echo $(CFLAGS)|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'`
|
||||
# These exists to be overridden by the x-* and t-* files, respectively.
|
||||
X_CFLAGS =
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -329,15 +329,30 @@ AC_SUBST(NO_MINUS_C_MINUS_O)
|
|||
|
||||
gcc_AC_C_LONG_DOUBLE
|
||||
|
||||
AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
|
||||
echo 'void f(){}' > conftest.c
|
||||
if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
|
||||
ac_cv_prog_cc_no_long_long=yes
|
||||
else
|
||||
ac_cv_prog_cc_no_long_long=no
|
||||
fi
|
||||
rm -f conftest*
|
||||
echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
|
||||
|
||||
# If the native compiler is GCC, we can enable warnings even in stage1.
|
||||
# That's useful for people building cross-compilers, or just running a
|
||||
# quick `make'.
|
||||
stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings"
|
||||
stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
|
||||
if test "x$GCC" = "xyes"; then
|
||||
stage1_warn_cflags='$(WARN_CFLAGS)'
|
||||
if test $ac_cv_prog_cc_no_long_long = yes; then
|
||||
stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
|
||||
fi
|
||||
else
|
||||
stage1_warn_cflags=""
|
||||
fi
|
||||
AC_SUBST(stage1_warn_cflags)
|
||||
AC_SUBST(stage2_warn_cflags)
|
||||
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
|
|
Loading…
Reference in New Issue