From a13eab064f93565e9af407a8a9e84f8558acd27e Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 28 Apr 2015 20:32:06 +0200 Subject: [PATCH] Eat newlines inside INPUT statements in linker scripts ld/ PR ld/18344 * ldlex.l (INPUTLIST): Increment lineno on newline. --- ld/ChangeLog | 5 +++++ ld/ldlex.l | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index de594c05a5f..3448bbadcfc 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2015-04-28 Andreas Schwab + + PR ld/18344 + * ldlex.l (INPUTLIST): Increment lineno on newline. + 2015-04-24 Alan Modra * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): diff --git a/ld/ldlex.l b/ld/ldlex.l index a19c5d6efe5..d9ef8301d5d 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -450,7 +450,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* return *yytext; } -[\n] { lineno++; } +[\n] { lineno++; } #.* { /* Eat up comments */ } -- 2.30.2