aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Macleod <amacleod@redhat.com>2015-12-16 14:24:56 +0000
committerAndrew Macleod <amacleod@redhat.com>2015-12-16 14:24:56 +0000
commiteb8ef03b4e5260477cfc2139c27cfa4f69fba05b (patch)
treea73cf6f81a403151c73ee3c43e8293e9f9ef4795
parent2ed63535406ff69786b363a0ee34313da47137c8 (diff)
config fixes for patch 7
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ttype-2015@231693 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/config/avr/avr.c5
-rw-r--r--gcc/config/spu/spu.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 1ef9d1d3bbd..871663a0e82 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -893,9 +893,9 @@ avr_initial_elimination_offset (int from, int to)
/* Helper for the function below. */
static void
-avr_adjust_type_node (tree *node, machine_mode mode, int sat_p)
+avr_adjust_type_node (ttype **node, machine_mode mode, int sat_p)
{
- *node = make_node (FIXED_POINT_TYPE);
+ *node = make_type_node (FIXED_POINT_TYPE);
TYPE_SATURATING (*node) = sat_p;
TYPE_UNSIGNED (*node) = UNSIGNED_FIXED_POINT_MODE_P (mode);
TYPE_IBIT (*node) = GET_MODE_IBIT (mode);
@@ -8924,6 +8924,7 @@ avr_warning_type_attribute (tree *node ATTRIBUTE_UNUSED, tree name,
warning (OPT_Wattributes, "%qE attribute does not apply to types",
name);
*no_add_attrs = true;
+ return NULL_TREE;
}
/* Handle a "progmem" attribute; arguments as in
struct attribute_spec.handler. */
diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c
index a1b3780c366..10f9e5a793a 100644
--- a/gcc/config/spu/spu.c
+++ b/gcc/config/spu/spu.c
@@ -124,7 +124,7 @@ enum spu_builtin_type_index
#define unsigned_V4SI_type_node (spu_builtin_types[SPU_BTI_UV4SI])
#define unsigned_V2DI_type_node (spu_builtin_types[SPU_BTI_UV2DI])
-static GTY(()) ttype spu_builtin_types[SPU_BTI_MAX];
+static GTY(()) tree spu_builtin_types[SPU_BTI_MAX];
struct spu_builtin_range
{
@@ -3687,7 +3687,7 @@ spu_handle_fndecl_attribute (tree * node,
/* Handle the "vector" attribute. */
static tree
-spu_handle_vector_attribute (tree * node, tree name,
+spu_handle_vector_attribute (tree* node, tree name,
tree args ATTRIBUTE_UNUSED,
int flags ATTRIBUTE_UNUSED, bool * no_add_attrs)
{