public inbox for
help / color / mirror / Atom feed
From: Richard Sandiford <>
Subject: [gcc r13-2945] aarch64: Avoid std::string in static data
Date: Thu, 29 Sep 2022 10:34:48 +0000 (GMT)	[thread overview]
Message-ID: <> (raw)

commit r13-2945-g13af9e9fda391f4f0566ad8f0b4d0448a7e984d0
Author: Richard Sandiford <>
Date:   Thu Sep 29 11:32:55 2022 +0100

    aarch64: Avoid std::string in static data
    Just a minor patch to avoid having to construct std::strings
    in static data.
            * common/config/aarch64/ (processor_name_to_arch)
            (arch_to_arch_name): Use const char * instead of std::string.

 gcc/common/config/aarch64/ | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/common/config/aarch64/ b/gcc/common/config/aarch64/
index 85fb5f26d99..8760e092064 100644
--- a/gcc/common/config/aarch64/
+++ b/gcc/common/config/aarch64/
@@ -147,7 +147,7 @@ static const struct aarch64_option_extension all_extensions[] =
 struct processor_name_to_arch
-  const std::string processor_name;
+  const char *const processor_name;
   const enum aarch64_arch arch;
   const uint64_t flags;
@@ -155,7 +155,7 @@ struct processor_name_to_arch
 struct arch_to_arch_name
   const enum aarch64_arch arch;
-  const std::string arch_name;
+  const char *const arch_name;
   const uint64_t flags;

                 reply	other threads:[~2022-09-29 10:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).