From 1a456b49becaa1f7786d9c3129276077de8f86ed Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 22 Aug 2008 08:51:32 +0000 Subject: [PATCH] * c-ppoutput.c (init_pp_output): Initialize src_line to 1. From-SVN: r139426 --- gcc/ChangeLog | 4 ++++ gcc/c-ppoutput.c | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fc346e3..f788ef8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-08-21 Nathan Sidwell + + * c-ppoutput.c (init_pp_output): Initialize src_line to 1. + 2008-08-21 Richard Henderson * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove diff --git a/gcc/c-ppoutput.c b/gcc/c-ppoutput.c index 5fb41b2..9475b21 100644 --- a/gcc/c-ppoutput.c +++ b/gcc/c-ppoutput.c @@ -146,10 +146,8 @@ init_pp_output (FILE *out_stream) cb->used_undef = cb_used_undef; } - /* Initialize the print structure. Setting print.src_line to -1 here is - a trick to guarantee that the first token of the file will cause - a linemarker to be output by maybe_print_line. */ - print.src_line = -1; + /* Initialize the print structure. */ + print.src_line = 1; print.printed = 0; print.prev = 0; print.outf = out_stream; -- 2.7.4