This is the mail archive of the gcc@gcc.gnu.org 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: 64 bit gcc?


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


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