projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f46b6be
)
(lang_init): Ensure line number is 0, not -1.
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 10 Nov 1994 20:04:44 +0000
(15:04 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 10 Nov 1994 20:04:44 +0000
(15:04 -0500)
From-SVN: r8406
gcc/objc/objc-act.c
patch
|
blob
|
history
diff --git
a/gcc/objc/objc-act.c
b/gcc/objc/objc-act.c
index 87d784a2cf7a9fe59c3561fbddd5798483fe5d15..b1cc91d49e4d0045275ed2f36aed147b8935dd92 100644
(file)
--- 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)
{