From 219fe89837351e72273863b6dc54ca4c5d2ddb6c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 22 Apr 2000 10:36:44 +0000 Subject: [PATCH] expr.c (preexpand_calls, [...]): Don't look at TYPE_SIZE of VOID_TYPE. * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE of VOID_TYPE. From-SVN: r33336 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c05e1405110..20f356acf65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Apr 22 06:45:04 2000 Richard Kenner + + * expr.c (preexpand_calls, case CALL_EXPR): Don't look at TYPE_SIZE + of VOID_TYPE. + Fri Apr 21 18:33:09 2000 Alexandre Oliva * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead diff --git a/gcc/expr.c b/gcc/expr.c index aed82339d3a..fa249bbddcd 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -9086,7 +9086,8 @@ preexpand_calls (exp) /* Do nothing if already expanded. */ if (CALL_EXPR_RTL (exp) != 0 /* Do nothing if the call returns a variable-sized object. */ - || TREE_CODE (TYPE_SIZE (TREE_TYPE(exp))) != INTEGER_CST + || (TREE_CODE (TREE_TYPE (exp)) != VOID_TYPE + && TREE_CODE (TYPE_SIZE (TREE_TYPE (exp))) != INTEGER_CST) /* Do nothing to built-in functions. */ || (TREE_CODE (TREE_OPERAND (exp, 0)) == ADDR_EXPR && (TREE_CODE (TREE_OPERAND (TREE_OPERAND (exp, 0), 0)) -- 2.30.2