https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90597
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Roger Sayle <sa...@gcc.gnu.org>: https://gcc.gnu.org/g:b61eaa25b0812a5996024e0ddb3535dde5a89c88 commit r11-2965-gb61eaa25b0812a5996024e0ddb3535dde5a89c88 Author: Roger Sayle <ro...@nextmovesoftware.com> Date: Tue Sep 1 12:03:21 2020 +0100 PR middle-end/90597: gcc_assert ICE in layout_type This patch fixes the default implementation of TARGET_VECTOR_ALIGNMENT, known as default_vector_alignment, using the same logic as my earlier nvptx patch, as the ICE caused by TYPE_SIZE(type) being zero during error handling in gcc.dg/attr-vector_size.c is common among backends, and is known in bugzilla as PR middle-end/90597, apparently a recent regression. 2020-09-01 Roger Sayle <ro...@nextmovesoftware.com> gcc/ChangeLog: PR middle-end/90597 * targhooks.c (default_vector_alignment): Return at least the GET_MODE_ALIGNMENT for the type's mode.