This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FIx minor errors in last dwarf2out.c patch


On Sat, Dec 29, 2001 at 03:52:30PM -0500, Richard Kenner wrote:
>        dw_die_ref unit_die;
>   {
> !   const char *base = lbasename (get_AT_string (unit_die, DW_AT_name));
> !   char *name = (char *) alloca (strlen (base) + 64);
> !   char *p;
>     int i;
>     unsigned char checksum[16];
>     struct md5_ctx ctx;
>   
> +   /* Compute the checksum of the DIE, then append part of it as hex ...
> +      the name filename of the unit.  */
> + 
>     md5_init_ctx (&ctx);
>     die_checksum (unit_die, &ctx);
>     md5_finish_ctx (&ctx, checksum);
>   
>     sprintf (name, "%s.", p);

Incorrect conversion.  The sprintf should now reference base.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]