From: Tom Rini <trini@kernel.crashing.org>
To: Franz Sirl <Franz.Sirl-ppc@lauterbach.com>
Cc: "Kevin B. Hendricks" <kevin.hendricks@sympatico.ca>,
linuxppc-dev@lists.linuxppc.org
Subject: Re: can/should we use gcc 3.1 to compile kernels
Date: Fri, 7 Jun 2002 13:45:35 -0700 [thread overview]
Message-ID: <20020607204535.GQ14252@opus.bloom.county> (raw)
In-Reply-To: <5.1.1.2.2.20020607222718.04331998@mail.lauterbach.com>
On Fri, Jun 07, 2002 at 10:36:46PM +0200, Franz Sirl wrote:
> At 22:19 07.06.2002, Tom Rini wrote:
>
> >On Fri, Jun 07, 2002 at 03:44:56PM -0400, Kevin B. Hendricks wrote:
> >
> >> Not too bad warnings-wize excpet for the controlfb.c where it constanly
> >> gave a funny warning about "pasting ->".
> >
> >Sounds right. I think there was a few other things too..
>
> The warning is correct, pasting "token1" (CNTRL_REG) with "token2" (->)
> makes no sense, usually it's just a ## to much somewhere.
>
> >> It did this for every occurence of the macro CNTRL_REG which I must admit
> >> has two ## which I think gcc was misinterpreting somehow.
> >
> >Well, isn't:
> >#define x(foo) a_## foo ##_b
> >A semi-common thing, like we do in indirect_pci.c ? Or was it something
> >different?
>
> Think about preprocessing tokens! If foo is "->" the ## make no sense at
> all, cause "a_", "->" and "_b" are 3 separate preprocessing tokens, no need
> to paste them together.
Ah. Got a patch? :)
> >> Other than that just the occaissioanal wanring about unused variables and
> >> things like that.
> >
> >Lots of the USB stuff uses __FUNCTION__ which gcc-3.1 isn't happy
> >about.
>
> It's not __FUNCTION__ per se that gcc is unhappy about, but string
> concatenation with it. So instead of printk ( __FUNCTION__ "text %d",
> value) use printk (" %s, text %d", __FUNCTION__, value). No big deal.
>
> I think current 3.2 already refuses to compile that.
I thought it was 3.1 that gave a big warning about __FUNCTION__ being
depreciated entirely and 3.2 which just removed __FUNCTION__ at all. Or
have things been changed abit?
--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-06-07 20:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-08 17:41 can/should we use gcc 3.1 to compile kernels Kevin B. Hendricks
2002-06-07 18:31 ` Kaoru Fukui
2002-06-07 19:38 ` Tom Rini
2002-06-07 19:44 ` Kevin B. Hendricks
2002-06-07 20:19 ` Tom Rini
2002-06-07 20:36 ` Franz Sirl
2002-06-07 20:45 ` Tom Rini [this message]
2002-06-07 20:58 ` Franz Sirl
2002-06-07 23:39 ` Kevin B. Hendricks
2002-06-07 23:59 ` Tom Rini
2002-06-07 20:44 ` Kevin B. Hendricks
2002-06-07 20:50 ` Franz Sirl
2002-06-07 21:06 ` Kevin B. Hendricks
2002-06-07 21:40 ` Kaoru Fukui
2002-06-07 21:11 ` More GCC 3.1 Qs Conn Clark
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=20020607204535.GQ14252@opus.bloom.county \
--to=trini@kernel.crashing.org \
--cc=Franz.Sirl-ppc@lauterbach.com \
--cc=kevin.hendricks@sympatico.ca \
--cc=linuxppc-dev@lists.linuxppc.org \
/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).