aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-12-31 18:19:33 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-12-31 18:19:33 +0000
commit132a545967fb8a624238fe7308b371032a0536f6 (patch)
tree32651621bdd019ac89f326af06e02f2fa389a613 /gcc/ada/gcc-interface/utils.c
parente17c65c260417a2844d261465fcd9ebb424f4b29 (diff)
downloadgcc-132a545967fb8a624238fe7308b371032a0536f6.zip
gcc-132a545967fb8a624238fe7308b371032a0536f6.tar.gz
gcc-132a545967fb8a624238fe7308b371032a0536f6.tar.bz2
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
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index b92e916..19a17f9 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. */