[PATCH] pch bug fix (take 2, PR pch/59436)

Mike Stump mikestump@comcast.net
Thu Jan 2 01:00:00 GMT 2014


On Jan 1, 2014, at 3:08 PM, Jakub Jelinek <jakub@redhat.com> wrote:
>   if (memcmp (tmp_optabs, this_target_optabs, sizeof (struct target_optabs)))
> -    TREE_OPTIMIZATION_OPTABS (optnode) = (unsigned char *) tmp_optabs;
> +    TREE_OPTIMIZATION_OPTABS (optnode) = (void *) tmp_optabs;

Oh, the cast isn't necessary.

diff --git a/gcc/optabs.c b/gcc/optabs.c
index 24e75d5..3958735 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -6242,7 +6242,7 @@ init_tree_optimization_optabs (tree optnode)
 
   /* If the optabs changed, record it.  */
   if (memcmp (tmp_optabs, this_target_optabs, sizeof (struct target_optabs)))
-    TREE_OPTIMIZATION_OPTABS (optnode) = (unsigned char *) tmp_optabs;
+    TREE_OPTIMIZATION_OPTABS (optnode) = tmp_optabs;
   else
     {
       TREE_OPTIMIZATION_OPTABS (optnode) = NULL;

is fine.


More information about the Gcc-patches mailing list