<?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>143895</bug_id>
          
          <creation_ts>2006-08-14 09:47 0000</creation_ts>
          <short_desc>perl, libperl gets screwed by -fsched2-use-superblocks; a case for flag-o-matic?</short_desc>
          <delta_ts>2006-08-15 09:23:41 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>2006.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P1</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sg313d@gmail.com</reporter>
          <assigned_to>perl@gentoo.org</assigned_to>
          <cc>jakub@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>sg313d@gmail.com</who>
            <bug_when>2006-08-14 09:47:00 0000</bug_when>
            <thetext>perl and libperl don&apos;t like the optimization flag -fsched2-use-superblocks in conjunction with -O2 or higher on gcc-4.1.1. 
This causes perl &apos;require vX.Y.Z&apos; to fail for versions ending with .0 (Z=0),
for example a perl-5.8.8 installation exit with an error from 
perl -e &apos;require v5.6.0&apos;; 
On gcc-3.4.6 these malfunctions couldn&apos;t be observed.

Description:
The optimization damages loop code in str_to_version. As a consequence the command &gt;&gt;perl -e require &apos;vX.Y.0&apos;&lt;&lt; will fail for any values of X,Y;
This seems to be version of a (well) known bug on gcc-bugzilla. They closed
it as wontfix.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323 for details.
If are convinced that this is a another bug, feel free to file it at
the gcc-bugzilla.

Steps to reproduce:
1. Compile libperl/perl &gt;= 5.8 with gcc-4.1.1, -O2 &amp; -fsched2-use-superblocks.
2. perl -e &apos;require 5.6.0&apos; -&gt; Will abort with error (!)

Proposed solution:
This can be easyly circumvented by using flag-o-matic to  strip -fsched2-use-superblocks from CFLAGS.
Patches for perl and libperl ebuilds are attached.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sg313d@gmail.com</who>
            <bug_when>2006-08-14 09:51:42 0000</bug_when>
            <thetext>Created an attachment (id=94253)
Filters -fsched2-use-superblocks for perl

s.o.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sg313d@gmail.com</who>
            <bug_when>2006-08-14 09:52:32 0000</bug_when>
            <thetext>Created an attachment (id=94254)
Filters -fsched2-use-superblocks for libperl

s.o.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-08-14 10:23:34 0000</bug_when>
            <thetext>Quite frankly, we really have better things to do that to filter whatever ultraweird flag that someone has stuck into his flags for whatever reason. How about that you filter it yourself?

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sg313d@gmail.com</who>
            <bug_when>2006-08-14 10:41:32 0000</bug_when>
            <thetext>The report was not meant to be an offense. Discard it if you want;
I just wanted to share the solution.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ian@gentoo.org</who>
            <bug_when>2006-08-15 06:48:59 0000</bug_when>
            <thetext>Fixed in cvs.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sg313d@gmail.com</who>
            <bug_when>2006-08-15 09:23:41 0000</bug_when>
            <thetext>Thanks!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>94253</attachid>
            <date>2006-08-14 09:51 0000</date>
            <desc>Filters -fsched2-use-superblocks for perl</desc>
            <filename>perl-5.8.8-r2.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9kZXYtbGFuZy9wZXJsL3BlcmwtNS44LjgtcjIuZWJ1aWxkCTIwMDYt
MDgtMTMgMTM6MzY6MjcuMDAwMDAwMDAwICswMjAwCisrKyBwZXJsLTUuOC44LXIzLmVidWlsZAky
MDA2LTA4LTE0IDE4OjQ4OjE5LjAwMDAwMDAwMCArMDIwMApAQCAtMTQxLDYgKzE0MSw4IEBACiAJ
dXNlIGVsaWJjX3VjbGliYyB8fCByZXBsYWNlLWZsYWdzICItT3MiICItTzIiCiAJIyBUaGlzIGZs
YWcgbWFrZXMgY29tcGlsaW5nIGNyYXNoIGluIGludGVyZXN0aW5nIHdheXMKIAlmaWx0ZXItZmxh
Z3MgLW1hbGlnbi1kb3VibGUKKwkjIEZpeGVzIGJ1ZyAjMTQzODk1IG9uIGdjYy00LjEuMQorCWZp
bHRlci1mbGFncyAiLWZzY2hlZDItdXNlLXN1cGVyYmxvY2tzIgogCSMgRml4ZXMgYnVnICM5NzY0
NQogCXVzZSBwcGMgJiYgZmlsdGVyLWZsYWdzIC1tcG93ZXJwYy1ncG9wdAogCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>94254</attachid>
            <date>2006-08-14 09:52 0000</date>
            <desc>Filters -fsched2-use-superblocks for libperl</desc>
            <filename>libperl-5.8.8-r1.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9zeXMtZGV2ZWwvbGlicGVybC9saWJwZXJsLTUuOC44LXIxLmVidWls
ZAkyMDA2LTA3LTAyIDIyOjA2OjIyLjAwMDAwMDAwMCArMDIwMAorKysgbGlicGVybC01LjguOC1y
Mi5lYnVpbGQJMjAwNi0wOC0xNCAxODo0OToxMy4wMDAwMDAwMDAgKzAyMDAKQEAgLTE2Miw2ICsx
NjIsOCBAQAogCXVzZSBlbGliY191Y2xpYmMgfHwgcmVwbGFjZS1mbGFncyAiLU9zIiAiLU8yIgog
CSMgVGhpcyBmbGFnIG1ha2VzIGNvbXBpbGluZyBjcmFzaCBpbiBpbnRlcmVzdGluZyB3YXlzCiAJ
ZmlsdGVyLWZsYWdzICItbWFsaWduLWRvdWJsZSIKKwkjIFRoaXMgZml4ZXMgYnVnICMxNDM4OTUg
b24gZ2NjLTQuMS4xCisJZmlsdGVyLWZsYWdzICItZnNjaGVkMi11c2Utc3VwZXJibG9ja3MiCiAJ
IyBGaXhlcyBidWcgIzk3NjQ1CiAJdXNlIHBwYyAmJiBmaWx0ZXItZmxhZ3MgLW1wb3dlcnBjLWdw
b3B0CiAK
</data>        

          </attachment>
    </bug>

</bugzilla>