Patch to fix "make proto fails"

Mike Stump mrs@apple.com
Mon Jul 10 21:39:00 GMT 2006


On Jul 10, 2006, at 12:41 AM, Andreas Krebbel wrote:
> in January I've posted a patch adding volatile to clean_text_p
> to fix the warning - but no review yet.
>
> http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00050.html

> ** gcc/protoize.c.orig	2005-12-16 08:53:02.000000000 +0100
> --- gcc/protoize.c	2006-01-02 10:40:23.000000000 +0100
> *************** add_global_decls (const file_info *file_
> *** 3503,3509 ****
>      separate routine above.  */
>
>   static void
> ! edit_fn_definition (const def_dec_info *def_dec_p, const char  
> *clean_text_p)
>   {
>     const char *end_formals;
>     const char *function_to_edit = def_dec_p->hash_entry->symbol;
> --- 3503,3510 ----
>      separate routine above.  */
>
>   static void
> ! edit_fn_definition (const def_dec_info *def_dec_p,
> ! 		    const char *volatile clean_text_p)
>   {
>     const char *end_formals;
>     const char *function_to_edit = def_dec_p->hash_entry->symbol;


but in the top of the tree:

/* Do the editing operation specifically for a function  
"declaration".  Note
    that editing for function "definitions" are handled in a separate  
routine
    below.  */

static void
edit_fn_declaration (const def_dec_info *def_dec_p,
                      const char *volatile clean_text_p)
{

?



More information about the Gcc-patches mailing list