https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123355
Bug ID: 123355
Summary: clang: 6 * -Wmaybe-uninitialized
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
>From a recent build of gcc trunk with clang:
1.
../../trunk/gcc/expmed.cc:1864:45: warning: ‘*(unsigned int*)((char*)&imode +
offsetof(scalar_int_mode, scalar_int_mode::m_mode))’ may be used uninitialized
[-Wmaybe-uninitialized]
2.
../../trunk/gcc/optabs-tree.cc:637:10: warning: ‘which_ifn’ may be used
uninitialized [-Wmaybe-uninitialized]
3.
../../trunk/gcc/tree-vect-generic.cc:587:16: warning: ‘first_cst’ may be used
uninitialized [-Wmaybe-uninitialized]
4.
../../trunk/gcc/config/i386/i386-options.cc:2956:20: warning: ‘mask’ may be
used uninitialized [-Wmaybe-uninitialized]
5.
../../trunk/gcc/analyzer/diagnostic-manager.cc:2737:15: warning: ‘edge_sense’
may be used uninitialized [-Wmaybe-uninitialized]
6.
../../trunk/gcc/analyzer/store.h:322:5: warning:
‘size_in_bytes.generic_wide_int<fixed_wide_int_storage<128>
>::<unnamed>.fixed_wide_int_storage<128>::val[1]’ may be used uninitialized
[-Wmaybe-uninitialized]
#1-3 look to be in the general gcc code, #4 is arch specific
and #5 & #6 are in the analyzer.
Some, all or none of these warnings might be worth fixing.