From 1fb2fbeb218f505cd073a975b171eca5194bd6ef Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Sun, 24 Apr 2005 16:27:37 -0700 Subject: [PATCH] c-opts.c (finish_options): Make the line-number of the location 0... * c-opts.c (finish_options): Make the line-number of the location 0, as assumed elsewhere, rather than 1. From-SVN: r98685 --- gcc/ChangeLog | 5 +++++ gcc/c-opts.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b52cb379c7..c183d6fe8c4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-24 Per Bothner + + * c-opts.c (finish_options): Make the line-number of the + location 0, as assumed elsewhere, rather than 1. + 2005-04-24 Kazu Hirata * tree-ssa-uncprop.c (equiv_stack): Change the type o diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 506543a108c..4ac8e9d4395 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1302,7 +1302,10 @@ finish_options (void) { size_t i; - cpp_change_file (parse_in, LC_RENAME, _("")); + cb_file_change (parse_in, + linemap_add (&line_table, LC_RENAME, 0, + _(""), 0)); + cpp_init_builtins (parse_in, flag_hosted); c_cpp_builtins (parse_in); -- 2.30.2