diff options
| author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 17:31:14 +0000 |
|---|---|---|
| committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-27 17:31:14 +0000 |
| commit | 746852fec1b23f14c601c2456929ff05f2ff6668 (patch) | |
| tree | 7c9aadc65577a748301bed86de1fe5fa040b7168 /gcc | |
| parent | a095c1b560cd722cac898454150f94c438e7ef4c (diff) | |
| download | ppe42-gcc-746852fec1b23f14c601c2456929ff05f2ff6668.tar.gz ppe42-gcc-746852fec1b23f14c601c2456929ff05f2ff6668.zip | |
* dbxout.c (dbxout_source_line): Move declaration of begin_label to
the block that needs it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89694 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/dbxout.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de5c50fccd1..767af3eb5cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-27 Richard Sandiford <rsandifo@redhat.com> + + * dbxout.c (dbxout_source_line): Move declaration of begin_label to + the block that needs it. + 2004-10-27 Zack Weinberg <zack@codesourcery.com> * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable diff --git a/gcc/dbxout.c b/gcc/dbxout.c index a8486f5c1a2..f1bde1dd6ea 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1234,8 +1234,6 @@ dbxout_begin_prologue (unsigned int lineno, const char *filename) static void dbxout_source_line (unsigned int lineno, const char *filename) { - const char *begin_label = XSTR(XEXP(DECL_RTL(current_function_decl), 0), 0); - dbxout_source_file (filename); #ifdef DBX_OUTPUT_SOURCE_LINE @@ -1243,9 +1241,10 @@ dbxout_source_line (unsigned int lineno, const char *filename) #else if (DBX_LINES_FUNCTION_RELATIVE) { + rtx begin_label = XEXP (DECL_RTL (current_function_decl), 0); dbxout_begin_stabn_sline (lineno); dbxout_stab_value_internal_label_diff ("LM", &dbxout_source_line_counter, - begin_label); + XSTR (begin_label, 0)); } else |

