* We're still coping with GCC < 3.0
@ 2006-11-17 21:28 Blaisorblade
2006-11-18 4:39 ` Oleg Verych
0 siblings, 1 reply; 2+ messages in thread
From: Blaisorblade @ 2006-11-17 21:28 UTC (permalink / raw)
To: LKML
(CC me on replies as I'm not subscribed)
In arch/i386/kernel/irq.c (current git head) I found this comment:
/*
* These should really be __section__(".bss.page_aligned") as well, but
* gcc's 3.0 and earlier don't handle that correctly.
*/
static char softirq_stack[NR_CPUS * THREAD_SIZE]
__attribute__((__aligned__(THREAD_SIZE)));
static char hardirq_stack[NR_CPUS * THREAD_SIZE]
__attribute__((__aligned__(THREAD_SIZE)));
That should be fixed now that we require GCC 3.0, not?
Btw, there are other such comments, like in include/asm-i386/semaphore.h:
sema_init (for GCC 2.7!). That one might not be the case to fix because of the
increased stack usage
I've seen other similar tests around, so I thought that it'd be useful to
centralize all tests for GCC versions to headers like include/compiler.h so
they're promptly removed when deprecating old compilers.
What about this?
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: We're still coping with GCC < 3.0
2006-11-17 21:28 We're still coping with GCC < 3.0 Blaisorblade
@ 2006-11-18 4:39 ` Oleg Verych
0 siblings, 0 replies; 2+ messages in thread
From: Oleg Verych @ 2006-11-18 4:39 UTC (permalink / raw)
To: linux-kernel
Hallo.
On 2006-11-17, someone with nick Blaisorblade wrote:
> In arch/i386/kernel/irq.c (current git head) I found this comment:
>
> /*
> * These should really be __section__(".bss.page_aligned") as well, but
> * gcc's 3.0 and earlier don't handle that correctly.
> */
> static char softirq_stack[NR_CPUS * THREAD_SIZE]
> __attribute__((__aligned__(THREAD_SIZE)));
>
> static char hardirq_stack[NR_CPUS * THREAD_SIZE]
> __attribute__((__aligned__(THREAD_SIZE)));
>
> That should be fixed now that we require GCC 3.0, not?
>
> Btw, there are other such comments, like in include/asm-i386/semaphore.h:
> sema_init (for GCC 2.7!). That one might not be the case to fix because of the
> increased stack usage
>
> I've seen other similar tests around, so I thought that it'd be useful to
> centralize all tests for GCC versions to headers like include/compiler.h so
> they're promptly removed when deprecating old compilers.
>
> What about this?
Tested patches to Andrew Morton and code maintainers.
See also:
<http://marc.theaimsgroup.com/?l=linux-kernel&m=116315825009126&w=2>
-- e-mail --
> (CC me on replies as I'm not subscribed)
Cc yourself, isn't this smart idea?
Also, please, honor "Mail-Followup-To" headers and the like.
____
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-18 4:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-17 21:28 We're still coping with GCC < 3.0 Blaisorblade
2006-11-18 4:39 ` Oleg Verych
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome