(lang_init): Ensure line number is 0, not -1.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 10 Nov 1994 20:04:44 +0000 (15:04 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 10 Nov 1994 20:04:44 +0000 (15:04 -0500)
From-SVN: r8406

gcc/objc/objc-act.c

index 87d784a2cf7a9fe59c3561fbddd5798483fe5d15..b1cc91d49e4d0045275ed2f36aed147b8935dd92 100644 (file)
@@ -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)
     {