From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14884 invoked by alias); 2 Feb 2008 16:16:13 -0000 Received: (qmail 14745 invoked by uid 48); 2 Feb 2008 16:15:29 -0000 Date: Sat, 02 Feb 2008 16:16:00 -0000 Message-ID: <20080202161529.14744.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/35056] [4.3 Regression] ICE in copy_to_mode_reg, at explow.c:621 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00251.txt.bz2 ------- Comment #7 from rguenth at gcc dot gnu dot org 2008-02-02 16:15 ------- This Index: tree.c =================================================================== --- tree.c (revision 132071) +++ tree.c (working copy) @@ -417,6 +417,10 @@ build_target_expr_with_type (tree init, aggregate; there's no additional work to be done. */ return force_rvalue (init); + if (INTEGRAL_TYPE_P (type) + || POINTER_TYPE_P (type)) + init = fold_convert (type, init); + return force_target_expr (type, init); } fixes it. It might be not the very best place for the fix though (and with dependent arguments it might not be wise to call into the middle-end either). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35056