From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 981 invoked by alias); 9 Dec 2005 17:16:32 -0000 Received: (qmail 968 invoked by uid 48); 9 Dec 2005 17:16:30 -0000 Date: Fri, 09 Dec 2005 17:16:00 -0000 Message-ID: <20051209171630.967.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/25328] [4.0/4.1 regression] ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1453 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: 2005-12/txt/msg00948.txt.bz2 List-Id: ------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-09 17:16 ------- Reduced testcase: int main(int argc, char **argv) { int status = 0; char msg[100] = ""; if(__builtin_strcmp(msg, "")) status = 200; } There a couple of issue here, first DCE is not removing some code even though it is dead code but that is not the real issue. The real issue is that DOM is ICEing, it is not folding *&a to a or a[0] since a is an array. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to work|4.0.1 |4.0.1 4.2.0 Last reconfirmed|0000-00-00 00:00:00 |2005-12-09 17:16:30 date| | Target Milestone|--- |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25328