* basic_blocks.c (cmp_bb): Use filename_(n)cmp.
* cg_print.c (order_and_dump_functions_by_arcs): Likewise.
(cg_print_file_ordering): Likewise.
* corefile.c (read_function_mappings): Likewise.
(core_create_line_syms): Likewise.
+2011-02-28 Kai Tietz <kai.tietz@onevision.com>
+
+ * basic_blocks.c (cmp_bb): Use filename_(n)cmp.
+ * cg_print.c (order_and_dump_functions_by_arcs): Likewise.
+ (cg_print_file_ordering): Likewise.
+ * corefile.c (read_function_mappings): Likewise.
+ (core_create_line_syms): Likewise.
+
2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure: Regenerate.
\f
#include "gprof.h"
#include "libiberty.h"
+#include "filenames.h"
#include "basic_blocks.h"
#include "corefile.h"
#include "gmon_io.h"
if (left->file && right->file)
{
- r = strcmp (left->file->name, right->file->name);
+ r = filename_cmp (left->file->name, right->file->name);
if (r)
return r;
\f
#include "gprof.h"
#include "libiberty.h"
+#include "filenames.h"
#include "search_list.h"
#include "source.h"
#include "symtab.h"
static int
cmp_symbol_map (const void * l, const void * r)
{
- return strcmp (((struct function_map *) l)->file_name,
- ((struct function_map *) r)->file_name);
+ return filename_cmp (((struct function_map *) l)->file_name,
+ ((struct function_map *) r)->file_name);
}
/* Print a suggested .o ordering for files on a link line based
/* Don't bother searching if this symbol
is the same as the previous one. */
- if (last && !strcmp (last, symbol_map[sym_index].file_name))
+ if (last && !filename_cmp (last, symbol_map[sym_index].file_name))
continue;
for (index2 = 0; index2 < symtab.len; index2++)
if (! symtab.base[index2].mapped)
continue;
- if (!strcmp (symtab.base[index2].name, symbol_map[sym_index].file_name))
+ if (!filename_cmp (symtab.base[index2].name,
+ symbol_map[sym_index].file_name))
break;
}
\f
#include "gprof.h"
#include "libiberty.h"
+#include "filenames.h"
#include "search_list.h"
#include "source.h"
#include "symtab.h"
symbol_map_count = count;
for (i = 0; i < symbol_map_count; ++i)
- if (i == 0 || strcmp (symbol_map[i].file_name, symbol_map[i - 1].file_name))
+ if (i == 0
+ || filename_cmp (symbol_map[i].file_name, symbol_map[i - 1].file_name))
symbol_map[i].is_first = 1;
qsort (symbol_map, symbol_map_count, sizeof (struct function_map), cmp_symbol_map);
|| (prev_line_num == dummy.line_num
&& prev_name != NULL
&& strcmp (prev_name, dummy.name) == 0
- && strcmp (prev_filename, filename) == 0))
+ && filename_cmp (prev_filename, filename) == 0))
continue;
++ltab.len;
if (!get_src_info (vma, &filename, <ab.limit->name, <ab.limit->line_num)
|| (prev && prev->line_num == ltab.limit->line_num
&& strcmp (prev->name, ltab.limit->name) == 0
- && strcmp (prev->file->name, filename) == 0))
+ && filename_cmp (prev->file->name, filename) == 0))
continue;
/* Make name pointer a malloc'ed string. */