Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Dan J Golick
Fri, 24 Jul 1992 12:42
bug in gcc
Author: 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++;
}
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads