]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
x86: fix VENDOR_MAX enum value
authorMartin Liska <mliska@suse.cz>
Mon, 24 Oct 2022 13:34:39 +0000 (15:34 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 25 Oct 2022 03:56:39 +0000 (05:56 +0200)
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)

gcc/common/config/i386/i386-cpuinfo.h

index 3f6d2013dafddf0a40382abd5f0b5af51ce95650..0f12024141c7ce23198b64ca214532c39c6de259 100644 (file)
@@ -33,8 +33,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. */