From 665ad67835723e4ffcd91c52acfe96bf695209d5 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Mon, 18 Dec 2000 20:38:35 +0000 Subject: c-lex.c (cb_file_change): Treat in_system_header as strictly boolean (0 or 1). * c-lex.c (cb_file_change): Treat in_system_header as strictly boolean (0 or 1). From-SVN: r38361 --- gcc/ChangeLog | 5 +++++ gcc/c-lex.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37df328..0be4dc0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2000-12-18 Neil Booth + * c-lex.c (cb_file_change): Treat in_system_header as strictly + boolean (0 or 1). + +2000-12-18 Neil Booth + * cppmain.c: Update print.lineno with -P. 2000-12-18 Neil Booth diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 645661d..4dee1ef 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -230,7 +230,6 @@ cb_file_change (pfile, fc) cpp_reader *pfile ATTRIBUTE_UNUSED; const cpp_file_change *fc; { - /* Do the actions implied by the preceding numbers. */ if (fc->reason == FC_ENTER) { /* Don't stack the main buffer on the input stack. */ @@ -284,7 +283,7 @@ cb_file_change (pfile, fc) } update_header_times (fc->to.filename); - in_system_header = fc->sysp; + in_system_header = fc->sysp != 0; input_filename = fc->to.filename; lineno = fc->to.lineno; /* Do we need this? */ -- cgit v1.1