This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
master: Build failure in malloc with GCC 7
- From: Florian Weimer <fweimer at redhat dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 12 Jul 2017 10:35:40 +0200
- Subject: master: Build failure in malloc with GCC 7
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 976543D94F
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 976543D94F
This is from a recent build in Fedora rawhide:
malloc.c:1590:50: error: array subscript is above array bounds
[-Werror=array-bounds]
#define fastbin(ar_ptr, idx) ((ar_ptr)->fastbinsY[idx])
~~~~~~~~~~~~~~~~~~~~^~~~~~
malloc.c:3572:26: note: in expansion of macro 'fastbin'
mfastbinptr *fb = &fastbin (av, idx);
^~~~~~~
Does anyone else see this? The code is not obviously wrong; someone
needs to look at GIMPLE dumps to figure out what is going on here.
Thanks,
Florian