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]

c/1525: Internal compiler error in array_size_for_constructor



>Number:         1525
>Category:       c
>Synopsis:       Internal compiler error in array_size_for_constructor
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 29 11:26:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Albert Cranford
>Release:        2.97 20001229 i386
>Organization:
>Environment:
binutils 2.10.1
glibc 2.1.2
>Description:
When compiling kernel 2.4.0-test13-pre5 for K6 cpu
get Internal compiler error in array_size_for_constructor at
varasm.c:4469
module=linux/net/ipv4/netfilter/ip_tables.c
static struct ipt_table_info bootstrap
= {0, 0, { 0 }, { 0 }, { } };
WITH
struct ipt_table_info
{
unsigned int size;
unsigned int number;
unsigned int hook_entry[NF_IP_NUMHOOKS];
unsigned int underflow[NF_IP_NUMHOOKS];
char entries[0] __attribute__((aligned(SMP_CACHE_BYTES)));
};
AND
linux/include/linux/netfilter_ipv4.h:#define NF_IP_NUMHOOKS         5
linux/include/linux/cache.h:#define SMP_CACHE_BYTES L1_CACHE_BYTES
>How-To-Repeat:
compile kernel for arch=i386
>Fix:
initialize entries to 0.
>Release-Note:
>Audit-Trail:
>Unformatted:

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