This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

Re: ToT build error with ToT GCC on Aarch64


On 07/24/2018 07:57 AM, Florian Weimer wrote:
> On 07/23/2018 08:51 PM, Martin Sebor wrote:
>> Here's a bit more context showing the variable being referenced
>> (for simplicity, GCC takes singleton objects as arrays of one
>> element):
>>
>> In file included from fnmatch.c:244:
>> In function ‘findidxwc’,
>>      inlined from ‘internal_fnwmatch’ at fnmatch_loop.c:404:10:
>> ../locale/weightwc.h:124:28: error: array subscript 1 is outside array
>> bounds of ‘wint_t[1]’ {aka ‘unsigned int[1]’} [-Werror=array-bounds]
>>      if (cp[nhere - 1] > usrc[nhere -1])
>>                          ~~~~^~~~~~~~~~
>> In file included from fnmatch.c:315:
>> fnmatch_loop.c: In function ‘internal_fnwmatch’:
>> fnmatch_loop.c:342:13: note: while referencing ‘str’
>>         UCHAR str;
>>               ^~~
> 
> I think that's more useful.  Even the %K change helps a little bit IMHO.
Agreed.
jeff


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