Article View: gnu.gcc.bug
Article #196bug in gcc
From: Dan J Golick
Date: Fri, 24 Jul 1992 12:42
Date: Fri, 24 Jul 1992 12:42
69 lines
2455 bytes
2455 bytes
/*
Bug report:
gcc -v :
Reading specs from /usr/local/lib/gcc-lib/i386v32/2.1/specs
gcc version 2.1
This program when compiled with the following compile line gives an internal error (output follows):
gcc -fwritable-strings -DBUG -O2 -g -c -I/usr2/views3/include t.c
OUTPUT:
t.c: In function `vw_history':
t.c:69: internal error--unrecognizable insn:
(insn 33 32 34 (parallel[
(set (mem:BLK (plus:SI (reg:SI 34)
(symbol_ref:SI ("history"))))
(mem:BLK (reg:SI 26)))
(use (const_int 15))
(use (const_int 1))
(set (reg:SI 29)
(const_int 0))
(set (reg:SI 27)
(plus:SI (reg:SI 35)
(const_int 15)))
(set (reg:SI 28)
(plus:SI (reg:SI 26)
(const_int 15)))
] ) -1 (nil)
(expr_list:REG_UNUSED (reg:SI 29)
(expr_list:REG_UNUSED (reg:SI 27)
(expr_list:REG_UNUSED (reg:SI 28)
(nil)))))
gcc: Internal compiler error: program cc1 got fatal signal 6
The bug goes away by compiling without the BUG define or turning off strength
optimization as in the following compile line:
gcc -fwritable-strings -O2 -DBUG -fno-strength-reduce -g -c -I/usr2/views3/include t.c
*/
struct vwdays /* Scroll region data structure */
{
unsigned char l_dash[15];
unsigned char vw_day_date[14];
unsigned char l_[2];
unsigned char vw_day_samps[5];
unsigned char r_[9];
unsigned char r_dash[16];
} ;
struct history /* Data form data structure */
{
struct vwdays vw_days[10]; /* For scroll region on form */
} ;
struct history history;
int vw_history()
{
int i=0;
while(tstcall())
{
#if defined BUG
strcpy(history.vw_days[i].l_dash, "--------------");
#else
strcpy(history.vw_days[i].l_dash, "-------------");
#endif
strcpy(history.vw_days[i].l_, ".");
i++;
}
}
Technical Details
Message-ID:
<9207242042.AA18697@world.std.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!world.std.com!dangoShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!world.std.com!dango From: dango@world.std.com (Dan J Golick) Subject: bug in gcc Message-ID: <9207242042.AA18697@world.std.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 24 Jul 1992 12:42:52 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 70