diff options
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 5de5019..ee7be16 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1564,7 +1564,7 @@ c_common_post_options (pfilename) init_c_lex (); /* Yuk. WTF is this? I do know ObjC relies on it somewhere. */ - lineno = 0; + input_line = 0; } cpp_get_callbacks (parse_in)->file_change = cb_file_change; @@ -1572,8 +1572,8 @@ c_common_post_options (pfilename) /* NOTE: we use in_fname here, not the one supplied. */ *pfilename = cpp_read_main_file (parse_in, in_fname); - saved_lineno = lineno; - lineno = 0; + saved_lineno = input_line; + input_line = 0; /* If an error has occurred in cpplib, note it so we fail immediately. */ @@ -1586,7 +1586,7 @@ c_common_post_options (pfilename) bool c_common_init () { - lineno = saved_lineno; + input_line = saved_lineno; /* Set up preprocessor arithmetic. Must be done after call to c_common_nodes_and_builtins for type nodes to be good. */ @@ -1624,7 +1624,7 @@ c_common_parse_file (set_yydebug) warning ("YYDEBUG not defined"); #endif - (*debug_hooks->start_source_file) (lineno, input_filename); + (*debug_hooks->start_source_file) (input_line, input_filename); finish_options(); pch_init(); yyparse (); |