summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-24 23:27:37 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-24 23:27:37 +0000
commit0f027989d1b7212abd5f855c7e363cdaac14bf77 (patch)
tree54c6710a59eeb94fad888a28ae8c744e0bb79e09 /gcc/c-opts.c
parent1a5e37432a393e20270869ff81a7d7692e8c1234 (diff)
downloadgcc-0f027989d1b7212abd5f855c7e363cdaac14bf77.tar.gz
* c-opts.c (finish_options): Make the line-number of the <built-in>
location 0, as assumed elsewhere, rather than 1. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c5
1 files changed, 4 insertions, 1 deletions
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, _("<built-in>"));
+ cb_file_change (parse_in,
+ linemap_add (&line_table, LC_RENAME, 0,
+ _("<built-in>"), 0));
+
cpp_init_builtins (parse_in, flag_hosted);
c_cpp_builtins (parse_in);