public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-13] GCN: Silence unused-variable warning
@ 2023-05-30 11:25 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2023-05-30 11:25 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:eb35d873d552572ab4a669d4e390acf1fed57c04
commit eb35d873d552572ab4a669d4e390acf1fed57c04
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Tue May 30 11:44:42 2023 +0200
GCN: Silence unused-variable warning
gcc/ChangeLog:
* config/gcn/gcn.cc (gcn_vectorize_builtin_vectorized_function): Remove
unused in_mode/in_n variables.
(cherry picked from commit 124bc77ba9868db07d284b4dea31797da1468515)
Diff:
---
gcc/ChangeLog.omp | 8 ++++++++
gcc/config/gcn/gcn.cc | 2 --
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gcc/ChangeLog.omp b/gcc/ChangeLog.omp
index a6968f31a99..f25b3f36800 100644
--- a/gcc/ChangeLog.omp
+++ b/gcc/ChangeLog.omp
@@ -1,3 +1,11 @@
+2023-05-30 Tobias Burnus <tobias@codesourcery.com>
+
+ Backport from master:
+ 2023-05-05 Tobias Burnus <tobias@codesourcery.com>
+
+ * config/gcn/gcn.cc (gcn_vectorize_builtin_vectorized_function): Remove
+ unused in_mode/in_n variables.
+
2023-05-12 Julian Brown <julian@codesourcery.com>
* omp-builtins.def (BUILT_IN_OMP_IS_INITIAL_DEVICE): New builtin.
diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc
index 27fc40bfb6e..e879691dfde 100644
--- a/gcc/config/gcn/gcn.cc
+++ b/gcc/config/gcn/gcn.cc
@@ -5407,8 +5407,6 @@ gcn_vectorize_builtin_vectorized_function (unsigned int fn, tree type_out,
machine_mode out_mode = TYPE_MODE (TREE_TYPE (type_out));
int out_n = TYPE_VECTOR_SUBPARTS (type_out);
- machine_mode in_mode = TYPE_MODE (TREE_TYPE (type_in));
- int in_n = TYPE_VECTOR_SUBPARTS (type_in);
combined_fn cfn = combined_fn (fn);
/* Keep this consistent with the list of vectorized math routines. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-30 11:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 11:25 [gcc/devel/omp/gcc-13] GCN: Silence unused-variable warning Tobias Burnus
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).