From: Ingo Molnar <mingo@elte.hu>
To: Mikael Pettersson <mikpe@it.uu.se>
Cc: hpa@zytor.com, mingo@redhat.com, tglx@linutronix.de,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] x86: 2.6.27-rc1 does not build with gcc-3.2.3 any more
Date: Wed, 30 Jul 2008 13:10:03 +0200 [thread overview]
Message-ID: <20080730111003.GA23933@elte.hu> (raw)
In-Reply-To: <200807301102.m6UB2AiI022512@harpo.it.uu.se>
* Mikael Pettersson <mikpe@it.uu.se> wrote:
> static inline __attribute__((always_inline))
> unsigned char readb(const volatile void *addr)
> {
> unsigned char ret;
> asm volatile("mov" "b" " %1,%0"
> : "=" "q" (ret)
> : "m" (*(volatile unsigned char *)addr)
> : "memory");
> return ret;
> }
>
> The problem is that "=q" has been broken up into two adjacent
> string literals, and apparently gcc-3.2.3 hasn't done string
> literal concatenation at the time it processes the asm().
> Hence the syntax error. (This is clearly a gcc bug.)
>
> Switching to gcc-3.3.6 or newer fixes the problem.
>
> The question is, should the kernel be fixed to compile with 3.2.3
> again (by generating "=q" not "=" "q"), or should the minimum supported
> gcc version be bumped to 3.3.6?
>
> I have no strong feeling about this, except that I want to use the
> oldest (== least bloated) gcc possible on my 486 test box.
yeah, please send a fix. We could move the '=' from build_mmio_read into
the argument (explicitly).
Ingo
prev parent reply other threads:[~2008-07-30 11:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-30 11:02 Mikael Pettersson
2008-07-30 11:10 ` Ingo Molnar [this message]
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=20080730111003.GA23933@elte.hu \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mikpe@it.uu.se \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®