https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96566

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Either the test can be skipped on nvptx or any targets that don't emit
something like a .zero similar directive, or we should after the size of
variable is too large diagnostic throw the initializer away (set it to
error_mark_node)?
Of course, I guess the timeout will happen even if the object size is not too
large for the warning, just slightly below it,
struct Ax_m3 { char a[PTRDIFF_MAX / 32 - 3], ax[]; };
struct Ax_m3 xm3_3 = { { 0 }, { 1, 2, 3 } };
will IMHO still timeout if it needs to emit 288 quadrillion "0, " strings.

Reply via email to