Testcase for Irix6 chill bootstrap failures -gdwarf-2 related

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Thu Mar 9 10:27:00 GMT 2000


Regarding the mips bootstrap failures in the chill directory, I've
reduced the following testcase from gcc/ch/hash.c which is a gperf
generated file.

Compiling it on mips-sgi-irix6.2 with "-g -O2" or on i686-pc-linux-gnu
with "-g -O2 -gdwarf-2" causes a SEGV.  It also happens at -O1, and I
think the __inline keyword is necessary.

(This should probably be in the testsuite.)

		--Kaveh


__inline
struct resword *
in_word_set (str, len)
     register const char *str;
     register unsigned int len;
{
  enum
    {
      TOTAL_KEYWORDS = 300,
      MIN_WORD_LENGTH = 2,
      MAX_WORD_LENGTH = 30,
      MIN_HASH_VALUE = 7,
      MAX_HASH_VALUE = 2821
    };
 
  return 0;
}


More information about the Gcc-bugs mailing list