Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196245 - gcc 4.2.x + glibc inline fix
Summary: gcc 4.2.x + glibc inline fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/ml/libc-alpha/2...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 07:20 UTC by Tom Gall (RETIRED)
Modified: 2007-10-24 06:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Gall (RETIRED) gentoo-dev 2007-10-18 07:20:45 UTC
gcc 4.2.x is a bit more agressive on inlining and as a result breaks the glibc build. The manifestation is when glibc tries to run rpcgen which is the first binary that is run as the build is progressing. 

The fix is not a gcc fix but a glibc fix. It makes sure call_gmon_start is not inlined. (It isn't inlined with 4.1.x so the past behavior here isn't being changed with the fix.

Supposedly this hits all architectures but I only have validated this on ppc64

Reproducible: Always
Comment 1 Tom Gall (RETIRED) gentoo-dev 2007-10-18 07:23:31 UTC
The patch from the following post I have validated does fix the problem.

http://sourceware.org/ml/libc-alpha/2006-05/msg00017.html
Comment 2 Tom Gall (RETIRED) gentoo-dev 2007-10-18 07:26:08 UTC
I do believe with this fix that gcc 4.2.2 could be viable for 2007.1. (least on ppc64) :-)
Comment 3 SpanKY gentoo-dev 2007-10-18 07:59:17 UTC
less common arches are certainly free to stabilize gcc-4.2.x, but i dont plan on recommending stabilizing <=4.2.2 for any architecture ...
Comment 4 Tom Gall (RETIRED) gentoo-dev 2007-10-18 18:16:44 UTC
Understood. We haven't decided if we're going to 4.2.2 or not yet. That'll be a team discussion.

On our part we have motivations for power6.

Is the toolchain team ok with pulling in this patch to glibc then ?
Comment 5 SpanKY gentoo-dev 2007-10-19 06:38:45 UTC
yeah, patch looks fine ... i'll queue it up
Comment 6 SpanKY gentoo-dev 2007-10-24 06:10:57 UTC
added to glibc-2.7