From 76376bd72660f3b6471c93affcd00057a6014551 Mon Sep 17 00:00:00 2001 From: SimplyTheOther Date: Tue, 7 Jul 2020 20:22:12 +0800 Subject: Minor Nios II tweaks based on new information found --- gcc/config/nios2/nios2-rust.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/config/nios2/nios2-rust.c b/gcc/config/nios2/nios2-rust.c index 3a013da..b2352c0 100644 --- a/gcc/config/nios2/nios2-rust.c +++ b/gcc/config/nios2/nios2-rust.c @@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see void nios2_rust_target_cpu_info(void) { rust_add_target_info("target_arch", "nios2"); - // made up names as no apparent support (current or historical) in llvm + // made up (most) names as only apparently basic historical support in llvm if (TARGET_HAS_DIV) rust_add_target_info("target_feature", "hw-div"); if (TARGET_HAS_MUL) @@ -72,9 +72,11 @@ void nios2_rust_target_cpu_info(void) { switch (nios2_arch_option) { case ARCH_R1: rust_add_target_info("target_feature", "r1"); + rust_add_target_info("target_feature", "nios2r1"); break; case ARCH_R2: rust_add_target_info("target_feature", "r2"); + rust_add_target_info("target_feature", "nios2r2"); break; default: // should this be an error? break; -- cgit v1.1