Commit 219fe898 by Richard Kenner Committed by Richard Kenner

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
parent 2b38a1b1
Sat Apr 22 06:45:04 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* 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 <aoliva@cygnus.com> Fri Apr 21 18:33:09 2000 Alexandre Oliva <aoliva@cygnus.com>
* config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead * config/mn10300/mn10300.h (REGNO_REG_CLASS): Use NO_REGS instead
......
...@@ -9086,7 +9086,8 @@ preexpand_calls (exp) ...@@ -9086,7 +9086,8 @@ preexpand_calls (exp)
/* Do nothing if already expanded. */ /* Do nothing if already expanded. */
if (CALL_EXPR_RTL (exp) != 0 if (CALL_EXPR_RTL (exp) != 0
/* Do nothing if the call returns a variable-sized object. */ /* 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. */ /* Do nothing to built-in functions. */
|| (TREE_CODE (TREE_OPERAND (exp, 0)) == ADDR_EXPR || (TREE_CODE (TREE_OPERAND (exp, 0)) == ADDR_EXPR
&& (TREE_CODE (TREE_OPERAND (TREE_OPERAND (exp, 0), 0)) && (TREE_CODE (TREE_OPERAND (TREE_OPERAND (exp, 0), 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment