diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-16 06:01:40 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-16 06:01:40 +0000 |
commit | 56f6686bd2c57f15a5c6e58423f23550ce59df29 (patch) | |
tree | da5d599de3dc978c1a27abae97ff1176e7f941fd /gcc | |
parent | ff5decbb58fc6dbc921423e4b5e6aee084eebe81 (diff) | |
download | gcc-56f6686bd2c57f15a5c6e58423f23550ce59df29.tar.gz |
* output.h (sdb_begin_function_line): Restore as an extern
variable.
* sdbout.c (sdb_begin_function_line): Make extern.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44030 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/output.h | 7 | ||||
-rw-r--r-- | gcc/sdbout.c | 2 |
3 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ed36cc51c7..0526f8f51bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk> + + * output.h (sdb_begin_function_line): Restore as an extern + variable. + * sdbout.c (sdb_begin_function_line): Make extern. + 2001-07-15 Richard Henderson <rth@redhat.com> * machmode.def (Pmode): Redefine if GENERATOR_FILE. diff --git a/gcc/output.h b/gcc/output.h index 93b94c41bc9..58c406259d9 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -374,6 +374,13 @@ extern void output_constant PARAMS ((tree, int)); extern rtx final_sequence; #endif +/* The line number of the beginning of the current function. Various + md code needs this so that it can output relative linenumbers. */ + +#ifdef SDB_DEBUGGING_INFO /* Avoid undef sym in certain broken linkers. */ +extern int sdb_begin_function_line; +#endif + /* File in which assembler code is being written. */ #ifdef BUFSIZ diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 1faffbede39..0738ca3489e 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -80,7 +80,7 @@ AT&T C compiler. From the example below I would conclude the following: /* Line number of beginning of current function, minus one. Negative means not in a function or not using sdb. */ -static int sdb_begin_function_line = -1; +int sdb_begin_function_line = -1; /* Counter to generate unique "names" for nameless struct members. */ |