summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
616d4ba)
* c-opt.c (c_common_post_options): If this_input_filename is NULL,
increment errorcount and return false instead of true.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80678
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-04-13 James E Wilson <wilson@specifixinc.com>
+
+ * c-opt.c (c_common_post_options): If this_input_filename is NULL,
+ increment errorcount and return false instead of true.
+
2004-04-13 Uros Bizjak <uros@kss-loka.si>:
* optabs.c (expand_twoval_unop): Reorder function arguments.
2004-04-13 Uros Bizjak <uros@kss-loka.si>:
* optabs.c (expand_twoval_unop): Reorder function arguments.
*pfilename = this_input_filename
= cpp_read_main_file (parse_in, in_fnames[0]);
*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)
if (this_input_filename == NULL)
+ {
+ errorcount++;
+ return false;
+ }
if (flag_working_directory
&& flag_preprocess_only && ! flag_no_line_commands)
if (flag_working_directory
&& flag_preprocess_only && ! flag_no_line_commands)