From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8377 invoked by alias); 19 Dec 2004 05:22:54 -0000 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 Received: (qmail 8350 invoked by uid 48); 19 Dec 2004 05:22:48 -0000 Date: Sun, 19 Dec 2004 05:22:00 -0000 Message-ID: <20041219052248.8348.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041019230355.18067.phython@gcc.gnu.org> References: <20041019230355.18067.phython@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/18067] [4.0 Regression] ICE at loc_descriptor_from_tree_1 in dwarf2out.c (VLA) with const int. X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg02706.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-19 05:22 ------- This patch fixes it but I don't know if it is the correct fix, I have not bootstrapped it yet but it works as it removes the constraint when not to add SAVE_EXPR around the expression: Index: tree.c =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/tree.c,v retrieving revision 1.457 diff -u -p -r1.457 tree.c --- tree.c 17 Dec 2004 08:17:01 -0000 1.457 +++ tree.c 19 Dec 2004 05:21:23 -0000 @@ -1669,7 +1669,6 @@ save_expr (tree expr) inner = skip_simple_arithmetic (t); if (TREE_INVARIANT (inner) - || (TREE_READONLY (inner) && ! TREE_SIDE_EFFECTS (inner)) || TREE_CODE (inner) == SAVE_EXPR || TREE_CODE (inner) == ERROR_MARK) return t; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18067