const weak variables are inlined.

Mark Mitchell mark@codesourcery.com
Thu May 8 23:03:00 GMT 2008


Alexandre Oliva wrote:

> Yup.  As long as we don't substitute uses of the variable for the
> constant, we should be fine.  We shouldn't do this, because an
> alternate definition might define it to something else.

See up-thread for why many people disagree with the conclusion that we 
should not substitute the constant.  Do you also think that we shouldn't 
inline functions not declared inline when building a shared library?

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list