From: Jason Merrill Date: Thu, 23 Sep 1999 20:28:40 +0000 (+0000) Subject: cpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing this... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6ad5e90440d3ea6ef4af3e5eef826a47de18444;p=platform%2Fupstream%2Fgcc.git cpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing this input for a second time. * cpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing this input for a second time. From-SVN: r29634 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be99a12..553f6b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 22 12:04:58 1999 Jason Merrill + + * cpplib.c (handle_directive): Don't complain about `# NUMBER' if + we're seeing this input for a second time. + Thu Sep 23 12:59:14 1999 Alex Samuel Richard Henderson diff --git a/gcc/cpplib.c b/gcc/cpplib.c index b315186..80f02de 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -528,8 +528,12 @@ handle_directive (pfile) c = PEEKC (); if (c >= '0' && c <= '9') { - /* Handle # followed by a line number. */ - if (CPP_PEDANTIC (pfile)) + /* Handle # followed by a line number. Complain about using that + form if we're being pedantic, but not if this is regurgitated + input (preprocessed or fed back in by the C++ frontend). */ + if (CPP_PEDANTIC (pfile) + && ! CPP_PREPROCESSED (pfile) + && ! CPP_BUFFER (pfile)->manual_pop) cpp_pedwarn (pfile, "`#' followed by integer"); do_line (pfile, NULL); return 1;