This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix MinGW bootstrap


Mark Mitchell <mark@codesourcery.com> writes:

> I think that the Makefile variable I created should be called something
> different -- like WERROR_FLAGS.  Would you be willing to try replacing
> WERROR with WERROR_FLAGS in Makefile.in?  If that works, consider it
> pre-approved, as long as you get x-mingw32 as well.

This is what I have checked in:

2004-12-02  Andreas Schwab  <schwab@suse.de>

	* Makefile.in (WERROR_FLAGS): Renamed from WERROR.
	(STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
	(STAGE2_FLAGS_TO_PASS): Likewise.

	* config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.

--- gcc/Makefile.in.~1.1429.~	2004-12-02 11:55:50.000000000 +0100
+++ gcc/Makefile.in	2004-12-02 13:04:22.512716836 +0100
@@ -167,9 +167,9 @@ coverageexts = .{gcda,gcno}
 # -Wno-variadic-macros.
 LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
 STRICT_WARN = @strict1_warn@
-WERROR = @WERROR@
+WERROR_FLAGS = @WERROR@
 STRICT2_WARN = -pedantic -Wno-long-long -Wno-variadic-macros \
-  -Wold-style-definition $(WERROR)
+  -Wold-style-definition $(WERROR_FLAGS)
 
 # This is set by --enable-checking.  The idea is to catch forgotten
 # "extern" tags in header files.
@@ -3643,7 +3643,7 @@ POSTSTAGE1_FLAGS_TO_PASS = \
 
 STAGE2_FLAGS_TO_PASS = \
 	CFLAGS="$(BOOT_CFLAGS)" \
-	WERROR="$(WERROR)" \
+	WERROR="$(WERROR_FLAGS)" \
 
 STAGEPROFILE_FLAGS_TO_PASS = \
 	CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
--- gcc/config/i386/x-mingw32.~1.5.~	2004-12-02 11:55:58.000000000 +0100
+++ gcc/config/i386/x-mingw32	2004-12-02 13:04:34.289080656 +0100
@@ -5,7 +5,7 @@ local_includedir=$(libsubdir)/$(unlibsub
 
 # On MinGW, we use "%IA64d" to print 64-bit integers, and the format-checking
 # code does not handle that, so we have to disable checking here.
-WERROR += -Wno-format
+WERROR_FLAGS += -Wno-format
 
 host-mingw32.o : $(srcdir)/config/i386/host-mingw32.c $(CONFIG_H) $(SYSTEM_H) \
   coretypes.h hosthooks.h hosthooks-def.h toplev.h diagnostic.h $(HOOKS_H)

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]