[gnu.gcc.bug] Bug in gcc-1.36 for pyramid.

bg@NADA.KTH.SE (Bj|rn Gr|nvall) (10/21/89)

MACHINE pyramid 98??

DESCRIPTION Program cc1 got fatal signal 4.

This happens in reload.c at line 1774:

  /* The operands don't meet the constraints.
     goal_alternative describes the alternative
     that we could reach by reloading the fewest operands.
     Reload so as to fit it.  */

  if (best == MAX_RECOG_OPERANDS + 100)
    {
      /* No alternative works with reloads??  */
      if (insn_code_number >= 0)
=>	abort ();
      error_for_asm (insn, "inconsistent operand constraints in an `asm'");
      /* Avoid further trouble with this insn.  */
      PATTERN (insn) = gen_rtx (USE, VOIDmode, const0_rtx);
      n_reloads = 0;
      return;
    }

If you want more info from the coredump please mail me.

Script started on Sat Oct 21 13:35:06 1989
draken-1> echo `hosttype`
pyr
draken-2> gcc -v
gcc version 1.36
draken-3> cat bug-gcc.c 
char	*dbp;

tail(cp)
     char *cp;
{
  register int len = 0;

  while (*cp && (*cp&~' ') == ((*(dbp+len))&~' '))
    cp++, len++;
}
draken-4> gcc -c bug-gcc.c -v
gcc version 1.36
 /usr/local/lib/gcc-cpp -v -undef -D__GNUC__ -Dpyr -Dunix -D__pyr__ -D__unix__ bug-gcc.c /usr/tmp/cc024779.cpp
GNU CPP version 1.36
 /usr/local/lib/gcc-cc1 /usr/tmp/cc024779.cpp -quiet -dumpbase bug-gcc.c -version -o /usr/tmp/cc024779.s
GNU C version 1.36 (pyr) compiled by GNU C version 1.36.
default target switches: -munix -mindex -mgnu-stdarg
gcc: Program cc1 got fatal signal 4.
draken-5> gdb /usr/local/lib/gcc-cc1 core
GDB 3.2, Copyright (C) 1988 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.
Type "help" for a list of commands.
(gdb) wwhere
#0  0x88ea0 in abort ()
#1  0x72178 in find_reloads (...) (...)
#2  0x74eb4 in reload (...) (...)
#3  0x1c0cc in rest_of_compilation (...) (...)
#4  0x10d60 in finish_function (...) (...)
#5  0x3d34 in yyparse (...) (...)
#6  0x1adfc in compile_file (...) (...)
#7  0x1ce70 in main (...) (...)
(gdb) qq
draken-6> ^Dexit

script done on Sat Oct 21 13:36:18 1989