This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] pch bug fix (take 2, PR pch/59436)
- From: Mike Stump <mikestump at comcast dot net>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Biener <rguenther at suse dot de>, Laurynas Biveinis <laurynas dot biveinis at gmail dot com>, Richard Sandiford <rdsandiford at googlemail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Jan 2014 17:00:02 -0800
- Subject: Re: [PATCH] pch bug fix (take 2, PR pch/59436)
- Authentication-results: sourceware.org; auth=none
- References: <F756187A-91EC-46CD-888A-EF3D923DA887 at comcast dot net> <20140101074631 dot GL892 at tucnak dot redhat dot com> <20140101185348 dot GN892 at tucnak dot redhat dot com> <20140101230856 dot GO892 at tucnak dot redhat dot com>
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.