This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Another GLIBC build error with GCC6
- From: Steve Ellcey <sellcey at imgtec dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 21 Jul 2015 13:16:36 -0700
- Subject: Re: Another GLIBC build error with GCC6
- Authentication-results: sourceware.org; auth=none
- References: <1437496279 dot 19674 dot 126 dot camel at ubuntu-sellcey> <1437507995 dot 19674 dot 136 dot camel at ubuntu-sellcey> <55AEA71B dot 2020405 at redhat dot com>
- Reply-to: <sellcey at imgtec dot com>
On Tue, 2015-07-21 at 14:10 -0600, Jeff Law wrote:
> > diff --git a/elf/dl-deps.c b/elf/dl-deps.c
> > index eee146a..d4c5c00 100644
> > --- a/elf/dl-deps.c
> > +++ b/elf/dl-deps.c
> > @@ -30,6 +30,8 @@
> >
> > #include <dl-dst.h>
> >
> > +#include <libc-internal.h>
> > +
> > /* Whether an shared object references one or more auxiliary objects
> > is signaled by the AUXTAG entry in l_info. */
> > #define AUXTAG (DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM \
> > @@ -226,7 +228,11 @@ _dl_map_object_deps (struct link_map *map,
> > needed = needed_space;
> > }
> >
> > + /* Blah, blah. */
> > + DIAG_PUSH_NEEDS_COMMENT;
> > + DIAG_IGNORE_NEEDS_COMMENT (4.6, "-Warray-bounds");
> > if (l->l_info[DT_NEEDED] || l->l_info[AUXTAG] || l->l_info[FILTERTAG])
> > + DIAG_POP_NEEDS_COMMENT;
> > {
> > const char *strtab = (const void *) D_PTR (l, l_info[DT_STRTAB]);
> > struct openaux_args args;
> Any chance I could get you to file a GCC bug for this bogus warning?
>
> Jeff
Is it bogus? I never followed the various macros down far enough to see
if the references were out of bounds or not. I will see if I can create
a cut-down test case.
Steve Ellcey
sellcey@imgtec.com