<?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>41763</bug_id>
          
          <creation_ts>2004-02-16 02:27 0000</creation_ts>
          <short_desc>dietlibc gcc wrapper (diet -Os gcc) uses obsolete compiler options with gcc3</short_desc>
          <delta_ts>2004-02-19 18:53:37 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>Development</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>feibisch@estec.net</reporter>
          <assigned_to>mr_bones_@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>feibisch@estec.net</who>
            <bug_when>2004-02-16 02:27:57 0000</bug_when>
            <thetext>Patch included, already tested both for dietlibc 0.23 and 0.24:

--- dietlibc-0.24/diet.c	2003-10-10 15:17:46.000000000 +0200
+++ dietlibc-0.24-gcc3/diet.c	2004-02-15 19:03:01.000000000 +0100
@@ -26,8 +26,8 @@
 
 static const char* Os[] = {
   &quot;i386&quot;,&quot;-Os&quot;,&quot;-mpreferred-stack-boundary=2&quot;,
-	 &quot;-malign-functions=1&quot;,&quot;-malign-jumps=1&quot;,
-	 &quot;-malign-loops=1&quot;,&quot;-fomit-frame-pointer&quot;,0,
+	 &quot;-falign-functions&quot;,&quot;-falign-jumps&quot;,
+	 &quot;-falign-loops&quot;,&quot;-fomit-frame-pointer&quot;,0,
   &quot;x86_64&quot;,&quot;-Os&quot;,&quot;-fno-omit-frame-pointer&quot;,0,
   &quot;sparc&quot;,&quot;-Os&quot;,&quot;-mcpu=supersparc&quot;,0,
   &quot;sparc64&quot;,&quot;-Os&quot;,&quot;-m64&quot;,0,

Reproducible: Always
Steps to Reproduce:
1. emerge dietlibc
2. diet -Os gcc -o example example.c

Actual Results:  
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions

Expected Results:  
Compile without warning.

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-gentoo-
r4)
=================================================================
System uname: 2.4.22-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.3.8p1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -march=i686 -funroll-loops -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -march=i686 -funroll-loops -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;apm arts avi berkdb crypt encode foomaticdb gdbm gif gnome gtk gtk2 imlib 
java kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss 
pam pdflib perl python qt quicktime readline sdl slang spell ssl svga tcpd 
truetype x86 xml2 xmms xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-02-18 03:05:01 0000</bug_when>
            <thetext>Can you attach the patch as a text/plain please?   That way it&apos;s easier to
deal with.  Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>feibisch@estec.net</who>
            <bug_when>2004-02-18 12:05:27 0000</bug_when>
            <thetext>Created an attachment (id=25872)
dietlibc patch to get rid of the gcc3 warnings
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-02-19 18:53:37 0000</bug_when>
            <thetext>Fixed in CVS.  I didn&apos;t bump the revision on the ebuild since I believe the
newer versions of gcc will still work with the old options, but warn about them.
Let me know if this isn&apos;t the case and I&apos;ll rev bump the ebuild to make people
upgrade.  Remerge dietlibc to get the change if you have it currently installed
and want to get the patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>25872</attachid>
            <date>2004-02-18 12:05 0000</date>
            <desc>dietlibc patch to get rid of the gcc3 warnings</desc>
            <filename>0.24-gcc3.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGRpZXRsaWJjLTAuMjQvZGlldC5jCTIwMDMtMTAtMTAgMTU6MTc6NDYuMDAwMDAwMDAwICsw
MjAwCisrKyBkaWV0bGliYy0wLjI0LWdjYzMzL2RpZXQuYwkyMDA0LTAyLTE1IDE5OjAzOjAxLjAw
MDAwMDAwMCArMDEwMApAQCAtMjYsOCArMjYsOCBAQAogCiBzdGF0aWMgY29uc3QgY2hhciogT3Nb
XSA9IHsKICAgImkzODYiLCItT3MiLCItbXByZWZlcnJlZC1zdGFjay1ib3VuZGFyeT0yIiwKLQkg
Ii1tYWxpZ24tZnVuY3Rpb25zPTEiLCItbWFsaWduLWp1bXBzPTEiLAotCSAiLW1hbGlnbi1sb29w
cz0xIiwiLWZvbWl0LWZyYW1lLXBvaW50ZXIiLDAsCisJICItZmFsaWduLWZ1bmN0aW9ucyIsIi1m
YWxpZ24tanVtcHMiLAorCSAiLWZhbGlnbi1sb29wcyIsIi1mb21pdC1mcmFtZS1wb2ludGVyIiww
LAogICAieDg2XzY0IiwiLU9zIiwiLWZuby1vbWl0LWZyYW1lLXBvaW50ZXIiLDAsCiAgICJzcGFy
YyIsIi1PcyIsIi1tY3B1PXN1cGVyc3BhcmMiLDAsCiAgICJzcGFyYzY0IiwiLU9zIiwiLW02NCIs
MCwK
</data>        

          </attachment>
    </bug>

</bugzilla>