Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gcc/toplev.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Comment on lines +1915 to +1919
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably breaks invocations using stdin instead of a regular file. This probably needs a different fix to use stdin in this case.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I will implement the invocation using stdin.

init_asm_output (name);

if (!flag_generate_lto && !flag_compare_debug)
Expand Down
Loading