gcc v 2.95.2 on sparc-sun-solaris2.6 crashes with internal error
Colin Surprenant
colins@vivatrix.com
Fri Nov 10 15:50:00 GMT 2000
gcc -v :
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)
uname -a :
SunOS sr0.mb.monsieur.net 5.6 Generic_105181-20 sun4m sparc
SUNW,SPARCstation-20
Bug triggered by:
gcc -g -O2 -c -o mbx.o mbx.c
mbx.c: In function `mbx_hdrpos':
mbx.c:1371: internal error--unrecognizable insn:
(insn 78 76 80 (set (reg:SI 129)
(minus:SI (const_int 4 [0x4])
(const_int -4096 [0xfffff000]))) -1 (nil)
(expr_list:REG_EQUAL (const_int 4100 [0x1004])
(nil)))
Bug solved with this patch on mbx.c :
1336c1336,1337
< LOCAL->buf = (char *) fs_get ((LOCAL->buflen = HDRBUFLEN) + SLOP);
---
> LOCAL->buflen = HDRBUFLEN;
> LOCAL->buf = (char *) fs_get (HDRBUFLEN + SLOP);
For you info, the package is UW-IMAP found at
http://www.washington.edu/imap/
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mbx.i
Type: text/x-c
Size: 117823 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001110/094617ea/attachment.bin>
More information about the Gcc-bugs
mailing list