public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: fixing vs WARN_CFLAGS vs cross builds
@ 2004-03-31  8:03 Nathanael Nerode
  2004-03-31 10:52 ` Jim Wilson
  0 siblings, 1 reply; 9+ messages in thread
From: Nathanael Nerode @ 2004-03-31  8:03 UTC (permalink / raw)
  To: dj, gcc

>Yes.  BUILD_CC is 3.2.3, and does not support these:
>
>cc1: unrecognized option `-Wno-variadic-macros'
>cc1: unrecognized option `-Wold-style-definition'
>
>> It may be reasonable to remove the WARN_CFLAGS setting in the fixinc.sh 
>> rule.  We don't use WARN_CFLAGS anyplace else where we use CC_FOR_BUILD. 
>>   This can work in stage2 etc builds, but this is probably not important 
>> enough to worry about.
>> 
>> It would be nice to have a proper bug report though.
>
>I was still trying to figure out what was supposed to happen from a
>theoretical standpoint.  
WARN_CFLAGS should be tested for compatibility with CC (which is basically
what happens on mainline ATM).

It should not be used with CC_FOR_BUILD, which could be different in any
compilation, since the user can specify it as a command-line option to 'make'.

>I have a patch which tests for build!=host and disables WARN_CFLAGS,
>but should fixinc *ever* be built with WARN_CFLAGS?
No, it shouldn't.

-- 
Make sure your vote will count.
http://www.verifiedvoting.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* fixing vs WARN_CFLAGS vs cross builds
@ 2004-03-30  0:29 DJ Delorie
  2004-03-31  6:38 ` Jim Wilson
  0 siblings, 1 reply; 9+ messages in thread
From: DJ Delorie @ 2004-03-30  0:29 UTC (permalink / raw)
  To: gcc


I'm trying to cross-build a native DJGPP.  It tries to build fixinc,
but uses "gcc" as the compiler.  It passes a full WARN_CFLAGS, which
includes options that the system gcc doesn't understand, and so fails.

Should we just not pass WARN_CFLAGS when cross compiling that way?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-31  9:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-31  8:03 fixing vs WARN_CFLAGS vs cross builds Nathanael Nerode
2004-03-31 10:52 ` Jim Wilson
2004-03-31 12:43   ` Zack Weinberg
  -- strict thread matches above, loose matches on Subject: below --
2004-03-30  0:29 DJ Delorie
2004-03-31  6:38 ` Jim Wilson
2004-03-31  6:40   ` DJ Delorie
2004-03-31  7:53     ` Jim Wilson
2004-03-31  7:55       ` DJ Delorie
2004-03-31  8:09         ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).