[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1211402300.8297.240.camel@pasglop>
Date: Wed, 21 May 2008 16:38:20 -0400
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Sam Ravnborg <sam@...nborg.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Linux-Arch <linux-arch@...r.kernel.org>,
linux-m32r@...linux-m32r.org, takata@...ux-m32r.org,
linux-kernel@...r.kernel.org, linuxppc-dev@...abs.org,
Paul Mackerras <paulus@...ba.org>,
Luke Browning <LukeBrowning@...ibm.com>
Subject: Re: [PATCH 1/2] Add thread_info_cache_init() to all archs
On Wed, 2008-05-21 at 21:06 +0200, Sam Ravnborg wrote:
> It was discussed to add some run-time checks for this issue.
> But the examples given were a bit fluffy so I never integrated
> anything
> i kbuild to detect this.
>
> As this is only a bug for const weak functions they could be made
> non-const
> if they are seldomly used?
With the asm("") trick ?
I suppose, but I'm also happy to just reject the bad gcc...
It shouldn't be too hard to do a test case made of 2 files.
test_foo.c
int foo(void)
{
printf("good\n");
}
test_bar.c
int foo(void) __weak
{
}
int main(void)
{
foo();
return 0;
}
And check for "good" in the output of said program..
Can somebody test that ? Luke, you have a broken compiler, can you make
up some test that could be integrated in the kernel build system
easily ?
(I'm travelling right now, no time to play much with it myself).
Cheers,
Ben.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists