aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-09-14 13:56:18 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-09-14 13:56:18 +0000
commite6db8ca0a1667175dc9d94575644c1df6b9cb052 (patch)
tree9e8a30f653fe0373cc5de506dce8b7723a9a14e3 /gcc/c-lex.c
parent43ef0757c532ca94771f60f99840d7fbffb53b7a (diff)
* c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
* c-lex.c (cb_line_change): Skip line changing whenever c-ppoutput.c would. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@71381 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index c9c69a68be0..2109eff1da9 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -197,8 +197,11 @@ cb_ident (cpp_reader *pfile ATTRIBUTE_UNUSED,
lexed token on the line. Used for diagnostic line numbers. */
static void
cb_line_change (cpp_reader *pfile ATTRIBUTE_UNUSED, const cpp_token *token,
- int parsing_args ATTRIBUTE_UNUSED)
+ int parsing_args)
{
+ if (token->type == CPP_EOF || parsing_args)
+ return;
+
src_lineno = SOURCE_LINE (map, token->line);
}