From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14650 invoked by alias); 22 Apr 2006 18:30:00 -0000 Received: (qmail 14621 invoked by uid 48); 22 Apr 2006 18:29:56 -0000 Date: Sat, 22 Apr 2006 18:30:00 -0000 Message-ID: <20060422182956.14620.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/27218] [4.1/4.2 regression] ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1515, inlining produces non-gimple In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-04/txt/msg01894.txt.bz2 List-Id: ------- Comment #7 from pinskia at gcc dot gnu dot org 2006-04-22 18:29 ------- This patch fixes it for me (but I don't have time right now to test it): Index: tree-inline.c =================================================================== --- tree-inline.c (revision 112997) +++ tree-inline.c (working copy) @@ -2073,6 +2077,7 @@ expand_call_inline (basic_block bb, tree if (CALL_EXPR_RETURN_SLOT_OPT (t)) { return_slot_addr = build_fold_addr_expr (modify_dest); + STRIP_USELESS_TYPE_CONVERSION (return_slot_addr); modify_dest = NULL; } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27218