This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[ob] Fix gprof compile problem
- From: Andrew Cagney <cagney at gnu dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 26 May 2004 15:41:29 -0400
- Subject: [ob] Fix gprof compile problem
fyi, committed,
Andrew
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.
Index: corefile.c
===================================================================
RCS file: /cvs/src/src/gprof/corefile.c,v
retrieving revision 1.17
diff -p -u -r1.17 corefile.c
--- corefile.c 26 May 2004 04:55:55 -0000 1.17
+++ corefile.c 26 May 2004 19:40:27 -0000
@@ -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;