https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122718

            Bug ID: 122718
           Summary: arm: internal enhancement: apply const across source
                    code
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

>From a run of static analyser cppcheck over the gcc trunk
source code:

trunk/gcc/common/config/arm/arm-common.cc:50:45: style: Parameter 'opts' can be
declared as pointer to const [constParameterPointer]
trunk/gcc/config/arm/arm-mve-builtins.cc:1037:9: style: Variable
'noprefix_name' can be declared as pointer to const [constVariablePointer]
trunk/gcc/config/arm/arm-mve-builtins.cc:1044:9: style: Variable
'overload_name' can be declared as pointer to const [constVariablePointer]
trunk/gcc/config/arm/arm-mve-builtins.cc:1055:13: style: Variable
'noprefix_overload_name' can be declared as pointer to const
[constVariablePointer]
trunk/gcc/config/arm/arm-mve-builtins.cc:2561:24: style: Variable 'rfn' can be
declared as reference to const [constVariableReference]
trunk/gcc/config/arm/arm-mve-builtins.cc:2593:24: style: Variable 'rfn' can be
declared as reference to const [constVariableReference]
trunk/gcc/config/arm/arm-mve-builtins.cc:2603:24: style: Variable 'rfn' can be
declared as reference to const [constVariableReference]
trunk/gcc/config/arm/driver-arm.cc:64:9: style: Variable 'fcpu_info' can be
declared as pointer to const [constVariablePointer]

and

trunk/libffi/src/arm/ffi.c:150:30: style: Parameter 'cif' can be declared as
pointer to const [constParameterPointer]
trunk/libffi/src/arm/ffi.c:176:23: style: Variable 'eo_regp' can be declared as
pointer to const [constVariablePointer]
trunk/libffi/src/arm/ffi.c:365:13: style: Variable 'rtype' can be declared as
pointer to const [constVariablePointer]
trunk/libffi/src/arm/ffi.c:443:39: style: Parameter 'cif' can be declared as
pointer to const [constParameterPointer]
trunk/libffi/src/arm/ffi.c:479:23: style: Variable 'eo_regp' can be declared as
pointer to const [constVariablePointer]
trunk/libffi/src/arm/ffi.c:72:22: style: Parameter 'ty' can be declared as
pointer to const [constParameterPointer]
trunk/libffi/src/arm/ffi.c:87:24: style: Parameter 'ty' can be declared as
pointer to const [constParameterPointer]

and a third set:

trunk/libgcc/config/arm/freebsd-atomic.c:218:1: style: Parameter 'mem' can be
declared as pointer to const [constParameterPointer]
trunk/libgcc/config/arm/freebsd-atomic.c:219:1: style: Parameter 'mem' can be
declared as pointer to const [constParameterPointer]
trunk/libgcc/config/arm/freebsd-atomic.c:220:1: style: Parameter 'mem' can be
declared as pointer to const [constParameterPointer]
trunk/libgcc/config/arm/linux-atomic.c:56:58: style: Parameter 'ptr' can be
declared as pointer to const [constParameterPointer]
trunk/libgcc/config/arm/pr-support.c:426:42: style: Parameter 'context' can be
declared as pointer to const [constParameterPointer]
trunk/libgcc/config/arm/pr-support.c:432:42: style: Parameter 'context' can be
declared as pointer to const [constParameterPointer]


Some of these might be worth fixing.

Reply via email to