From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1130) id 237B238582AC; Wed, 6 Mar 2024 10:05:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 237B238582AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709719508; bh=oPxix3gnRHGDUFmfHJdwmLztSYiqDhtBS/2ErRUJaTg=; h=From:To:Subject:Date:From; b=suTGoIlwYcRLNlZ/hQpV52nouOp5ult176/YCAngtnA6nMCoW9kBi9mDG/zdAmI/9 IO+2xA68Ba8KcHb5lyQcPyEOTTpLEPn31klSylJ/S7Lrwjf/GYKNl5CnKUISz3O+o2 WGpPTg+5qZE9biWbAme/gL0sDxco9Hg36jRVU8q8= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Sandiford To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9333] aarch64: Define out-of-class static constants X-Act-Checkin: gcc X-Git-Author: Richard Sandiford X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 49d83e963aa453600088380aebd507e172eb80ad X-Git-Newrev: c7a9883663a888617b6e3584233aa756b30519f8 Message-Id: <20240306100508.237B238582AC@sourceware.org> Date: Wed, 6 Mar 2024 10:05:08 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c7a9883663a888617b6e3584233aa756b30519f8 commit r14-9333-gc7a9883663a888617b6e3584233aa756b30519f8 Author: Richard Sandiford Date: Wed Mar 6 10:04:56 2024 +0000 aarch64: Define out-of-class static constants While reworking the aarch64 feature descriptions, I forgot to add out-of-class definitions of some static constants. This could lead to a build failure with some compilers. This was seen with some WIP to increase the number of extensions beyond 64. It's latent on trunk though, and a regression from before the rework. gcc/ * config/aarch64/aarch64-feature-deps.h (feature_deps::info): Add out-of-class definitions of static constants. Diff: --- gcc/config/aarch64/aarch64-feature-deps.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/aarch64/aarch64-feature-deps.h b/gcc/config/aarch64/aarch64-feature-deps.h index a1b81f9070b..3641badb82f 100644 --- a/gcc/config/aarch64/aarch64-feature-deps.h +++ b/gcc/config/aarch64/aarch64-feature-deps.h @@ -71,6 +71,9 @@ template 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::flag; \ + const aarch64_feature_flags info::enable; \ + const aarch64_feature_flags info::explicit_on; \ constexpr info IDENT () \ { \ return info (); \