This is the mail archive of the 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]

[Bug build/25097] new -Warray-bounds with GCC 10

--- Comment #10 from dave.anglin at bell dot net ---
On 2019-11-13 12:19 p.m., cvs-commit at gcc dot wrote:
>     Tested on x86_64-linux-gnu with mainline GCC.  Built with
>, also with mainline GCC.  Due to GCC PR 92039,
>     there are failures left on 32-bit architectures with float128 support.
The following warning is still pressent on hppa:

gcc rtld.c -c -std=gnu11 -fgnu89-inline  -g -O2 -Wall -Wwrite-strings -Wundef
error -fmerge-all-constants -frounding-math -fno-stack-protector
ypes -Wold-style-definition -fmath-errno   -fPIC   -mdisable-fpregs
-D'SYSCONFDIR="/etc"'  -ftls-model=initial-exec      -I../include
-I/home/dave/gnu/glibc/objdir/elf  -I/home/dave/gnu/glibc/objdir 
-I../sysdeps/unix/sysv/linux/hppa  -I../sysdeps/hppa/nptl 
-I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux 
-I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu 
-I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix 
-I../sysdeps/posix  -I../sysdeps/hppa/hppa1.1  -I../sysdeps/wordsize-32 
-I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/hppa/fpu
 -I../sysdeps/hppa  -I../sysdeps/ieee754  -I../sysdeps/generic 
-I.. -I../libio -I. -nostdinc -isystem
/home/dave/opt/test/lib/gcc/hppa-linux-gnu/10.0.0/include -isystem
/home/dave/opt/test/lib/gcc/hppa-linux-gnu/10.0.0/include-fixed -isystem
/usr/include  -D_LIBC_REENTRANT -include
/home/dave/gnu/glibc/objdir/libc-modules.h -DMODULE_NAME=rtld -include
../include/libc-symbols.h  -DPIC -DSHARED     -DTOP_NAMESPACE=glibc -o
/home/dave/gnu/glibc/objdir/elf/rtld.os -MD -MP -MF
/home/dave/gnu/glibc/objdir/elf/rtld.os.dt -MT
rtld.c: In function 'dl_main':
rtld.c:1016:27: error: array subscript 'cnt' is outside the bounds of an
interior zero-length array 'struct auditstate[0]'
 1016 |    GL(dl_rtld_map).l_audit[cnt].cookie = (intptr_t) &GL(dl_rtld_map);
In file included from ../include/dlfcn.h:4,
                 from rtld.c:20:
../include/link.h:335:7: note: while referencing 'l_audit'
  335 |     } l_audit[0];
      |       ^~~~~~~
cc1: all warnings being treated as errors

You are receiving this mail because:
You are on the CC list for the bug.

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