diff options
-rw-r--r-- | gcc/config/avr/avr.c | 5 | ||||
-rw-r--r-- | gcc/config/spu/spu.c | 4 |
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) { |