This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Testcase for Irix6 chill bootstrap failures -gdwarf-2 related


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;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]