]> 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)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 18 Sep 2023 18:10:01 +0000 (12:10 -0600)
commit971b3709ffd413d2380aa03f888fc9149f428f59
tree82ef8cb9871798835ff0608789062a603dc9d44b
parentfdd53998b953333cca158280c965066a550705a7
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.

(cherry picked from commit b90a4c3dd502974f352084c23a6cdfd767e1340b)
gcc/config/riscv/riscv-vector-builtins-bases.cc
This page took 0.197325 seconds and 6 git commands to generate.