diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-07-07 20:22:12 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:18 +0000 |
commit | 76376bd72660f3b6471c93affcd00057a6014551 (patch) | |
tree | 433c8157a5a48c738b80e6d8c0718292231510bd | |
parent | c54f4e711e7503a17a98cf08bdfeb6fecd0bc418 (diff) | |
download | gcc-76376bd72660f3b6471c93affcd00057a6014551.zip gcc-76376bd72660f3b6471c93affcd00057a6014551.tar.gz gcc-76376bd72660f3b6471c93affcd00057a6014551.tar.bz2 |
Minor Nios II tweaks based on new information found
-rw-r--r-- | gcc/config/nios2/nios2-rust.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |