diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2024-03-26 17:27:56 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2024-03-26 17:27:56 +0000 |
commit | 5be2313bceea7b482c17ee730efe604b910800bd (patch) | |
tree | d4944bf5b002f95d0384fe07c7d8097518e7f8fa | |
parent | fa60ac549649655a3f55e69f83d2e97423d3eb5c (diff) | |
download | gcc-5be2313bceea7b482c17ee730efe604b910800bd.zip gcc-5be2313bceea7b482c17ee730efe604b910800bd.tar.gz gcc-5be2313bceea7b482c17ee730efe604b910800bd.tar.bz2 |
aarch64: Use constexpr for out-of-line statics
GCC 4.8 complained about the use of const rather than constexpr
for out-of-line static constexprs.
gcc/
* config/aarch64/aarch64-feature-deps.h: Use constexpr for
out-of-line statics.
-rw-r--r-- | gcc/config/aarch64/aarch64-feature-deps.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/aarch64/aarch64-feature-deps.h b/gcc/config/aarch64/aarch64-feature-deps.h index 3641bad..79126db 100644 --- a/gcc/config/aarch64/aarch64-feature-deps.h +++ b/gcc/config/aarch64/aarch64-feature-deps.h @@ -71,9 +71,9 @@ template<aarch64_feature> struct info; static constexpr auto enable = flag | get_enable REQUIRES; \ static constexpr auto explicit_on = enable | get_enable EXPLICIT_ON; \ }; \ - const aarch64_feature_flags info<aarch64_feature::IDENT>::flag; \ - const aarch64_feature_flags info<aarch64_feature::IDENT>::enable; \ - const aarch64_feature_flags info<aarch64_feature::IDENT>::explicit_on; \ + constexpr aarch64_feature_flags info<aarch64_feature::IDENT>::flag; \ + constexpr aarch64_feature_flags info<aarch64_feature::IDENT>::enable; \ + constexpr aarch64_feature_flags info<aarch64_feature::IDENT>::explicit_on; \ constexpr info<aarch64_feature::IDENT> IDENT () \ { \ return info<aarch64_feature::IDENT> (); \ |