Bug Report - gcc 2.95.1 with UltraSparc

Antonio.BORNEO@st.com Antonio.BORNEO@st.com
Tue Nov 9 02:35:00 GMT 1999


We think we have found a bug in gcc version 2.95.1.

The attached C code (bus_error.c), when compiled with the command
line reported in the comment, and run on a UltraSparc workstation,
provokes a bus error.
Without the option -mcpu=ultrasparc the problem is no more present
and the program runs correctly.

Analyzing the assembly code we have noticed that this bus error is
caused by an 8-byte wide memory store instruction (mnemonic 'std')
that writes in an address not 8-byte aligned.

The incorrect store instruction is placed before the call to the
second fprintf, so we suppose that the problem is in the compiler
and not in the libraries we use.

The command line we used to configure Gcc is the following one.
configure --prefix=$top_dir --enable-haifa --enable-cpp

Best regards
 Lanfranco Salinari
 Antonio Borneo


More information about the Gcc-bugs mailing list