This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 64 bit gcc?
- To: Jack Cummings <jack at ice dot mudshark dot org>
- Subject: Re: 64 bit gcc?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 11 Nov 2001 22:39:07 -0200
- Cc: Alex Zhukov <szhukov at priocom dot com>, Janis Johnson <janis187 at us dot ibm dot com>, John Young <j dot e dot young at larc dot nasa dot gov>, tom at tom dot cc dot wayne dot edu, gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3BCEF43A.FB014AC2@larc.nasa.gov><20011018125037.A28420@us.ibm.com><7746652BE7B.AAA442A@epsilon.priocom.com><20011021164341.A25630@ice.mudshark.org>
On Oct 21, 2001, Jack Cummings <jack@ice.mudshark.org> wrote:
> On Mon, Oct 22, 2001 at 02:35:24AM +0300, Alex Zhukov wrote:
>> Few weeks ago I have compiled gcc(c c++ ...) v3.0.1 for
>> sparcv9-sun-solaris2.8 and it works just _perfect_ for me with Sun's binutils
>> (if one can call the as ar nm ld etc. this way).
>> #file `which gcc`
>> reports this:
>> > /usr/local/bin/gcc: ELF 64-bit MSB executable SPARCV9 Version 1,
>> dynamically linked, not stripped
>> As a test I did full recompile of grep, gawk, mc, apache and few other
>> widely used progs, all they work just fine.
>> NOTE: I look through the the gcc mailing not very often, so I may have missed
>> something, but I still dont see any problem using the _standard gcc 3.0.1 on
>> sparcv9-sun-solaris2.8.
> Hmm. I've compiled all that, and more, using gcc sparcv9-sun-solaris2.7.
> I noticed problems with:
> perl-5.6.1
> gnome-libs-1.4.1.2
> Which led me to believe that the people who maintain the compiler might
> know what they are talking about when they say it has problems. :)
The reason why GCC 3.0.x and earlier are regarded as not fully
supporting 64-bit sparc are two:
- sometimes, variables of type double are misaligned in the stack,
such that if a load or store instruction that requires alignment to
8 bytes boundaries is used, your program will crash with a SIGBUS
- infrastructure needed to fully represent the 64-bit sparc ABI was
missing in GCC 3.0.x, even though it was already present as a patch
in Red Hat's GCC 2.96. It was deemed to risky for GCC 3.0, and was
only merged into the GCC CVS tree after the 3.0 branch was created.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me