aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-10-25 06:58:17 +0200
committerMartin Liska <mliska@suse.cz>2022-10-25 07:14:09 +0200
commit5a20a4705c960ac323d1fe25f766e1204e0c98bd (patch)
tree13fa8e48618bb0db6a45699cfe5227a61cae8179 /gcc/common
parentf3f000b7689ce9eb6364808072025672af1e4e1b (diff)
downloadgcc-5a20a4705c960ac323d1fe25f766e1204e0c98bd.zip
gcc-5a20a4705c960ac323d1fe25f766e1204e0c98bd.tar.gz
gcc-5a20a4705c960ac323d1fe25f766e1204e0c98bd.tar.bz2
riscv: fix cross compiler
Move riscv_get_valid_option_values out of Fixes: riscv/riscv-common.cc:1748:40: error: ‘riscv_get_valid_option_values’ was not declared in this scope gcc/ChangeLog: * common/config/riscv/riscv-common.cc (riscv_get_valid_option_values): Get out of ifdef.
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/riscv/riscv-common.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc
index 697bfe4..dead3802 100644
--- a/gcc/common/config/riscv/riscv-common.cc
+++ b/gcc/common/config/riscv/riscv-common.cc
@@ -1691,6 +1691,10 @@ riscv_compute_multilib (
return xstrdup (multilib_infos[best_match_multi_lib].path.c_str ());
}
+#undef TARGET_COMPUTE_MULTILIB
+#define TARGET_COMPUTE_MULTILIB riscv_compute_multilib
+#endif
+
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;
}
-#undef TARGET_COMPUTE_MULTILIB
-#define TARGET_COMPUTE_MULTILIB riscv_compute_multilib
-#endif
-
/* Implement TARGET_OPTION_OPTIMIZATION_TABLE. */
static const struct default_options riscv_option_optimization_table[] =
{