2017-06-22 Martin Liska <mliska@suse.cz>
Backport from mainline
2017-05-15 Martin Liska <mliska@suse.cz>
PR driver/31468
* gcc.c (process_command): Do not allow empty argument of -o option.
From-SVN: r249534
+2017-06-22 Martin Liska <mliska@suse.cz>
+
+ Backport from mainline
+ 2017-05-15 Martin Liska <mliska@suse.cz>
+
+ PR driver/31468
+ * gcc.c (process_command): Do not allow empty argument of -o option.
+
2017-06-22 Martin Liska <mliska@suse.cz>
Backport from mainline
output_file);
}
+ if (output_file != NULL && output_file[0] == '\0')
+ fatal_error (input_location, "output filename may not be empty");
+
/* If -save-temps=obj and -o name, create the prefix to use for %b.
Otherwise just make -save-temps=obj the same as -save-temps=cwd. */
if (save_temps_flag == SAVE_TEMPS_OBJ && save_temps_prefix != NULL)