From bab5e7d55013f3d9f01beee97dd778c0040ab76e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 10 Nov 1994 15:04:44 -0500 Subject: [PATCH] (lang_init): Ensure line number is 0, not -1. From-SVN: r8406 --- gcc/objc/objc-act.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.30.2