From cc349a3901254b334d2ab2bf6eadb35eeb8fdb48 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Tue, 7 Jan 2014 07:47:57 +0000 Subject: re PR pch/59436 (FAIL: 17_intro/headers/c++200x/stdc++.cc (test for excess errors)) PR pch/59436 * tree-core.h (struct tree_optimization_option): Change optabs type from unsigned char * to void *. * optabs.c (init_tree_optimization_optabs): Adjust TREE_OPTIMIZATION_OPTABS initialization. Co-Authored-By: Jakub Jelinek From-SVN: r206383 --- gcc/ChangeLog | 9 +++++++++ gcc/optabs.c | 2 +- gcc/tree-core.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 624c9fb..d52cdc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2014-01-07 Mike Stump + Jakub Jelinek + + PR pch/59436 + * tree-core.h (struct tree_optimization_option): Change optabs + type from unsigned char * to void *. + * optabs.c (init_tree_optimization_optabs): Adjust + TREE_OPTIMIZATION_OPTABS initialization. + 2014-01-06 Jakub Jelinek PR target/59644 diff --git a/gcc/optabs.c b/gcc/optabs.c index 213eaf9..e36fd13 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -6245,7 +6245,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; diff --git a/gcc/tree-core.h b/gcc/tree-core.h index 0a41b86..361fd90 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -1550,7 +1550,7 @@ struct GTY(()) tree_optimization_option { /* Target optabs for this set of optimization options. This is of type `struct target_optabs *'. */ - unsigned char *GTY ((atomic)) optabs; + void *GTY ((atomic)) optabs; /* The value of this_target_optabs against which the optabs above were generated. */ -- cgit v1.1