[gnu.gcc.bug] Bug in gcc-1.36.92 on Sparc running SunOS 4.0.3

grossman@SUNBURN.STANFORD.EDU (Stu Grossman) (01/12/90)

Compiling the following program will make gcc-cc1 die with a signal ten (bus
error).

prescan()
{
	char delim;
	int c, anglecnt;

	do
	{
		for (;;)
		{
			if (c == delim)
				break;
		}
	} while (c != 0 && (c != 1 || anglecnt > 0));
}

----Cut Here----

Sunburn> gcc -O -c parseaddr.c
gcc: Program cc1 got fatal signal 10.
Sunburn> 
Sunburn> ls -l core
-rw-r--r--  1 grossman 402776496 Jan 11 18:01 core
Sunburn> 

Sunburn> gdb /usr/local/lib/gcc-cc1 core
GDB 3.4, Copyright (C) 1989 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /usr/local/lib/gcc-cc1...done.
Core file is from "gcc-cc1".
Program terminated with signal 10, Bus error.
Reading in symbols for jump.c...done.
Type "help" for a list of commands.
(gdb) bt
#0  sets_cc0_p (x=(rtx) 0x5) (jump.c line 940)
#1  0x5b2ec in loop_skip_over (...) (...)
#2  0x595ac in scan_loop (...) (...)
#3  0x592e8 in loop_optimize (...) (...)
#4  0x1c8d0 in rest_of_compilation (...) (...)
#5  0x12354 in finish_function (...) (...)
#6  0x5f7c in yyparse (...) (...)
#7  0x1bb60 in compile_file (...) (...)
#8  0x1db20 in main (...) (...)
(gdb) q