mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
* po/bfd.pot: Updated by the Translation project.
* po/binutils.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gprof.pot: Updated by the Translation project. * po/sv.po: Updated Swedish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. Updated soruces in ld/* to compile cleanly with -Wc++-compat: * ld.h (enum endian_enum,enum symbolic_enum,enum dynamic_list_enum): Move to top level. * ldcref.c: Add casts. * ldctor.c: Add casts. * ldexp.c * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level. * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead of integer. * ldlang.h (enum statement_enum): Move to top level. * ldmain.c: Add casts. * ldwrite.c: Add casts. * lexsup.c: Add casts. (enum control_enum): Move to top level. * mri.c: Add casts. (mri_draw_tree): Use enum name instead of integer. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. * as.c (main): Call dwarf2_init. * config/obj-elf.c (struct group_list): New field. (build_group_lists): Use hash lookup. (free_section_idx): New function. (elf_frob_file): Adjust. * dwarf2dbg.c (all_segs_hash, last_seg_ptr): New variables. (get_line_subseg): Adjust. (dwarf2_init): New function. * dwarf2dbg.h (dwarf2_init): New declaration.
This commit is contained in:
@ -319,7 +319,7 @@ print_exec_counts ()
|
||||
static void
|
||||
annotate_with_count (char *buf, unsigned int width, int line_num, PTR arg)
|
||||
{
|
||||
Source_File *sf = arg;
|
||||
Source_File *sf = (Source_File *) arg;
|
||||
Sym *b;
|
||||
unsigned int i;
|
||||
static unsigned long last_count;
|
||||
@ -328,7 +328,7 @@ annotate_with_count (char *buf, unsigned int width, int line_num, PTR arg)
|
||||
b = NULL;
|
||||
|
||||
if (line_num <= sf->num_lines)
|
||||
b = sf->line[line_num - 1];
|
||||
b = (Sym *) sf->line[line_num - 1];
|
||||
|
||||
if (!b)
|
||||
{
|
||||
@ -488,7 +488,7 @@ print_annotated_source ()
|
||||
{
|
||||
if (sf->num_lines > 0)
|
||||
{
|
||||
sf->line = (void *) xmalloc (sf->num_lines * sizeof (sf->line[0]));
|
||||
sf->line = (void **) xmalloc (sf->num_lines * sizeof (sf->line[0]));
|
||||
memset (sf->line, 0, sf->num_lines * sizeof (sf->line[0]));
|
||||
}
|
||||
}
|
||||
@ -502,7 +502,7 @@ print_annotated_source ()
|
||||
&& !sym_lookup (&syms[EXCL_ANNO], sym->addr))))
|
||||
{
|
||||
sym->file->ncalls += sym->ncalls;
|
||||
line_stats = sym->file->line[sym->line_num - 1];
|
||||
line_stats = (Sym *) sym->file->line[sym->line_num - 1];
|
||||
|
||||
if (!line_stats)
|
||||
{
|
||||
@ -552,7 +552,7 @@ print_annotated_source ()
|
||||
|
||||
for (i = 0; i < table_len; ++i)
|
||||
{
|
||||
sym = sf->line[i];
|
||||
sym = (Sym *) sf->line[i];
|
||||
|
||||
if (!sym || sym->ncalls == 0)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user