X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ld%2Fldlex.l;h=0fcbe84c8b589db28ef9689cda816a7b89d71b6a;hb=6f028f3c0737f82a91a4b5b5bdde1ea889226026;hp=c2abc59571dd9357e7cb75807ef959011f12e414;hpb=1c6aafe894645ca1da5c0dd0661bca19caf37ad0;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldlex.l b/ld/ldlex.l index c2abc59571..0fcbe84c8b 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -2,7 +2,7 @@ %{ -/* Copyright (C) 1991-2019 Free Software Foundation, Inc. +/* Copyright (C) 1991-2020 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support. This file is part of the GNU Binutils. @@ -25,6 +25,7 @@ #include "bfd.h" #include "safe-ctype.h" #include "bfdlink.h" +#include "ctf-api.h" #include "ld.h" #include "ldmisc.h" #include "ldexp.h" @@ -675,7 +676,7 @@ comment (void) while (1) { c = input(); - while (c != '*' && c != EOF) + while (c != '*' && c != 0) { if (c == '\n') lineno++; @@ -694,7 +695,7 @@ comment (void) if (c == '\n') lineno++; - if (c == EOF) + if (c == 0) { einfo (_("%F%P: EOF in comment\n")); break;