mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
e17c65c260
commit
132a545967
|
@ -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>
|
2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
|
||||||
|
|
||||||
* gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
|
* gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
|
||||||
|
|
|
@ -8638,10 +8638,7 @@ substitute_in_type (tree t, tree f, tree r)
|
||||||
|
|
||||||
return build_complex_type (nt);
|
return build_complex_type (nt);
|
||||||
|
|
||||||
case OFFSET_TYPE:
|
|
||||||
case METHOD_TYPE:
|
|
||||||
case FUNCTION_TYPE:
|
case FUNCTION_TYPE:
|
||||||
case LANG_TYPE:
|
|
||||||
/* These should never show up here. */
|
/* These should never show up here. */
|
||||||
gcc_unreachable ();
|
gcc_unreachable ();
|
||||||
|
|
||||||
|
|
|
@ -5313,9 +5313,7 @@ handle_vector_size_attribute (tree *node, tree name, tree args,
|
||||||
|
|
||||||
while (POINTER_TYPE_P (type)
|
while (POINTER_TYPE_P (type)
|
||||||
|| TREE_CODE (type) == FUNCTION_TYPE
|
|| TREE_CODE (type) == FUNCTION_TYPE
|
||||||
|| TREE_CODE (type) == METHOD_TYPE
|
|| TREE_CODE (type) == ARRAY_TYPE)
|
||||||
|| TREE_CODE (type) == ARRAY_TYPE
|
|
||||||
|| TREE_CODE (type) == OFFSET_TYPE)
|
|
||||||
type = TREE_TYPE (type);
|
type = TREE_TYPE (type);
|
||||||
|
|
||||||
/* Get the mode of the type being modified. */
|
/* Get the mode of the type being modified. */
|
||||||
|
|
Loading…
Reference in New Issue