aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-03-21 19:33:42 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-03-21 19:33:42 +0000
commitb8de2d021a0d6798e4b611078c667a6ac7f81a67 (patch)
treebe0e8ff6ba8473ba8d3d2b04e2e107498102b3fc
parent485976a9f587ade39ad0cf14cbbab518221003db (diff)
downloadgcc-b8de2d021a0d6798e4b611078c667a6ac7f81a67.zip
gcc-b8de2d021a0d6798e4b611078c667a6ac7f81a67.tar.gz
gcc-b8de2d021a0d6798e4b611078c667a6ac7f81a67.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-common.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1d35900..ffea123 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-21 Mark Mitchell <mark@codesourcery.com>
+
+ * 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 <meissner@redhat.com>
* config/alpha/alpha.md (floating point insns): Add TARGET_FP to
diff --git a/gcc/c-common.c b/gcc/c-common.c
index f0ff8eb..6410e89 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");