This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: Broken C array autosizing breaks glibc compile


>>>>> 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.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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