aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-11-10 15:04:44 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-11-10 15:04:44 -0500
commitbab5e7d55013f3d9f01beee97dd778c0040ab76e (patch)
tree69250046449b6c3e01e45ce5915ebd14e3440a9a /gcc/objc
parentf46b6be4cb63130376b9e70358de9e907a165825 (diff)
downloadgcc-bab5e7d55013f3d9f01beee97dd778c0040ab76e.zip
gcc-bab5e7d55013f3d9f01beee97dd778c0040ab76e.tar.gz
gcc-bab5e7d55013f3d9f01beee97dd778c0040ab76e.tar.bz2
(lang_init): Ensure line number is 0, not -1.
From-SVN: r8406
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/objc-act.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 87d784a..b1cc91d 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)
{