This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
crash compiling mozilla using egcs CVS tree of 9/9/1998
- To: egcs-bugs at cygnus dot com
- Subject: crash compiling mozilla using egcs CVS tree of 9/9/1998
- From: Brendan Kehoe <brendan at cygnus dot com>
- Date: Wed, 9 Sep 1998 16:09:19 -0700 (PDT)
- Reply-To: brendan at zen dot org (Brendan Kehoe)
The code below, when compiled with -fPIC, will fail with
crash1a.c: In function `XmlInitUnknownEncoding':
crash1a.c:12: internal error--unrecognizable insn:
(insn 28 26 30 (set (reg:SI 27)
(const (unspec[
(symbol_ref/v:SI ("latin1_encoding"))
] 7))) -1 (nil)
(nil))
../../egcs/gcc/toplev.c:1365: Internal compiler error in function fatal_insn
using an updated egcs CVS tree of 9/9/1998. If you add any form of
optimization, the crash will go away. (Found while doing a linux build of the
current mozilla CVS tree.)
Host is Redhat linux 5.0 w/ kernel 2.0.32, with glibc-2.0.7-19.
-- cut --
struct normal_encoding {};
struct unknown_encoding {};
static const struct normal_encoding latin1_encoding = {};
struct encoding*
XmlInitUnknownEncoding(void *mem)
{
int i;
struct unknown_encoding *e = mem;
for (i = 0; i < sizeof(struct normal_encoding); i++)
((char *)mem)[i] = ((char *)&latin1_encoding)[i];
}
-- cut --