https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64465
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I get the same ICE as H.J., and the bug is that redirect_all_calls redirects a call to __builtin_unreachable , before it was _10 = __open_alias (__path_6(D), __oflag_3(D), __builtin_va_arg_pack ()); and afterwards __builtin_unreachable ("/dev/null", 3); (note, again there is the bug that the extra arguments aren't dropped).