Backport from mainline
2004-04-13 James E Wilson <wilson@specifixinc.com>
PR middle-end/20364
* c-opt.c (c_common_post_options): If this_input_filename is NULL,
increment errorcount and return false instead of true.
From-SVN: r96152
2005-03-08 James E Wilson <wilson@specifixinc.com>
+ Backport from mainline
+ 2004-04-13 James E Wilson <wilson@specifixinc.com>
+ PR middle-end/20364
+ * c-opt.c (c_common_post_options): If this_input_filename is NULL,
+ increment errorcount and return false instead of true.
+
Backport from mainline
2005-02-21 James E Wilson <wilson@specifixinc.com>
* toplev.c (backend_init): Don't call init_adjust_machine_modes here.
*pfilename = this_input_filename
= cpp_read_main_file (parse_in, in_fnames[0]);
+ /* Don't do any compilation or preprocessing if there is no input file. */
if (this_input_filename == NULL)
- return true;
+ {
+ errorcount++;
+ return false;
+ }
if (flag_working_directory
&& flag_preprocess_only && ! flag_no_line_commands)