[Bug c/99324] [8/9/10/11 Regression] ICE in mark_addressable, at gimple-expr.c:918 since r6-314
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 2 10:02:07 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99324
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Wouldn't it be better to remove the mark_addressable call from build_va_arg and
call {c,cxx}_mark_addressable in the callers instead.
That way we'd also e.g. diagnose invalid (on i686-linux):
register __builtin_va_list ap __asm ("%ebx");
void
foo (int a, ...)
{
__builtin_va_arg (ap, int);
}
More information about the Gcc-bugs
mailing list