This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
is 980223.c wrong?
- To: gcc at gcc dot gnu dot org
- Subject: is 980223.c wrong?
- From: Aldy Hernandez <aldyh at redhat dot com>
- Date: 14 Sep 2001 14:47:01 -0400
i'm having doubts about 980223.c:
int nil;
object cons1[2] = { {(long) &nil, 0}, {(long) &nil, 0} };
object cons2[2] = { {(long) &cons1, 64}, {(long) &nil, 0} };
if sizeof(long) != sizeof(int *), the initializer is not a constant and
gcc barfs.
particularly this gives problem with mips when longs are 64bits and GP
registers (and consecuently pointers) are 32bits.
--
Aldy Hernandez E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.