]> 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 04:18:07 +0000 (06:18 +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 19f548627115a9e5c08fc5be7b7bb07e1a066301..e0d64ac435f527cfb33785513129e15a2f5763e2 100644 (file)
@@ -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. */