decl.c (substitute_in_type): Do not deal with LANG_TYPE, METHOD_TYPE or OFFSET_TYPE.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 31 Dec 2010 18:19:33 +0000 (18:19 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 31 Dec 2010 18:19:33 +0000 (18:19 +0000)
* 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
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/utils.c

index cbe8cad808718b6722fd7504c783a14b9dff4ced..6c1aa5932a7ad4d8023334e3b26d5600bfefc571 100644 (file)
@@ -1,3 +1,10 @@
+2010-12-31  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * 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  <froydnj@codesourcery.com>
 
        * gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
index 419db6b7d901681e050775c3c7245a35d9f3b64e..ad742aa288e7a6274692eb6f218608a8eec83433 100644 (file)
@@ -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 ();
 
index b92e916bd381c4e57de1ce2f1a5dbea05e58bba5..19a17f9394adbea91753e891def4c8abd003b22f 100644 (file)
@@ -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.  */