This is the mail archive of the gcc-bugs@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]

Builds failing on Sparcs


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.


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