On Sun, 2007-12-02 at 21:34 -0500, Rich Felker wrote:
> On Mon, Dec 03, 2007 at 03:15:17AM +0200, Uoti Urpala wrote:
> > More precisely the issue is that any access to symbols that might be in
> > a different library triggers the addition of the function prologue that
> > sets %ebx, independently of whether those symbols are functions or data
> > variables.
>> Would you agree that this constitutes a gcc bug (or at least a serious
> deficiency in generated code quality) and not something that library
> developers should be worried about aside from reporting the bug to the
> gcc team?
This is how latest gcc works, and a version with better optimization is
not even expected to appear soon. So most users have no way to avoid it.
Under those circumstances it is something that developers should take
into account instead of completely ignoring it on "in theory it would be
possible to do better" grounds.