From: Richard Kenner Date: Thu, 10 Nov 1994 20:04:44 +0000 (-0500) Subject: (lang_init): Ensure line number is 0, not -1. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bab5e7d55013f3d9f01beee97dd778c0040ab76e;p=gcc.git (lang_init): Ensure line number is 0, not -1. From-SVN: r8406 --- diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 87d784a2cf7..b1cc91d49e4 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -490,6 +490,12 @@ lang_init () and put it in input_filename. */ ungetc (check_newline (), finput); + /* The line number can be -1 if we had -g3 and the input file + had a directive specifying line 0. But we want predefined + functions to have a line number of 0, not -1. */ + if (lineno == -1) + lineno = 0; + /* If gen_declaration desired, open the output file. */ if (flag_gen_declaration) {