]> 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>
Mon, 24 Oct 2022 18:26:44 +0000 (20:26 +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.

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

index 9893fc422bcc255c09f935ad3a9a619bdfa46387..586a1a2d0f612666f2c70c149f39e780d164b161 100644 (file)
@@ -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. */