From mint-bounce@lists.fishpool.fi Tue Jan 22 17:34:11 2008 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Message-ID: <478CEE0D.5040906@freesbee.fr> Date: Tue, 15 Jan 2008 18:31:57 +0100 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: mint@fishpool.com Subject: Re: [MiNT] gcc 4.2.2 patch References: <478A8F44.3030702@freesbee.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by freemint id m0MGP1ex004618 Status: X-Status: X-Keywords: MiKRO wrote: >> I must admit that I'm not completely sure that the code generated with >> GCC 4.2.2 is fully binary compatible with the libraries compiled with >> GCC 2.95.3... > Vincent, I have to (again!) thank you for such good point! I > recompiled mintlib with gcc 4 and voila, quake is running! Really good news, mystery (partially) solved ! I would be very interested about a quick Quake benchmark. Does the newest GCC produce better code than the old ? That's a real-world test ! However, that binary incompatibility smells bad. The binutils can't be an issue, because you used the old 2.13. Maybe there is something different in the internal configuration. It may be something tricky, such as structure alignment, or returning doubles or structures... It would be useful to manage to make a small testcase showing that problem. > I think the only task which is left is to compile freemint kernel and > then test if it works as usual.. Yes, it would be a good test ! > In a next few days I'd like to try to compile binutils 2.18 and use > them with gcc4 compilation. If this succeed, I think we are ready to > rpm-ize them and use on regular basis. That will be another step further. Then we will have a solid basis for making tests. I would like to discuss every part of the patches here, in order to decide what is good or not for the future official MiNT tools. I finally managed to install EasyMiNT on ARAnyM ! I can now make tests with GCC 2.95.3. I'm going to investigate further that problem with strtof and strtod. I had problem with them, I modified the configure of libstdc++-v3, now it works well when cross-compiling, but you still had problems on a native build, and you provide a quick fix. This is hiding some ugly bug in the configure stuff, we have to understand exactly what happens and fix it definitively. 2008 will be a great year for the MiNT development tools ! -- Vincent Rivière