[PATCH] Dynamic growable arrays for internal use

H.J. Lu hjl.tools@gmail.com
Tue Jun 6 15:46:00 GMT 2017


On Tue, Jun 6, 2017 at 8:30 AM, Stefan Liebler <stli@linux.vnet.ibm.com> wrote:
> Hi Florian,
>
> I get the following warning / werror with gcc 4.8.5 on s390x:
> gcc tst-dynarray.c -O3 -c ... -o <build>/malloc/tst-dynarray.o
> In file included from tst-dynarray.c:50:0:
> tst-dynarray.c: In function ‘do_test’:
> ../support/check.h:51:8: error: ‘result.length’ may be used uninitialized in
> this function [-Werror=maybe-uninitialized]
>      if (expr)                                                   \
>         ^
> tst-dynarray.c:377:23: note: ‘result.length’ was declared here
>      struct long_array result;
>                        ^
> In file included from tst-dynarray.c:50:0:
> ../support/check.h:51:8: error: ‘result.array’ may be used uninitialized in
> this function [-Werror=maybe-uninitialized]
>      if (expr)                                                   \
>         ^
> tst-dynarray.c:377:23: note: ‘result.array’ was declared here
>      struct long_array result;
>                        ^
> cc1: all warnings being treated as errors
>
>
> Have you seen those warnings on other architectures, too?
>

I also see:

../Rules:198: target
'/export/build/gnu/glibc-test/build-x86_64-linux/malloc/tst-dynarray'
given more than once in the same rule
../Rules:198: target
'/export/build/gnu/glibc-test/build-x86_64-linux/malloc/tst-dynarray-fail'
given more than once in the same rule

-- 
H.J.



More information about the Libc-alpha mailing list