public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r10-11058] x86: fix VENDOR_MAX enum value Date: Tue, 25 Oct 2022 04:18:17 +0000 (GMT) [thread overview] Message-ID: <20221025041819.84977385828B@sourceware.org> (raw) https://gcc.gnu.org/g:7cee6ad35eb0fd9f79100e5fa7b6560b8ea7fe10 commit r10-11058-g7cee6ad35eb0fd9f79100e5fa7b6560b8ea7fe10 Author: Martin Liska <mliska@suse.cz> Date: Mon Oct 24 15:34:39 2022 +0200 x86: fix VENDOR_MAX enum value PR target/107364 gcc/ChangeLog: * common/config/i386/i386-cpuinfo.h (enum processor_vendor): Reorder enum values as BUILTIN_VENDOR_MAX should not point in the middle of the valid enum values. (cherry picked from commit f751bf4c5d1aaa1aacfcbdec62881c5ea1175dfb) Diff: --- gcc/common/config/i386/i386-cpuinfo.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/common/config/i386/i386-cpuinfo.h b/gcc/common/config/i386/i386-cpuinfo.h index 19f54862711..e0d64ac435f 100644 --- a/gcc/common/config/i386/i386-cpuinfo.h +++ b/gcc/common/config/i386/i386-cpuinfo.h @@ -30,8 +30,10 @@ enum processor_vendor VENDOR_INTEL = 1, VENDOR_AMD, VENDOR_OTHER, - BUILTIN_VENDOR_MAX = VENDOR_OTHER, - VENDOR_MAX + + /* Maximum values must be at the end of this enum. */ + VENDOR_MAX, + BUILTIN_VENDOR_MAX = VENDOR_OTHER }; /* Any new types or subtypes have to be inserted at the end. */
reply other threads:[~2022-10-25 4:18 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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221025041819.84977385828B@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe 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).