public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Elimilate warning in class vcreate
@ 2023-09-18 18:24 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-09-18 18:24 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:971b3709ffd413d2380aa03f888fc9149f428f59
commit 971b3709ffd413d2380aa03f888fc9149f428f59
Author: xuli <xuli1@eswincomputing.com>
Date: Tue Sep 12 05:45:24 2023 +0000
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)
Diff:
---
gcc/config/riscv/riscv-vector-builtins-bases.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/riscv/riscv-vector-builtins-bases.cc b/gcc/config/riscv/riscv-vector-builtins-bases.cc
index be3df2c1ea2..ee218a03017 100644
--- a/gcc/config/riscv/riscv-vector-builtins-bases.cc
+++ b/gcc/config/riscv/riscv-vector-builtins-bases.cc
@@ -1856,9 +1856,9 @@ public:
return clobber;
}
- rtx expand (function_expander &e) const override
+ rtx expand (function_expander &) const override
{
- return NULL_RTX;
+ gcc_unreachable ();
}
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-18 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-18 18:24 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Elimilate warning in class vcreate Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).