From 132a545967fb8a624238fe7308b371032a0536f6 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Fri, 31 Dec 2010 18:19:33 +0000 Subject: [PATCH] decl.c (substitute_in_type): Do not deal with LANG_TYPE, METHOD_TYPE or OFFSET_TYPE. * gcc-interface/decl.c (substitute_in_type): Do not deal with LANG_TYPE, METHOD_TYPE or OFFSET_TYPE. * gcc-interface/utils.c (handle_vector_size_attribute): Do not deal with METHOD_TYPE or OFFSET_TYPE. From-SVN: r168381 --- gcc/ada/ChangeLog | 7 +++++++ gcc/ada/gcc-interface/decl.c | 3 --- gcc/ada/gcc-interface/utils.c | 4 +--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index cbe8cad8087..6c1aa5932a7 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,10 @@ +2010-12-31 Eric Botcazou + + * gcc-interface/decl.c (substitute_in_type): Do not deal with + LANG_TYPE, METHOD_TYPE or OFFSET_TYPE. + * gcc-interface/utils.c (handle_vector_size_attribute): Do not deal + with METHOD_TYPE or OFFSET_TYPE. + 2010-12-22 Nathan Froyd * gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p. diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index 419db6b7d90..ad742aa288e 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -8638,10 +8638,7 @@ substitute_in_type (tree t, tree f, tree r) return build_complex_type (nt); - case OFFSET_TYPE: - case METHOD_TYPE: case FUNCTION_TYPE: - case LANG_TYPE: /* These should never show up here. */ gcc_unreachable (); diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index b92e916bd38..19a17f9394a 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -5313,9 +5313,7 @@ handle_vector_size_attribute (tree *node, tree name, tree args, while (POINTER_TYPE_P (type) || TREE_CODE (type) == FUNCTION_TYPE - || TREE_CODE (type) == METHOD_TYPE - || TREE_CODE (type) == ARRAY_TYPE - || TREE_CODE (type) == OFFSET_TYPE) + || TREE_CODE (type) == ARRAY_TYPE) type = TREE_TYPE (type); /* Get the mode of the type being modified. */ -- 2.30.2