From: Mark Mitchell Date: Tue, 21 Mar 2000 19:33:42 +0000 (+0000) Subject: c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8de2d021a0d6798e4b611078c667a6ac7f81a67;p=gcc.git c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P... * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P, not COMPLETE_TYPE_P, to check the type of the expression. From-SVN: r32674 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d35900a05d..ffea123f5f5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-21 Mark Mitchell + + * c-common.c (c_expand_expr_stmt): Use COMPLETE_TYPE_OR_VOID_P, + not COMPLETE_TYPE_P, to check the type of the expression. + 2000-03-21 Michael Meissner * config/alpha/alpha.md (floating point insns): Add TARGET_FP to diff --git a/gcc/c-common.c b/gcc/c-common.c index f0ff8eb55fb..6410e895426 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -2139,7 +2139,7 @@ c_expand_expr_stmt (expr) expr = default_conversion (expr); if (TREE_TYPE (expr) != error_mark_node - && !COMPLETE_TYPE_P (TREE_TYPE (expr)) + && !COMPLETE_OR_VOID_TYPE_P (TREE_TYPE (expr)) && TREE_CODE (TREE_TYPE (expr)) != ARRAY_TYPE) error ("expression statement has incomplete type");