Re: [PATCH 1/2] Add thread_info_cache_init() to all archs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Ravnborg <sam@...>
Cc: Andrew Morton <akpm@...>, Linux-Arch <linux-arch@...>, <linux-m32r@...>, <takata@...>, <linux-kernel@...>, <linuxppc-dev@...>, Paul Mackerras <paulus@...>, Luke Browning <LukeBrowning@...>
Date: Wednesday, May 21, 2008 - 4:38 pm

On Wed, 2008-05-21 at 21:06 +0200, Sam Ravnborg wrote:

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.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed Apr 9, 11:22 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Sun Apr 13, 8:19 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Sun Apr 13, 8:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Sun Apr 13, 10:13 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 17, 11:58 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Kyle McMartin, (Fri Apr 18, 12:21 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Fri Apr 18, 12:19 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Fri Apr 18, 2:44 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 1:56 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Wed May 21, 2:41 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 3:44 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Andrew Morton, (Wed May 21, 4:52 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Wed May 21, 4:38 pm)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Michael Ellerman, (Fri Apr 18, 12:38 am)
Re: [PATCH 1/2] Add thread_info_cache_init() to all archs, Benjamin Herrenschmidt, (Thu Apr 10, 5:46 pm)