diff --git a/gcc/toplev.cc b/gcc/toplev.cc index d26467450e3..493eeb88629 100644 --- a/gcc/toplev.cc +++ b/gcc/toplev.cc @@ -1912,6 +1912,11 @@ lang_dependent_init (const char *name) if (!flag_wpa) { + if (name == nullptr) { + fatal_error(input_location, "no input files"); + return 0; + } + init_asm_output (name); if (!flag_generate_lto && !flag_compare_debug)