> Any objections?

Considering I am the one who requested it, obviously no objection :-)
I've successfully tested this with ports that used to need ports/lang/gcc/4.9 .

So as far as I am concerned, OK for me.


> Index: c-decl.c
> ===================================================================
> RCS file: /OpenBSD/src/gnu/gcc/gcc/c-decl.c,v
> retrieving revision 1.2
> diff -u -p -r1.2 c-decl.c
> --- c-decl.c  29 Apr 2010 18:37:37 -0000      1.2
> +++ c-decl.c  2 May 2015 14:35:28 -0000
> @@ -1285,9 +1285,17 @@ diagnose_mismatched_decls (tree newdecl,
>        if (DECL_IN_SYSTEM_HEADER (newdecl) || DECL_IN_SYSTEM_HEADER (olddecl))
>       return true;  /* Allow OLDDECL to continue in use.  */
>  
> -      error ("redefinition of typedef %q+D", newdecl);
> -      locate_old_decl (olddecl, error);
> -      return false;
> +      if (pedantic)
> +     {
> +       pedwarn ("redefinition of typedef %q+D", newdecl);
> +       if (flag_pedantic_errors)
> +         {
> +           locate_old_decl (olddecl, error);
> +           return false;
> +         }
> +     }
> +
> +      return true;
>      }
>  
>    /* Function declarations can either be 'static' or 'extern' (no
> 

-- 
Antoine

Reply via email to