This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC status on Linux/SPARC32
- To: Jack Lloyd <lloyd at acm dot jhu dot edu>
- Subject: Re: GCC status on Linux/SPARC32
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 31 Aug 2001 14:58:19 -0300
- Cc: <gcc at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.33L2.0108271613290.29171-100000@centaur.acm.jhu.edu>
On Aug 27, 2001, Jack Lloyd <lloyd@acm.jhu.edu> wrote:
> when I compile my program, the executable gives a Bus Error
Are you compiling with -mcpu=ultrasparc and using automatic variables
of type double? This is one of the reasons why GCC 3.0 isn't
ultrasparc-ready: it doesn't guarantee proper alignment of doubles,
even though it generates instructions that access them assuming
they're aligned, so the program ends up crashing. The solution is to
not use -mcpu=ultrasparc, since this is not supported yet.
--
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