qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollis@penguinppc.org>
To: Juan Quintela <quintela@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH 70/81] remove last 3 uses of :=, everywhere else uses += or =
Date: Wed, 26 Aug 2009 15:15:36 -0700	[thread overview]
Message-ID: <fb412d760908261515j2eef1a21v3beb53b7deab5590@mail.gmail.com> (raw)
In-Reply-To: <m31vmyfdtu.fsf@neno.mitica>

On Wed, Aug 26, 2009 at 2:46 PM, Juan Quintela<quintela@redhat.com> wrote:
> Hollis Blanchard <hollis@penguinppc.org> wrote:
>> On Mon, Aug 3, 2009 at 5:47 AM, Juan Quintela<quintela@redhat.com> wrote:
>>>
>>> Signed-off-by: Juan Quintela <quintela@redhat.com>
>>> ---
>>>  Makefile.target |    6 +++---
>>>  1 files changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/Makefile.target b/Makefile.target
>>> index a4d269d..6b3d40f 100644
>>> --- a/Makefile.target
>>> +++ b/Makefile.target
>>> @@ -20,7 +20,7 @@ endif
>>>  PROGS=$(QEMU_PROG)
>>>
>>>  ifeq ($(subst ppc64,ppc,$(ARCH))$(TARGET_BASE_ARCH),ppcppc)
>>> -translate.o: QEMU_CFLAGS := $(QEMU_CFLAGS) $(call cc-option, $(QEMU_CFLAGS), -fno-unit-at-a-time,)
>>> +translate.o: QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-unit-at-a-time,)
>>>  endif
>>>
>>>  LIBS+=-lm
>>
>> This change breaks the build with PPC host and PPC target:
>> Makefile:25: *** Recursive variable `QEMU_CFLAGS' references itself
>> (eventually).  Stop.
>>
>> I don't know why you want to remove all :=, but it seems like this
>> hunk should be reverted.
>
> Could you check two things:
>
> a- remove the whole block, it should not be needed anymore (or that I
>   have been told)

The original commit, from malc, says it's necessary to work around a
gcc 4.3.0 bug. If that's true, it's probably not a great idea to
remove it.

> b- if a) don't work, tryng to change the interior bit to
>
> translate.o: QEMU_CFLAGS += $(call cc-option, $(CFLAGS),-fno-unit-at-a-time,)
>
> And if so, we can do this change.  What we pass as 2nd argument
> shouldn't matter for this test.
>
> call cc-option is complicated to get right, sorry :(

If it doesn't matter, better not to pass anything, rather than confuse
the reader into thinking it does matter. This seems to work:
translate.o: QEMU_CFLAGS += $(call cc-option, , -fno-unit-at-a-time,)

But strangely, this doesn't:
translate.o: QEMU_CFLAGS += $(call cc-option, "", -fno-unit-at-a-time,)

However, what if the second argument did matter? I don't understand
the problem with the original syntax.

Debugging makefiles sucks.

-Hollis

  reply	other threads:[~2009-08-26 22:15 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 12:45 [Qemu-devel] [PATCH v2 00/81] More Makefile/configure simplification Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 01/81] strip binary is not used anywhere Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 02/81] oss variable don't exist anymore Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 03/81] Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 04/81] move cpu command line setting to the beggining Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 05/81] move check_linker_flags sooner than starting of printing variables Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 06/81] remove not needed rt variable Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 07/81] move checks for bswap32/bswap_32 sooner than starting of printing variables Juan Quintela
2009-08-03 12:45 ` [Qemu-devel] [PATCH 08/81] move general CFLAGS/LDFLAGS definitions after last $cc run Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 09/81] We want to add options at the beggining, not at the end of variables Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 10/81] Remove OS_{CFLAGS, LDFLAGS} and ARCH_{LDFLAGS, CFLAGS} Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 11/81] move EXTRA_CFLAGS/LDFLAGS to the very beginning Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 12/81] create compile_object/compile_prog functions Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 13/81] remove unused temporal files Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 14/81] Add CURL_CFLAGS Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 15/81] __sparc_*__ is defined through -D__sparc_*__ Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 16/81] move mingw32 code after selection of OS Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 17/81] This variables can't be set here Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 18/81] refactor kqemu selection for both mingw32 Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 19/81] move sparc_cpu arg parsing to the begining Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 20/81] refactor sparc_cpu code to be in a single place Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 21/81] refactor $cpu selection in various places Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 22/81] reindent Operating System selection configure Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 23/81] We use -lz for all binaries Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 24/81] We want to pass LIB through configuration files now Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 25/81] PTHREADLIBS was used for all binaries Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 26/81] CLOCKLIBS " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 27/81] Move to configure CONFIG_SOLARIS libraries needed always Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 28/81] Move to configure CONFIG_WIN32 " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 29/81] We set -Werror through configure now Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 30/81] Rename CPPFLAGS to QEMU_CFLAGS Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 31/81] split QEMU_CFLAGS very long line Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 32/81] move common QEMU_CFLAGS to configure Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 33/81] Refactor HELPER_CFLAGS Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 34/81] move SDL_LIBS Win32 hack to configure Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 35/81] Add libs_softmmu variable Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 36/81] Add SDL_LIBS to libs_softmmu Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 37/81] gcc generates the right dependency for this file Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 38/81] move coreaudio libraries to coreaudio selection Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 39/81] Move sound library selection to sound selection Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 40/81] files are only compiled when CONFIG_ADLIB is defined Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 41/81] Test if we need -lutil in ,/configure Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 42/81] Fold CURSES_LIBS into libsoftmmu_libs Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 43/81] Fold VNC_TLS_LIBS into libs_softmmu Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 44/81] Fold VNC_SASL_LIBS " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 45/81] Fold XEN_LIBS " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 46/81] Fold BLUEZ_LIBS " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 47/81] Fold FDT_LIBS " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 48/81] Fold BRLAPI_LIBS " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 49/81] remove duplicated TARGET_GPROF code Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 50/81] \!CONFIG_USER_ONLY == CONFIG_SOFTMMU Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 51/81] Introduce CONFIG_NOSOFTFLOAT and simplify Makefile.target Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 52/81] permit to add things to LDFLAGS for target Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 53/81] refactor linker_script common part and change quoting Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 54/81] permit to add things to CFLAGS per target Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 55/81] fix typo, there should be bsd_user there Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 56/81] Move alpha CFLAGS target to configure Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 57/81] Move ia64 QEMU_CFLAGS " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 58/81] this bit was already generated in configure Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 59/81] Fold TARGET_GPROF handling " Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 60/81] Generate more conmmon CFLAGS Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 61/81] Added CONFIG_NEED_MMU for microblaze and cris Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 62/81] Move dis-* selection to configure Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 63/81] Use only one KVM_CFLAGS Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 64/81] Use one less HELPER_CFLAGS Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 65/81] Make slirp include dir globlal in cflags Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 66/81] FMOD_CFLAGS is not set when CONFIG_FMOD is undef Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 67/81] AUDIO_PT is not needed Juan Quintela
2009-08-03 12:46 ` [Qemu-devel] [PATCH 68/81] Generate CONFIG_AUDIO_PT_INT in configure Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 69/81] CONFIG_POSIX makes more sense that not CONFIG_WIN32 Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 70/81] remove last 3 uses of :=, everywhere else uses += or = Juan Quintela
2009-08-26 21:10   ` Hollis Blanchard
2009-08-26 21:46     ` [Qemu-devel] " Juan Quintela
2009-08-26 22:15       ` Hollis Blanchard [this message]
2009-08-26 22:26         ` Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 71/81] Consolidate audio flags in configure Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 72/81] We also need TARGET_<arechname> in Makefiles Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 73/81] use TARGET_<arch name> for selection Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 74/81] Disable aio in mingw32 Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 75/81] Add libs_tools support Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 76/81] VDE libs are used both by tools and softmmu Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 77/81] CURL " Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 78/81] Add cocoa libs at Darwin selection time Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 79/81] convert gprof flags to style of rest of Makefile Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 80/81] Move libsunpath to use the same style than everything else Juan Quintela
2009-08-03 12:47 ` [Qemu-devel] [PATCH 81/81] rename aio/CONFIG_AIO to posix_aio/CONFIG_POSIX_AIO Juan Quintela
2009-08-10 14:46   ` Anthony Liguori
2009-08-10 14:48     ` Christoph Hellwig
2009-08-10 14:53       ` Anthony Liguori
2009-08-10 14:55         ` Christoph Hellwig
2009-08-10 15:22     ` [Qemu-devel] " 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=fb412d760908261515j2eef1a21v3beb53b7deab5590@mail.gmail.com \
    --to=hollis@penguinppc.org \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    /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 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 NNTP newsgroup(s).