public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* host_integerp vs [] decls
@ 2001-09-14 12:54 DJ Delorie
  2001-09-14 14:41 ` Richard Henderson
  0 siblings, 1 reply; 19+ messages in thread
From: DJ Delorie @ 2001-09-14 12:54 UTC (permalink / raw)
  To: gcc

This trivial test case segv's gcc:

void test() {
  int a[][0] = {{1}};
}

Program received signal SIGSEGV, Segmentation fault.
0x82e2dc4 in host_integerp (t=0x0, pos=0) at /uberbuild/src/gcc/tree.c:3471
3471      return (TREE_CODE (t) == INTEGER_CST

[ gdb ] where
#0  0x82e2dc4 in host_integerp (t=0x0, pos=0) at /uberbuild/src/gcc/tree.c:3471
#1  0x811873c in store_constructor (exp=0x4012f280, target=0x4013b250, align=32, cleared=0, size=0)
    at /uberbuild/src/gcc/expr.c:4714
#2  0x8117dc4 in store_constructor_field (target=0x4013b250, bitsize=0, bitpos=0, mode=BLKmode, 
    exp=0x4012f280, type=0x40137bd0, align=32, cleared=0, alias_set=0)
    at /uberbuild/src/gcc/expr.c:4496
...

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: host_integerp vs [] decls
@ 2001-09-14 16:26 Richard Kenner
  0 siblings, 0 replies; 19+ messages in thread
From: Richard Kenner @ 2001-09-14 16:26 UTC (permalink / raw)
  To: dj; +Cc: gcc

    Another `obvious' fix is to have host_integerp return false when given
    NULL.  Not sure if that would fix or hide other problems ;-)

I think it would hide other problems.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2001-09-20 18:11 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-14 12:54 host_integerp vs [] decls DJ Delorie
2001-09-14 14:41 ` Richard Henderson
2001-09-14 14:47   ` DJ Delorie
2001-09-14 14:50     ` Richard Henderson
2001-09-14 18:33   ` DJ Delorie
2001-09-17 16:20     ` Richard Henderson
2001-09-19 12:21   ` DJ Delorie
2001-09-19 12:37     ` Richard Henderson
2001-09-19 12:44       ` DJ Delorie
2001-09-19 13:10       ` DJ Delorie
2001-09-19 13:36         ` Richard Henderson
2001-09-19 18:10           ` DJ Delorie
2001-09-20  2:04             ` Franz Sirl
2001-09-20  9:40               ` DJ Delorie
2001-09-20 14:06             ` Richard Henderson
2001-09-20 17:28               ` DJ Delorie
2001-09-20 18:00           ` Zack Weinberg
2001-09-20 18:11             ` DJ Delorie
2001-09-14 16:26 Richard Kenner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).