diff --git a/gcc/config/riscv/riscv-feature-bits.h b/gcc/config/riscv/riscv-feature-bits.h index b571c44285f..7ef7a2aecb7 100644 --- a/gcc/config/riscv/riscv-feature-bits.h +++ b/gcc/config/riscv/riscv-feature-bits.h @@ -28,13 +28,6 @@ struct riscv_feature_bits { unsigned long long features[RISCV_FEATURE_BITS_LENGTH]; }; -#define RISCV_VENDOR_FEATURE_BITS_LENGTH 1 - -struct riscv_vendor_feature_bits { - unsigned length; - unsigned long long features[RISCV_VENDOR_FEATURE_BITS_LENGTH]; -}; - struct riscv_cpu_model { unsigned mvendorid; unsigned long long marchid; diff --git a/libgcc/config/riscv/feature_bits.c b/libgcc/config/riscv/feature_bits.c index b34d4eea1d1..157bcdcad69 100644 --- a/libgcc/config/riscv/feature_bits.c +++ b/libgcc/config/riscv/feature_bits.c @@ -30,13 +30,6 @@ struct { unsigned long long features[RISCV_FEATURE_BITS_LENGTH]; } __riscv_feature_bits __attribute__ ((visibility ("hidden"), nocommon)); -#define RISCV_VENDOR_FEATURE_BITS_LENGTH 1 - -struct { - unsigned length; - unsigned long long features[RISCV_VENDOR_FEATURE_BITS_LENGTH]; -} __riscv_vendor_feature_bits __attribute__ ((visibility ("hidden"), nocommon)); - struct { unsigned mvendorid; unsigned long long marchid; @@ -382,8 +375,6 @@ static void __init_riscv_features_bits_linux () __riscv_feature_bits.features[i] = features[i]; __riscv_feature_bits.length = RISCV_FEATURE_BITS_LENGTH; - - __riscv_vendor_feature_bits.length = 0; } #endif @@ -402,7 +393,6 @@ __init_riscv_feature_bits () #else /* Unsupported, just initialize that into all zeros. */ __riscv_feature_bits.length = 0; - __riscv_vendor_feature_bits.length = 0; __riscv_cpu_model.mvendorid = 0; __riscv_cpu_model.marchid = 0; __riscv_cpu_model.mimpid = 0;