aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-10-24 15:34:39 +0200
committerMartin Liska <mliska@suse.cz>2022-10-24 20:26:44 +0200
commitf751bf4c5d1aaa1aacfcbdec62881c5ea1175dfb (patch)
tree2b7ee389382629cddce0b8d62d696c5516730d94 /gcc/common
parentf7d8ccfda2d5c90dac97b1a3ede8b10391a3cc40 (diff)
downloadgcc-f751bf4c5d1aaa1aacfcbdec62881c5ea1175dfb.zip
gcc-f751bf4c5d1aaa1aacfcbdec62881c5ea1175dfb.tar.gz
gcc-f751bf4c5d1aaa1aacfcbdec62881c5ea1175dfb.tar.bz2
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.
Diffstat (limited to 'gcc/common')
-rw-r--r--gcc/common/config/i386/i386-cpuinfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/common/config/i386/i386-cpuinfo.h b/gcc/common/config/i386/i386-cpuinfo.h
index 9893fc4..586a1a2 100644
--- a/gcc/common/config/i386/i386-cpuinfo.h
+++ b/gcc/common/config/i386/i386-cpuinfo.h
@@ -34,8 +34,10 @@ enum processor_vendor
VENDOR_CENTAUR,
VENDOR_CYRIX,
VENDOR_NSC,
+
+ /* Maximum values must be at the end of this enum. */
+ VENDOR_MAX,
BUILTIN_VENDOR_MAX = VENDOR_OTHER,
- VENDOR_MAX
};
/* Any new types or subtypes have to be inserted at the end. */