lkml.org 
[lkml]   [2008]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: huge gcc 4.1.{0,1} __weak problem
From
From: Jeremy Fitzhardinge <jeremy@goop.org>
Date: Fri, 02 May 2008 14:11:18 -0700

> Suresh Siddha wrote:
> > On Thu, May 01, 2008 at 05:34:34PM -0700, Linus Torvalds wrote:
> >
> >> Is it always about inlining? If so, can't we add a __noinline__ to the
> >> declaration of __weak?
> >>
> >
> > We tried that and it was still getting inlined.
>
> That's a pity. I've worked around this bug with noinline before.

It's "constness", as Jakub mentioned, not inlineability, that triggers
this bug.

That's why his workaround of using an empty asm("") to the function is
an effective workaround, because the compiler can no longer internally
decide that the function is "const".


\
 
 \ /
  Last update: 2008-05-03 00:05    [W:0.094 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site