[Bug middle-end/71719] New: [7 Regression] invalid set-but-not-used warning with vectors
zsojka at seznam dot cz
gcc-bugzilla@gcc.gnu.org
Thu Jun 30 20:07:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71719
Bug ID: 71719
Summary: [7 Regression] invalid set-but-not-used warning with
vectors
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Created attachment 38806
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38806&action=edit
reduced testcase
Compiler output:
$ gcc -Wall -W unused.c -c
unused.c: In function 'foo':
unused.c:6:8: warning: parameter 'v' set but not used
[-Wunused-but-set-parameter]
foo (V v)
^
The variable is used (even all its members). Happens at any -O* level.
$ gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-237869-checking-yes-rtl-df-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-237869-checking-yes-rtl-df-nographite-amd64
Thread model: posix
gcc version 7.0.0 20160630 (experimental) (GCC)
More information about the Gcc-bugs
mailing list