public inbox for
 help / color / mirror / Atom feed
From: "Martin Liška" <>
Cc: Kito Cheng <>
Subject: [PATCH] riscv: fix cross compiler
Date: Tue, 25 Oct 2022 07:01:02 +0200	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

More riscv_get_valid_option_values out of

riscv/ error: ‘riscv_get_valid_option_values’ was not declared in this scope

Now I get:

./xgcc -B. --completion=-mcp

./xgcc -B. --completion=-mtune

Ready for master?



	* common/config/riscv/
	  (riscv_get_valid_option_values): Get out of ifdef.
 gcc/common/config/riscv/ | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gcc/common/config/riscv/ b/gcc/common/config/riscv/
index 697bfe435c8..dead3802f83 100644
--- a/gcc/common/config/riscv/
+++ b/gcc/common/config/riscv/
@@ -1691,6 +1691,10 @@ riscv_compute_multilib (
     return xstrdup (multilib_infos[best_match_multi_lib].path.c_str ());
+#define TARGET_COMPUTE_MULTILIB riscv_compute_multilib
 vec<const char *>
 riscv_get_valid_option_values (int option_code,
 			       const char *prefix ATTRIBUTE_UNUSED)
@@ -1726,10 +1730,6 @@ riscv_get_valid_option_values (int option_code,
   return v;
-#define TARGET_COMPUTE_MULTILIB riscv_compute_multilib
 static const struct default_options riscv_option_optimization_table[] =

  reply	other threads:[~2022-10-25  5:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-30  2:05 [PATCH] RISC-V: Support --target-help for -mcpu/-mtune Kito Cheng
2022-10-24 10:18 ` Kito Cheng
2022-10-25  5:01   ` Martin Liška [this message]
2022-10-25  5:02     ` [PATCH] riscv: fix cross compiler Martin Liška
2022-10-25  5:10       ` Kito Cheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).