memory violation in egcs-1.1b release

Michal Jaegermann michal@ellpspace.math.ualberta.ca
Tue Sep 8 09:29:00 GMT 1998


Machine - Alpha EB64+ running Linux (2.0.33, 2.0.35, 2.0.36pre).

An attempt to compile file drivers/net/slhc.c from current 2.0.x kernels
(this file did not change from 1996) using release 1.1b of egcs (and
also recent earlier snapshots - sigh!) results in a compiler error like
this:
make drivers/net/slhc.s
gcc -D__KERNEL__ -I/usr/src/expm/linux-2.0.36pre/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce
-pipe -mno-fp-regs -Wa,-m21164a -DBWX_USABLE -S drivers/net/slhc.c -o
drivers/net/slhc.s
cc1: memory violation at pc=120106050 rp=120106170 (bad address = 11f7ffff0)
gcc: Internal compiler error: program cc1 got fatal signal 11
make: *** [drivers/net/slhc.s] Error 1

The same file compiles without any incidents when using 1.0.3a egcs
release.  It also does not cause any troubles with '-O2' changed to
'-O'.  If I remember correctly there were already problems with this
input in the past but, unfortunately, I do not have any details.

I include below preprocessed slhc.c, a fragment of assembler generated
with -O2 before "memory violation" hit and assembler created with -O.

  Michal
  michal@ellpspace.math.ualberta.ca
  michal@harddata.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slhc.cpp.c.gz
Type: application/x-gzip
Size: 36716 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19980908/7871fd5c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slhc.O.s.gz
Type: application/x-gzip
Size: 4995 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19980908/7871fd5c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slhc.s.gz
Type: application/x-gzip
Size: 2183 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19980908/7871fd5c/attachment-0002.bin>


More information about the Gcc-bugs mailing list