mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 11:15:21 +08:00
mkdeps.c (deps_add_default_target): Make local variable ``start'' a const char pointer.
* mkdeps.c (deps_add_default_target): Make local variable ``start'' a const char pointer. * dwarf2out.c (compute_section_prefix): Localize use of ``p''. From-SVN: r44600
This commit is contained in:
parent
b953cc4be9
commit
0821bff756
@ -1,3 +1,9 @@
|
||||
2001-08-01 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* mkdeps.c (deps_add_default_target): Make local variable
|
||||
``start'' a const char pointer.
|
||||
* dwarf2out.c (compute_section_prefix): Localize use of ``p''.
|
||||
|
||||
2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
||||
|
||||
* doc/install.texi (Configuration): Fix markup.
|
||||
|
@ -5397,7 +5397,7 @@ static void
|
||||
compute_section_prefix (unit_die)
|
||||
dw_die_ref unit_die;
|
||||
{
|
||||
char *p, *name;
|
||||
char *name;
|
||||
int i;
|
||||
unsigned char checksum[16];
|
||||
struct md5_ctx ctx;
|
||||
@ -5406,18 +5406,22 @@ compute_section_prefix (unit_die)
|
||||
die_checksum (unit_die, &ctx);
|
||||
md5_finish_ctx (&ctx, checksum);
|
||||
|
||||
p = lbasename (get_AT_string (unit_die, DW_AT_name));
|
||||
name = (char *) alloca (strlen (p) + 64);
|
||||
sprintf (name, "%s.", p);
|
||||
{
|
||||
const char *p = lbasename (get_AT_string (unit_die, DW_AT_name));
|
||||
name = (char *) alloca (strlen (p) + 64);
|
||||
sprintf (name, "%s.", p);
|
||||
}
|
||||
|
||||
clean_symbol_name (name);
|
||||
|
||||
p = name + strlen (name);
|
||||
for (i = 0; i < 4; ++i)
|
||||
{
|
||||
sprintf (p, "%.2x", checksum[i]);
|
||||
p += 2;
|
||||
}
|
||||
{
|
||||
char *p = name + strlen (name);
|
||||
for (i = 0; i < 4; ++i)
|
||||
{
|
||||
sprintf (p, "%.2x", checksum[i]);
|
||||
p += 2;
|
||||
}
|
||||
}
|
||||
|
||||
comdat_symbol_id = unit_die->die_symbol = xstrdup (name);
|
||||
comdat_symbol_number = 0;
|
||||
|
@ -191,7 +191,7 @@ deps_add_default_target (d, tgt)
|
||||
#ifndef TARGET_OBJECT_SUFFIX
|
||||
# define TARGET_OBJECT_SUFFIX ".o"
|
||||
#endif
|
||||
char *start = lbasename (tgt);
|
||||
const char *start = lbasename (tgt);
|
||||
char *o = (char *) alloca (strlen (start) + strlen (TARGET_OBJECT_SUFFIX) + 1);
|
||||
char *suffix;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user