Kito Cheng <kito.ch...@gmail.com> writes: > Hi Robin: > >> diff --git a/gcc/lto/lto-lang.cc b/gcc/lto/lto-lang.cc >> index 52d7626e92e..14d419c2013 100644 >> --- a/gcc/lto/lto-lang.cc >> +++ b/gcc/lto/lto-lang.cc >> @@ -1050,7 +1050,7 @@ lto_type_for_mode (machine_mode mode, int unsigned_p) >> else if (GET_MODE_CLASS (mode) == MODE_VECTOR_BOOL >> && valid_vector_subparts_p (GET_MODE_NUNITS (mode))) >> { >> - unsigned int elem_bits = vector_element_size (GET_MODE_BITSIZE (mode), >> + unsigned int elem_bits = vectwhereor_element_size (GET_MODE_PRECISION >> (mode), > > This seems weird?
FWIW, I bootstrapped & regression-tested the patch with that fixed on aarch64-linux-gnu (all languages). So OK with the above fixed from my POV. Thanks, Richard > >> GET_MODE_NUNITS (mode)); >> tree bool_type = build_nonstandard_boolean_type (elem_bits); >> return build_vector_type_for_mode (bool_type, mode);