]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Elimilate warning in class vcreate
authorxuli <xuli1@eswincomputing.com>
Tue, 12 Sep 2023 05:45:24 +0000 (05:45 +0000)
committerxuli <xuli1@eswincomputing.com>
Tue, 12 Sep 2023 06:52:48 +0000 (06:52 +0000)
commitb90a4c3dd502974f352084c23a6cdfd767e1340b
tree84d95a8bdd8d30ba6f5d43f0f68de9c100addf18
parent26da1970a4011893cdf3f38793dc856e2a88be25
RISC-V: Elimilate warning in class vcreate

The following is the content of class vcreate:
class vcreate : public function_base
{
public:
  gimple *fold (gimple_folder &f) const override
  {
    ....
  }

  rtx expand (function_expander &e) const override
  {
    return NULL_RTX;
  }
};

The warning caused is:
./riscv-gcc/gcc/config/riscv/riscv-vector-builtins-bases.cc:1719:34:
  warning: unused parameter 'e' [-Wunused-parameter]
  rtx expand (function_expander &e) const override
                                 ^

gcc/ChangeLog:

* config/riscv/riscv-vector-builtins-bases.cc: remove unused
parameter e and replace NULL_RTX with gcc_unreachable.
gcc/config/riscv/riscv-vector-builtins-bases.cc
This page took 0.057836 seconds and 5 git commands to generate.