This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: successful build of 3.0.4 on sparcv9-sun-solaris2
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Douglas L Stewart <douglas at pobox dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 7 Mar 2002 10:08:37 -0800
- Subject: Re: successful build of 3.0.4 on sparcv9-sun-solaris2
- References: <004801c1c593$ffcd6600$0f9789d0@oemcomputer> <200203071500.g27F0Veu005153@pike.netdoor.com>
On Thu, Mar 07, 2002 at 09:00:30AM -0600, Douglas L Stewart wrote:
> config.guess says sparc-sun-solaris2.8 but I forced it to build
> sparcv9-sun-solaris2 because I wanted a 64 bit compiler.
GCC 3.0.4 does not support 64-bit sparc binaries. From the file
INSTALL/specific.html in the GCC 3.0.4 tree:
<p>Starting with Solaris 7, the operating system is capable of executing
64-bit SPARC V9 binaries. GCC 3.0 doesn't properly support this yet.
Although some patches or recipes to enable this support have been posted
to various newsgroups and mailing lists, we recommend against using
them, since the compiler may either crash or, worse, silently generate
bad code. If you really need this capability now, you might try a CVS
version of GCC 3.1, which will fully support this. If all you want is
code tuned for the UltraSPARC CPU, you should try the
<code>-mtune=ultrasparc</code> option instead, which should be safe from
those bugs and produce code that, unlike full 64-bit code, can still run
on non-UltraSPARC machines.
> $ gcc -v
> Reading specs from
> /opt/local/lib/gcc-lib/sparcv9-sun-solaris2/3.0.4/specs
> Configured with: ../gcc-3.0.4/configure --prefix=/opt/local
> sparcv9-sun-solaris2
> Thread model: posix
> gcc version 3.0.4