From mint-bounce@lists.fishpool.fi  Tue Jan 22 17:29:48 2008
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Subject: Re: [MiNT] GCC 4.2.2 and binary compatibility
From: Alan Hourihane <alanh@fairlite.demon.co.uk>
To: Vincent =?ISO-8859-1?Q?Rivi=E8re?= <vincent.riviere@freesbee.fr>
Cc: mint@fishpool.com
In-Reply-To: <4759BDC5.1050006@freesbee.fr>
References: <4747F03E.4050101@freesbee.fr>  <4752B129.4010106@freesbee.fr>
	 <1196949946.9217.29.camel@localhost>  <47583601.7070107@freesbee.fr>
	 <1196968336.9217.60.camel@localhost>  <475850B5.4040802@freesbee.fr>
	 <1196980934.9217.83.camel@localhost>  <4759BDC5.1050006@freesbee.fr>
Content-Type: text/plain; charset=UTF-8
Date: Sat, 08 Dec 2007 15:11:30 +0000
Message-Id: <1197126690.9148.5.camel@localhost>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: alanh@fairlite.demon.co.uk
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
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 m0MGP1bN004618
Status: 
X-Status: 
X-Keywords:                   


On Fri, 2007-12-07 at 22:40 +0100, Vincent Rivière wrote:
> > Yes, I'm definitely going to submit them here.
> 
> That's a very good thing to update the sources in order to be compilable 
> with newer compilers...
> 
>  > Frank - given that you are the maintainer of FreeMiNT - what's your
>  > position on leaving gcc 2.95.3 finally behind and upgrading to GCC 4.2.2
>  > for FreeMiNT kernel builds ?
> 
> ... but I'm not sure GCC 4.2.2 is mature enough to fully replace GCC 
> 2.95.3 in the MiNT world.
> 
> The main reason is, for the moment, GCC 4.2.2 only works as a 
> cross-compiler ! On my site I provide the binaries for Cygwin, allowing 
> to produce MiNT binaries from MS Windows (personally, I don't need 
> more). Some people reported successful builds on Linux.
> 
> With my GCC patch, MiNT becomes a supported *target* for GCC. But the 
> MiNT *host* is not officially supported by GCC. I mean that GCC 4.2.2 
> needs additional patching to be compiled itself for MiNT. Until now, 
> haven't found enough courage to try to do this. But maybe I'm a bit 
> pessimist, and It may not be so difficult ?
> 
> However, I've already made the work for binutils 2.18 : the patch is 
> valid for the MiNT target and host ! The MiNT native binaries are 
> available on the unsupported part on my site. They can be easily 
> recompiled, and may be RPMized !
> 
> Seriously, I think things should be done in this order :
> 
> 1) Update the sources of the various projects (MiNTLib, FreeMiNT, 
> EmuTOS...) to be compilable with GCC 4.2.2. It can't be a bad thing, 
> because the new GCC is more strict and cant point to hidden potential 
> bugs. The compilation can be tested with the Cygwin binaries (or other).
> 
> 2) Repackage the Cygwin GCC binaries with the latest MiNTLib version.
> 
> 3) Patch GCC 4.2.2 in order to be compiled for a MiNT host, in order to 
> have a native compiler.
> 
> 4) Compile the various projects with GCC 4.2.2 in order to provide 
> official binaries, embedding the latest MiNTLib.
> 
> Well... we just have to do it, now !

Right,

Vincent - do you want to get GCC 4.2.2 done for MiNT host ?

Alan.


