This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Builds failing on Sparcs
- To: mark at codesourcery dot com, gcc-bugs at gcc dot gnu dot org
- Subject: Builds failing on Sparcs
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 05 Jan 2001 14:32:00 +0000
- cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
Mark, builds of the latest CVS code fail on the sparc, my guess is that it
is your latest ggc changes are not getting alignments right.
We have
echo int xxy_us_dummy > tmp-dum.c
gdb cc1
(gdb) run tmp-dum.c
Program received signal SIGBUS, Bus error.
0x9800c in tree_cons (purpose=0x0, value=0xef7400d0, chain=0x0)
at /home/rearnsha/gnusrc/egcs-cross/gcc/tree.c:1276
1276 memset (node, 0, sizeof (struct tree_common));
(gdb) print node
$1 = 0xef7901a4
(gdb) list
1271 {
1272 register tree node;
1273
1274 node = ggc_alloc_tree (sizeof (struct tree_list));
1275
1276 memset (node, 0, sizeof (struct tree_common));
(gdb) x/i $pc
0x9800c <tree_cons+20>: std %o2, [ %o0 ]
and we see that node is incorrectly aligned for a std instruction.
R.