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: Question on -Werror usage in Makefiles...


"Zack Weinberg" <zack@codesourcery.com> writes:

> Andreas Jaeger <aj@suse.de> writes:
>
>> "Zack Weinberg" <zack@codesourcery.com> writes:
>>
>>> Assuming your check succeeds, yes, go ahead and check this in.  We
>>
>> The bootstrap/testrun succeeded, so I committed it.
>>
>>> will probably need to deal with further breakage but I think it's best
>>> if that is done in follow-up patches.
>>
>> Ok.
>>
>> We now can add also the -Werror patch from Kaveh to the Makefile...
>
> Yes, please go ahead and do that.


I'm appending the patch again. 

The patch has been tested on x86_64-linux-gnu and i686-linux-gnu with
no regressions.

Andreas

2003-11-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.


============================================================
Index: gcc/Makefile.in
--- gcc/Makefile.in	31 Oct 2003 12:41:34 -0000	1.1187
+++ gcc/Makefile.in	1 Nov 2003 12:20:08 -0000
@@ -287,7 +287,7 @@ GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) ./x
 # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
 # It omits XCFLAGS, and specifies -B./.
 # It also specifies -isystem ./include to find, e.g., stddef.h.
-GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) -isystem ./include $(TCFLAGS)
+GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) @WERROR@ -isystem ./include $(TCFLAGS)
 
 # ---------------------------------------------------
 # Programs which produce files for the target machine

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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