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
The patch from the following post I have validated does fix the problem. http://sourceware.org/ml/libc-alpha/2006-05/msg00017.html
I do believe with this fix that gcc 4.2.2 could be viable for 2007.1. (least on ppc64) :-)
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 ...
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 ?
yeah, patch looks fine ... i'll queue it up
added to glibc-2.7