diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-07-23 22:14:49 +0800 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:19 +0000 |
commit | 05e57eac43e1a9699ad6142756e00c1bcb9fbb1e (patch) | |
tree | c82674342e063ede3702019fce552993da7c3815 | |
parent | 1bedf7bfc18623bad65413b6273358b436beaf61 (diff) | |
download | gcc-05e57eac43e1a9699ad6142756e00c1bcb9fbb1e.zip gcc-05e57eac43e1a9699ad6142756e00c1bcb9fbb1e.tar.gz gcc-05e57eac43e1a9699ad6142756e00c1bcb9fbb1e.tar.bz2 |
Added VAX target hook (or provisional one at least)
-rw-r--r-- | gcc/config/vax/vax.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h index c1d0171..3a4b2aa 100644 --- a/gcc/config/vax/vax.h +++ b/gcc/config/vax/vax.h @@ -33,6 +33,23 @@ along with GCC; see the file COPYING3. If not see } \ while (0) +#define TARGET_RUST_CPU_INFO() \ + do { \ + rust_add_target_info("target_arch", "vax"); \ + if (TARGET_G_FLOAT) \ + rust_add_target_info("target_feature", "g-float"); \ + else \ + rust_add_target_info("target_feature", "d-float"); \ + if (TARGET_UNIX_ASM) \ + rust_add_target_info("target_feature", "unix-as"); \ + else \ + rust_add_target_info("target_feature", "gas"); \ + if (TARGET_VAXC_ALIGNMENT) \ + rust_add_target_info("target_feature", "vaxc-alignment"); \ + if (TARGET_QMATH) \ + rust_add_target_info("target_feature", "qmath"); \ + } while (0) + /* Use -J option for long branch support with Unix assembler. */ #define ASM_SPEC "-J" |