diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-lex.c | 3 |
2 files changed, 6 insertions, 2 deletions
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 <neil@daikokuya.demon.co.uk> + * c-lex.c (cb_file_change): Treat in_system_header as strictly + boolean (0 or 1). + +2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk> + * cppmain.c: Update print.lineno with -P. 2000-12-18 Neil Booth <neil@daikokuya.demon.co.uk> 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? */ |