https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123136
Bug ID: 123136
Summary: new analyzer code meets clang
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
It seems a lot of new analyser code appeared over the weekend.
Here are some warnings from clang for it:
../../trunk/gcc/analyzer/engine.cc:2272:21: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
../../trunk/gcc/analyzer/engine.cc:3834:21: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
../../trunk/gcc/analyzer/engine.cc:3848:21: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
../../trunk/gcc/analyzer/engine.cc:3874:25: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
../../trunk/gcc/analyzer/engine.cc:4094:29: warning: unused variable
'src_point' [-Wunused-variable]
../../trunk/gcc/analyzer/engine.cc:4900:23: warning: comparison of integers of
different signs: 'int' and 'unsigned int' [-Wsign-compare]
../../trunk/gcc/analyzer/ops.h:1002:10: warning: private field 'm_cfg_in_edge'
is not used [-Wunused-private-field]
../../trunk/gcc/analyzer/ops.h:633:3: warning: 'dyn_cast_control_flow_op'
overrides a member function but is not marked 'override'
[-Winconsistent-missing-override]
../../trunk/gcc/analyzer/ops.h:837:14: warning: private field 'm_dst_snode' is
not used [-Wunused-private-field]
../../trunk/gcc/analyzer/region-model.cc:7598:11: warning: unused parameter
'logger' [-Wunused-parameter]
../../trunk/gcc/analyzer/supergraph-fixup-locations.cc:87:15: warning: private
field 'm_sg' is not used [-Wunused-private-field]
../../trunk/gcc/analyzer/supergraph-fixup-locations.cc:88:20: warning: private
field 'm_purge_map' is not used [-Wunused-private-field]
../../trunk/gcc/analyzer/supergraph-sorting.cc:112:29: warning: private field
'm_worklist' is not used [-Wunused-private-field]
/usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/bits/unique_ptr.h:92:2../../trunk/gcc/analyzer/supergraph-simplify.cc:
warning: delete called on non-final 'ana::
phis_for_edge_op' that has virtual functions but non-virtual destructor
[-Wdelete-non-abstract-non-virtual-dtor]
_../../trunk/gcc/analyzer/ops.h:633:3p: warning: 'dyn_cast_control_flow_op'
overrides a member function but is not marked 'override'
[-Winconsistent-missing-override]
Some of these might be worth fixing.
There were also about forty warnings about destructors, but I will report
those after this report has been looked at.