This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: questions of gcc compiling.

Janis Johnson <> writes:

> On Tue, Sep 25, 2001 at 01:38:44PM +0800, ΑυΣΆΘ¨ wrote:
> > Hello, gcc team,
> >
> > Now I have a question need your help.
> > My system is solaris 5.8(64bits), when I tried to compile c sourcecode with gcc3.0.1 or gcc2.95.c for solaris8 with the option -m64, the system give me a error message. So I wonder to know does the corrent version of gcc support solaris 5.8(64bits). If it can, what shall do the next? If it cann't, does it has another solution?
> >
> This question comes up a lot, but the platform-specific installation
> instructions don't cover it except to say that GCC 2.95 doesn't work for
> sparc64 targets.  A couple of days ago Jack Cummings reported that he
> builds GCC 3.0.1 as a 64-bit compiler for sparcv9-sun-solaris2.7 by
> first building a cross compiler from 32->64 bits and then builds a
> native compiler from that.
> Will Jack or one of the sparc maintainers please add this information to
> the platform-specific installation information, along with the specific
> steps to take?

I had prepared the patch below for install.texi, explaining why GCC 3.0.x
shouldn't be used with 64-bit SPARC V9 on Solaris 7/8, but none of the
SPARC maintainers has commented on its accuracy yet.  This should really
be dealt with in time for the 3.0.2 release, since this question comes up
over and over again in many fora.


Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE

Tue Sep 25 15:09:03 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* doc/install.texi (Specific, sparc-sun-solaris2*): Document 64-bit

Index: gcc/doc/install.texi
RCS file: /cvs/gcc/gcc/gcc/doc/install.texi,v
retrieving revision
diff -u -p -r1.1.2.58 install.texi
--- install.texi	2001/09/24 17:35:02
+++ install.texi	2001/09/25 17:24:54
@@ -3104,6 +3104,18 @@ This is Sun bug 4237974.  This is fixed
 2.6 and has been fixed in later (5.x) versions of the assembler,
 starting with Solaris 7.

+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
+@option{-mtune=ultrasparc} 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]