This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Testcase for Irix6 chill bootstrap failures -gdwarf-2 related
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Testcase for Irix6 chill bootstrap failures -gdwarf-2 related
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 9 Mar 2000 13:26:48 -0500 (EST)
- Cc: jason at cygnus dot com
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;
}