2004-05-26 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Wed, 26 May 2004 19:40:53 +0000 (19:40 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 26 May 2004 19:40:53 +0000 (19:40 +0000)
* corefile.c (core_create_line_syms): Per ISO C '90, move
vma_high's declaration to the function's start.

gprof/ChangeLog
gprof/corefile.c

index ccad012f1fa116d5bf5b399874c7ac3b0759bdae..863eb8a02d4b56e4f53fc624feaa0c981517985c 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-26  Andrew Cagney  <cagney@gnu.org>
+
+       * corefile.c (core_create_line_syms): Per ISO C '90, move
+       vma_high's declaration to the function's start.
+
 2004-05-26  Ben Elliston  <bje@au.ibm.com>
 
        * gprof.c (main): Clean up some more.
index 56c6d230ad49c57afa9c088bf93036e78673b5d9..f987c72855fe6063679d4d6aa9caff74bcb1b3a0 100644 (file)
@@ -590,6 +590,7 @@ core_create_line_syms ()
   const char *filename;
   int prev_line_num;
   Sym_Table ltab;
+  bfd_vma vma_high;
 
   /* Create symbols for functions as usual.  This is necessary in
      cases where parts of a program were not compiled with -g.  For
@@ -612,7 +613,7 @@ core_create_line_syms ()
   ltab.len = 0;
   prev_line_num = 0;
 
-  bfd_vma vma_high = core_text_sect->vma + core_text_sect->_raw_size;
+  vma_high = core_text_sect->vma + core_text_sect->_raw_size;
   for (vma = core_text_sect->vma; vma < vma_high; vma += min_insn_size)
     {
       unsigned int len;
This page took 0.025524 seconds and 4 git commands to generate.