This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug build/23442] New: New warning with GCC 8
- From: "mliska at suse dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 24 Jul 2018 05:03:23 +0000
- Subject: [Bug build/23442] New: New warning with GCC 8
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=23442
Bug ID: 23442
Summary: New warning with GCC 8
Product: glibc
Version: 2.27
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
CC: carlos at redhat dot com
Target Milestone: ---
I see new warning being seen:
[ 129s] gcc fnmatch.c -c -std=gnu11 -fgnu89-inline -D_FORTIFY_SOURCE=2 -O2
-U_FORTIFY_SOURCE -Wall -Werror -Wundef -Wwrite-strings
-fasynchronous-unwind-tables -fmerge-all-constants -fmessage-length=0
-frounding-math -fstack-clash-protection -fstack-protector-strong
-funwind-tables -g -grecord-gcc-switches -Wstrict-prototypes
-Wold-style-definition -ftls-model=initial-exec -I../include
-I/home/abuild/rpmbuild/BUILD/glibc-2.27/cc-base/posix
-I/home/abuild/rpmbuild/BUILD/glibc-2.27/cc-base
-I../sysdeps/unix/sysv/linux/x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/x86/nptl
-I../sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/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/x86_64
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/64
-I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu
-I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu
-I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86
-I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I..
-I../libio -I. -D_LIBC_REENTRANT -include
/home/abuild/rpmbuild/BUILD/glibc-2.27/cc-base/libc-modules.h
-DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC
-DTOP_NAMESPACE=glibc -o
/home/abuild/rpmbuild/BUILD/glibc-2.27/cc-base/posix/fnmatch.o -MD -MP -MF
/home/abuild/rpmbuild/BUILD/glibc-2.27/cc-base/posix/fnmatch.o.dt -MT
/home/abuild/rpmbuild/BUILD/glibc-2.27/cc-base/posix/fnmatch.o
[ 129s] In file included from fnmatch.c:243:
[ 129s] fnmatch_loop.c: In function 'internal_fnwmatch':
[ 129s] ../locale/weightwc.h:103:28: error: array subscript 1 is outside array
bounds of 'wint_t[1]' {aka 'unsigned int[1]'} [-Werror=array-bounds]
[ 129s] if (cp[nhere - 1] > usrc[nhere -1])
[ 129s] ~~~~^~~~~~~~~~
It's seen on GCC trunk since r262893.
--
You are receiving this mail because:
You are on the CC list for the bug.