Richard Earnshaw (rearnsha) <[email protected]>) commented on the code:


> +++ gcc/testsuite/gcc.dg/vect/vect-early-break_65.c
> @@ -5,3 +5,4 @@
> +/* { dg-additional-options "-fno-short-enums" { target short_enums } } */
>  /* { dg-additional-options "-Ofast -fno-vect-cost-model 
> -fdump-tree-vect-details" } */
>  
>  enum a { b };
Alternatively, you could change this line to add `dummy = __INT_MAX__` to the 
enum so that the compiler does not try to pack the type into a smaller object.  
This makes the code portable across enum packing behaviours.


--
https://forge.sourceware.org/gcc/gcc/pulls/199#issuecomment-6814

Reply via email to