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

            Bug ID: 122719
           Summary: i386: 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 recent gcc source code:

trunk/gcc/common/config/i386/i386-common.cc:2027:32: style: Parameter
'ATTRIBUTE_UNUSED' can be declared as pointer to const [constParameterPointer]
trunk/gcc/common/config/i386/i386-common.cc:2056:46: style: Parameter 'opts'
can be declared as pointer to const [constParameterPointer]
trunk/gcc/config/i386/i386-builtins.cc:1542:28: style: Variable 'opts' can be
declared as pointer to const [constVariablePointer]
trunk/gcc/config/i386/i386-builtins.cc:2082:38: style: Parameter 'args' can be
declared as pointer to const [constParameterPointer]
trunk/gcc/config/i386/i386-c.cc:777:28: style: Variable 'prev_opt' can be
declared as pointer to const [constVariablePointer]
trunk/gcc/config/i386/i386-c.cc:778:28: style: Variable 'cur_opt' can be
declared as pointer to const [constVariablePointer]
trunk/gcc/config/i386/i386-expand.cc:10442:25: style: Parameter 'operands' can
be declared as const array [constParameter]
trunk/gcc/config/i386/i386-expand.cc:1067:26: style: Parameter 'operands' can
be declared as const array [constParameter]
trunk/gcc/config/i386/i386-expand.cc:1119:28: style: Parameter 'operands' can
be declared as const array [constParameter]
trunk/gcc/config/i386/i386-expand.cc:1232:13: style: Parameter 'operands' can
be declared as const array [constParameter]
trunk/gcc/config/i386/i386-expand.cc:1697:13: style: Variable 'start' can be
declared as pointer to const [constVariablePointer]
trunk/gcc/config/i386/i386-expand.cc:2169:9: style: Parameter 'operands' can be
declared as const array [constParameter]
trunk/gcc/config/i386/i386-expand.cc:2410:26: style: Parameter 'operands' can
be declared as const array [constParameter]
trunk/gcc/config/i386/i386-expand.cc:644:49: style: Parameter 'operands' can be
declared as const array [constParameter]
trunk/gcc/config/i386/i386-expand.cc:8428:19: style: Variable 'prev' can be
declared as pointer to const [constVariablePointer]
trunk/gcc/config/i386/i386-expand.cc:933:58: style: Parameter 'operands' can be
declared as const array [constParameter]
trunk/gcc/config/i386/x86-tune-sched-atom.cc:195:17: style: Parameter
'pn_ready' can be declared as pointer to const [constParameterPointer]
trunk/gcc/config/i386/x86-tune-sched-bd.cc:452:57: style: Parameter
'window_list' can be declared as pointer to const [constParameterPointer]
trunk/gcc/config/i386/x86-tune-sched-bd.cc:614:21: style: Variable 'next_list'
can be declared as pointer to const [constVariablePointer]
trunk/gcc/config/i386/x86-tune-sched-bd.cc:615:21: style: Variable
'window0_list' can be declared as pointer to const [constVariablePointer]
trunk/gcc/config/i386/x86-tune-sched-bd.cc:703:21: style: Variable 'list' can
be declared as pointer to const [constVariablePointer]

and a couple elsewhere

trunk/libgcc/config/i386/cygming-crtbegin.c:60:49: note: Parameter 'o' can be
declared as pointer to const
trunk/libgcc/config/i386/gthr-win32.h:869:43: style: Parameter '__cond' can be
declared as pointer to const [constParameterPointer]

Reply via email to