From: Thomas Monjalon <thomas_ml@monjalon.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [COMMIT 8a2e6ab] Remove CFLAGS parameter in cc-option
Date: Fri, 11 Sep 2009 18:35:35 +0200 [thread overview]
Message-ID: <200909111835.35441.thomas_ml@monjalon.net> (raw)
Anthony Liguori wrote:
> Juan Quintela wrote:
> > malc <av1474@comtv.ru> wrote:
> >> On Thu, 10 Sep 2009, Juan Quintela wrote:
> >>> malc <av1474@comtv.ru> wrote:
> >>>> On Wed, 9 Sep 2009, Anthony Liguori wrote:
> >>>>> From: Juan Quintela <quintela@redhat.com>
> >>>>>
> >>>>> With cc-option we are testing if gcc just accept a particular option,
> >>>>> we don't need CFLAGS at all. And this fixes the recursive problem
> >>>>> with CFLAGS
> >>>>
> >>>> This is nonsense, previous options, those in CFLAGS, might conflict
> >>>> with the new ones.
> >>>
> >>> The only thing that we are testing is if gcc support that _option_
> >>>
> >>> What is the use case tat you have in mind? A first grep on gcc man
> >>> page don't show options that conflict with each other.
> >>
> >> If you want artificial exmaples i can come up with plenty, and from the
> >> top of my head -m486 with -msse2 are quite incompatible with each other,
> >> furthermore, point is this - testing one option in isolation is broken.
> >
> > Ok. For the case that we were using, it don't matter at all. But in
> > general, there "could" (it is only one cc-option call in all sources).
> >
> > Anthony, what do you preffer:
> > - revert the patch and add another one that changes += by :=
>
> No, I don't want to revert this patch and switch to :=. += should
> work. I don't understand why it doesn't.
>
> What I'd prefer is for someone to figure out the root cause of += not
> working for us. If we can't, I'd like a big fat comment stating that
> it's a known deficiency and we'll move on.
"make" complains about an infinite recursive assignment because the first
assignment of CFLAGS defines a recursively-expanded variable and the right
value is a macro which uses the CFLAGS.
As explained in
http://www.gnu.org/software/make/manual/html_node/Appending.html , it can be
fixed by making CFLAGS a simply-expanded variable at its first assignment.
I have submitted a patch.
--
Thomas
next reply other threads:[~2009-09-11 16:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 16:35 Thomas Monjalon [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-09-11 16:54 [Qemu-devel] Re: [COMMIT 8a2e6ab] Remove CFLAGS parameter in cc-option Thomas Monjalon
2009-09-11 16:53 Thomas Monjalon
2009-09-11 16:40 Thomas Monjalon
[not found] <200909092236.n89MaDVS020267@d01av01.pok.ibm.com>
[not found] ` <Pine.LNX.4.64.0909100409430.2139@linmac.oyster.ru>
[not found] ` <m3d45z63ry.fsf@neno.mitica>
[not found] ` <Pine.LNX.4.64.0909100434590.4541@linmac.oyster.ru>
2009-09-10 0:51 ` Anthony Liguori
[not found] ` <m3r5uf4odd.fsf@neno.mitica>
2009-09-10 1:51 ` Anthony Liguori
2009-09-11 15:44 ` Thomas Monjalon
2009-09-11 15:52 ` Juan Quintela
2009-09-11 16:06 ` Thomas Monjalon
2009-09-11 16:17 ` Juan Quintela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909111835.35441.thomas_ml@monjalon.net \
--to=thomas_ml@monjalon.net \
--cc=qemu-devel@nongnu.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.