[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: egcs on alpha



On 10-Dec-98 Christopher C Chimelis wrote:
 
 On Wed, 9 Dec 1998, Lonnie Sauter wrote:
 
 Yes, you can SOMEWHAT, but we don't have a version of gcc 2.7.2 that'll
 work anymore.  The old one that we used to have was so heavily patched
 that no one person can find all of the patches anymore.  The only one that
 *MIGHT* be able to is Richard Henderson (rth@cygnus.com) since he wrote
 the patches, but even that's doubtful since he has been working on egcs
 pretty hard.  Also, the older gcc on Alpha was REALLY buggy and
 practically unusable.

Thanks for the info!!  I am glad I did not put more time into getting it to
compile.
 
 It might, but that's doubtful.  One thing that the Alpha egcs has a
 problem with, though, is optimisation.  If you're compiling your programme
 with -O2, try -O0 and see if that helps.  Also, enable -mieee just in
 case.  If you're segfaulting, then it may be an underflow that's causing
 it rather than the compiler (solved by -mieee and related options).  Also,
 you may want to go back and recheck your coding.  gcc wasn't as strict as
 egcs is about proper coding (use -Wall and a few of the other -W
 switches...some of which aren't covered by -Wall, believe it or not).  It
 may compile it, but it may be failing logically somewhere.  I would also
 suggest using gdb to figure out what's going on internally with the
 binary.  It might just be a pointer problem or such.

I was not using any optimisation.  I did use gdb to track things down.  The
program was segfaulting in malloc().  I will try the above flags your mentioned
and see if that helps.

 
 Lastly, if all else fails, it may be a good idea to send the code to the
 egcs team to try to debug the problem.  If it's happening on both i386 and
 alpha, though, it can only be the code or the core compiler components
 themselves.  If you want, send me the code and I'll see what I can figure
 out when I get a chance.
 
Thank you for your help!!  I will try the things you suggested.  If I cannot
figure it out I may send the source to you and/or the egcs team.

Lon
 
===============================================================================
Lonnie Sauter http://www.math.ukans.edu/~sauter
315 Snow Hall
University of Kansas
Lawrence, KS  66045
fax (785)864-5255
===============================================================================


Reply to: