You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gcc: Default Rust frontend to stdin when no input file is provided
This fixes an Internal Compiler Error (ICE) where the `crab1` frontend
would segmentation fault if run without any input source files.
gcc/ChangeLog:
* rust/rust-lang.cc (grs_langhook_post_options): Set pfilename
to "-" if no input file is provided and num_in_fnames is 0.
* rust/rust-session-manager.cc (Session::handle_input_files):
Handle num_files == 0 case explicitly by setting filename to "-".
Signed-off-by: shreyas-omkar <[email protected]>
0 commit comments