ToT build error with ToT GCC on Aarch64
Jeff Law
law@redhat.com
Tue Jul 24 14:33:00 GMT 2018
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
More information about the Libc-alpha
mailing list