From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22684 invoked by alias); 15 Sep 2008 19:39:34 -0000 Received: (qmail 20778 invoked by uid 48); 15 Sep 2008 19:38:14 -0000 Date: Mon, 15 Sep 2008 19:39:00 -0000 Message-ID: <20080915193814.20777.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/37526] [4.4 Regression] ICE using --combine -O2 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-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-09/txt/msg01798.txt.bz2 ------- Comment #6 from pinskia at gcc dot gnu dot org 2008-09-15 19:38 ------- Here is a short reduced testcase. t1.i: extern struct _IO_FILE *stderr; typedef struct Node Node; struct Node { int type; }; void Node_print(Node *node) { while (node->type == 0) f(stderr); f(stderr); } --- CUT --- t2.i: struct _IO_FILE { }; extern struct _IO_FILE *stderr; --- CUT --- Compile it as gcc t1.i t2.i -O2 -combine and you will get an ICE in FRE. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-09-15 19:38:14 date| | Summary|ICE using --combine -O2 |[4.4 Regression] ICE using - | |-combine -O2 Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37526