Subject: Re: gcc 3/4 status for NetBSD 3/4
To: arthur <arthur@ilvsun3.com>
From: Paul Ripke <stix@stix.id.au>
List: port-m68k
Date: 02/08/2007 12:52:32
On Wed, Feb 07, 2007 at 06:59:16PM -0500, arthur wrote:
> I found a problem with NetBSD 3.0 Sun3 gcc-3.3.3 generating invalid m68k
> assembly code and submitted a PR here:
> http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=35561
>
> What is the status of GCC for NetBSD/Sun3?
>
> I see here: http://gcc.gnu.org/gcc-3.3/changes.html#obsolete_systems_
> that gcc obsoleted: Sun systems, m68000-sun-sunos*, m68k-sun-sunos*, and
> m68k-sun-mach*
>
> Does that mean that gcc support for SunOS 4.1.1 was dropped, but gcc
> support for NetBSD Sun3 is still going strong? Does somebody have gcc4
> running on a sun3 that can try the test case and see if its fixed in
> gcc4? If gcc still has support for NetBSD, should I also submit the bug
> to the gcc folks, or does the NetBSD PR manager for gcc handle that?
AFAIK, gcc support for m68k--netbsdelf is still there, and it would
appear your problem may be fixed in gcc 4.1.2 - at least the code
in the PR compiles on my m68k Mac, which should mean it would build
on sun3.
I briefly looked at building TME, but I reckon it might take a week
on this poor old system. I might kick it off anyway, just to see
if it'd finish.
kitt:ksh$ uname -a
NetBSD kitt.stix.org.au 4.99.4 NetBSD 4.99.4 (KITT) #0: Tue Nov 21 22:16:31 EST 2006 stix@zion.stix.org.au:/export/netbsd/current/obj.mac68k/export/netbsd/current/src/sys/arch/mac68k/compile/KITT mac68k
kitt:ksh$ sysctl hw.model
hw.model = Apple Macintosh Quadra 605 (68040)
kitt:ksh$ gcc -v
Using built-in specs.
Target: m68k--netbsdelf
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf4.99.3 --host=m68k--netbsdelf --target=m68k--netbsdelf
Thread model: posix
gcc version 4.1.2 20061021 prerelease (NetBSD nb1 20061021)
kitt:ksh$ gcc -save-temps -c -O2 art9.c
kitt:ksh$
--
Paul Ripke