This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Broken C array autosizing breaks glibc compile
>>>>> Andreas Jaeger writes:
>>>>> Franz Sirl writes:
>> Hi,
>> with current CVS gcc at least PPC and alpha have problems with compiling a
>> locale test in the glibc testsuite. Inspection shows that gcc miscompiles
>> this routine:
>> struct keyword_t
>> {
>> const char *name;
>> int token;
>> int symname_or_ident;
>> int locale;
>> int base;
>> int group;
>> int list;
>> };
>> static const struct keyword_t *
>> repertoiremap_hash (const char *str, unsigned int len)
>> {
>> static const struct keyword_t wordlist[0] =
> Please try:
> wordlist[] instead of wordlist[0].
> Does this fix the bug? Please tell me and I'll fix glibc.
I could reproduce the problem on my system - and that my proposed fix
works. I've committed the patch to glibc.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj