Commit 61842080 by Mark Mitchell Committed by Mark Mitchell

configure.in: If the native compiler is GCC use $(WARN_CFLAGS) even in stage1.

	* configure.in: If the native compiler is GCC use $(WARN_CFLAGS)
	even in stage1.
	* Makefile.in: Likewise.
	* configure: Regenerated.

From-SVN: r22120
parent 4112dedc
Sun Aug 30 22:17:20 1998 Mark Mitchell <mark@markmitchell.com>
* configure.in: If the native compiler is GCC use $(WARN_CFLAGS)
even in stage1.
* Makefile.in: Likewise.
* configure: Regenerated.
Sun Aug 30 22:15:41 1998 H.J. Lu (hjl@gnu.org)
* configure.in (gxx_include_dir): Changed to
......
......@@ -53,7 +53,8 @@ ALLOCA_FINISH = true
# CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
# BOOT_CFLAGS is the value of CFLAGS to pass
# to the stage2 and stage3 compilations
# WARN_CFLAGS are the warning flags to pass to stage2 and stage3. It is
# WARN_CFLAGS are the warning flags to pass to stage2 and stage3.
# (And for stage 1 if the native compiler is GCC.) It is
# separate from BOOT_CFLAGS because people tend to override optimization
# flags and we'd like them to still have warnings turned on. They are free
# to explicitly turn warnings off if they wish.
......@@ -61,7 +62,7 @@ ALLOCA_FINISH = true
# TCFLAGS is used for compilations with the GCC just built.
XCFLAGS =
TCFLAGS =
CFLAGS = -g
CFLAGS = -g @stage1_warn_cflags@
BOOT_CFLAGS = -O2 $(CFLAGS)
WARN_CFLAGS = -W -Wall
# These exists to be overridden by the x-* and t-* files, respectively.
......
......@@ -178,6 +178,17 @@ AC_CANONICAL_SYSTEM
# Find the native compiler
AC_PROG_CC
# 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'.
if test "x$GCC" = "xyes"; then
stage1_warn_cflags='$(WARN_CFLAGS)'
else
stage1_warn_cflags=""
fi
AC_SUBST(stage1_warn_cflags)
AC_PROG_MAKE_SET
# Find some useful tools
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment