]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dbxout.c (dbxout_source_line): Move declaration of begin_label to the block that...
authorRichard Sandiford <rsandifo@redhat.com>
Wed, 27 Oct 2004 17:31:14 +0000 (17:31 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 27 Oct 2004 17:31:14 +0000 (17:31 +0000)
* dbxout.c (dbxout_source_line): Move declaration of begin_label to
the block that needs it.

From-SVN: r89694

gcc/ChangeLog
gcc/dbxout.c

index de5c50fccd12c5ac783158a7a75893c28bdeceda..767af3eb5cfe0c1badf34be315914bff8bbd7601 100644 (file)
@@ -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
index a8486f5c1a220c049b08d6508c52ac2541ffe800..f1bde1dd6ea73a088751c631eed4b63c00860a46 100644 (file)
@@ -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