This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
invalid address bug in egcs optimizer (snapshot)
- To: egcs-bugs at cygnus dot com
- Subject: invalid address bug in egcs optimizer (snapshot)
- From: Michal Jaegermann <michal at ellpspace dot math dot ualberta dot ca>
- Date: Sat, 25 Jul 1998 23:24:40 -0600
On Linux/Alpha the latest egcs snapshot egcs-19980721
which identifies itself as:
gcc version egcs-2.91.51 19980714 (gcc2 ss-980609 experimental)
(it this identification a bug as well?), configured with --enable-haifa,
has the following problem.
While compiling Linux kernel 2.0.33, after 'make modules' this happens:
make[2]: Entering directory `/usr/src/linux-2.0.33/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.0.33/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -DMODULE -c -o slhc.o slhc.c
cc1: memory violation at pc=12010dc8c rp=12010dda4 (bad address = 11f7fffb8)
{standard input}: Assembler messages:
{standard input}:0: Warning: end of file not at end of a line; newline inserted
{standard input}:531: Error: inappropriate arguments for opcode `ldl'
gcc: Internal compiler error: program cc1 got fatal signal 11
make[2]: *** [slhc.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.0.33/drivers/net'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.33/drivers'
make: *** [modules] Error 2
Dropping an optimization level to -O allows to recompile this object
file. Other kernel source files compile fine with -O2 and resulting Linux
kernel boots and seems to be ok after five minutes of use. :-)
This is on alpha EB64+
cpu : Alpha
cpu model : EV4
cpu variation : 0
cpu revision : 0
cpu serial number : Linux_is_Great!
system type : EB64+
system variation : EB64+
system revision : 0
system serial number : MILO-0000
cycle frequency [Hz] : 0
timer frequency [Hz] : 1024.00
page size [bytes] : 8192
phys. address bits : 34
max. addr. space # : 63
BogoMIPS : 271.58
kernel unaligned acc : 0 (pc=0,va=0)
user unaligned acc : 0 (pc=0,va=0)
I include preprocessed file slhc.c.
Michal Jaegermann
michal@ellpspace.math.ualberta.ca
michal@harddata.com
shlc.pre.c.gz