<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>196245</bug_id>
          
          <creation_ts>2007-10-18 07:20 0000</creation_ts>
          <short_desc>gcc 4.2.x + glibc inline fix</short_desc>
          <delta_ts>2007-10-24 06:10:57 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://sourceware.org/ml/libc-alpha/2006-05/msg00017.html</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tgall@gentoo.org</reporter>
          <assigned_to>toolchain@gentoo.org</assigned_to>
          <cc>ppc64@gentoo.org</cc>
    
    <cc>ppc@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>tgall@gentoo.org</who>
            <bug_when>2007-10-18 07:20:45 0000</bug_when>
            <thetext>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&apos;t inlined with 4.1.x so the past behavior here isn&apos;t being changed with the fix.

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

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tgall@gentoo.org</who>
            <bug_when>2007-10-18 07:23:31 0000</bug_when>
            <thetext>The patch from the following post I have validated does fix the problem.

http://sourceware.org/ml/libc-alpha/2006-05/msg00017.html</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tgall@gentoo.org</who>
            <bug_when>2007-10-18 07:26:08 0000</bug_when>
            <thetext>I do believe with this fix that gcc 4.2.2 could be viable for 2007.1. (least on ppc64) :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-10-18 07:59:17 0000</bug_when>
            <thetext>less common arches are certainly free to stabilize gcc-4.2.x, but i dont plan on recommending stabilizing &lt;=4.2.2 for any architecture ...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tgall@gentoo.org</who>
            <bug_when>2007-10-18 18:16:44 0000</bug_when>
            <thetext>Understood. We haven&apos;t decided if we&apos;re going to 4.2.2 or not yet. That&apos;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 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-10-19 06:38:45 0000</bug_when>
            <thetext>yeah, patch looks fine ... i&apos;ll queue it up</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-10-24 06:10:57 0000</bug_when>
            <thetext>added to glibc-2.7</thetext>
          </long_desc>
      
    </bug>

</bugzilla>