This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix problem compiling crtstuff.c on x86
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Nov 01 07:18:52 EST
- Subject: Fix problem compiling crtstuff.c on x86
Fri Nov 16 07:12:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
BLKmode.
*** expr.c 2001/11/16 04:40:11 1.378
--- expr.c 2001/11/16 12:05:22
*************** expand_expr (exp, target, tmode, modifie
*** 8653,8657 ****
we need to make a temporary, copy OP0 to it, and take the
address of the temporary. */
! if (expr_align (TREE_OPERAND (exp, 0)) > MEM_ALIGN (op0))
{
tree inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));
--- 8653,8658 ----
we need to make a temporary, copy OP0 to it, and take the
address of the temporary. */
! if (GET_MODE (op0) == BLKmode
! && expr_align (TREE_OPERAND (exp, 0)) > MEM_ALIGN (op0))
{
tree inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));