From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20170 invoked by alias); 14 Feb 2007 00:04:19 -0000 Received: (qmail 20101 invoked by uid 48); 14 Feb 2007 00:04:06 -0000 Date: Wed, 14 Feb 2007 00:04:00 -0000 Message-ID: <20070214000406.20097.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/30391] [4.3 regression] ICE at -O1 with conditional expressions and GIMPLE_MODIFY_STMT In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sandra at codesourcery dot com" 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: 2007-02/txt/msg01417.txt.bz2 ------- Comment #8 from sandra at codesourcery dot com 2007-02-14 00:04 ------- Testing of the CALL_EXPR representation patch turned up a related ICE in tree_ssa_useless_type_conversion() while compiling libjava/java/lang/reflect/natMethod.cc. It was failing because the expansion of memcpy produced by fold_builtin_memory_op includes a GIMPLE_MODIFY_STMT, and expansion of builtins happens long before the gimplifier is invoked by the C++ front end. See http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01193.html for more discussion. As a temporary solution, the CALL_EXPR patch includes a tweak to use GENERIC_TREE_TYPE in tree_ssa_useless_type_conversion(). This should be revisited as part of a general solution. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30391