From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10162 invoked by alias); 9 Mar 2014 14:02:21 -0000 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 Received: (qmail 10134 invoked by uid 48); 9 Mar 2014 14:02:17 -0000 From: "jacek at codeweavers dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60474] New: [regression] Crash in tree_class_check Date: Sun, 09 Mar 2014 14:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jacek at codeweavers dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00697.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60474 Bug ID: 60474 Summary: [regression] Crash in tree_class_check Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jacek at codeweavers dot com Created attachment 32317 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32317&action=edit test case Compiling Mozilla sources with current GCC trunk causes ICE. I'm attaching a simplified test case. I tested on i686-w64-mingw32 target, but it's unlikely to matter. The crash happens with -O1 optimization level (and no other that I tried). $ i686-w64-mingw32-g++ test.i -c -O1 test.i: In function 'void FillBackgroundList(nsAutoTArray&, ComputedValueItem Layer::*, uint32_t) [with ComputedValueItem = unsigned char; uint32_t = unsigned int]': test.i:26:1: internal compiler error: Segmentation fault FillBackgroundList(nsAutoTArray< Layer> &aLayers, ^ 0xb48fcf crash_signal ../../../gcc-git/gcc/toplev.c:337 0x1061e40 tree_class_check ../../../gcc-git/gcc/tree.h:2831 0x1061e40 double_int_ext_for_comb(double_int, aff_tree*) ../../../gcc-git/gcc/tree-affine.c:44 0x10624a6 aff_combination_scale(aff_tree*, double_int) ../../../gcc-git/gcc/tree-affine.c:86 0xc658a6 difference_cost ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:3896 0xc6a4ba get_computation_cost_at ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4176 0xc6ce8c get_computation_cost ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4290 0xc6ce8c determine_use_iv_cost_generic ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4317 0xc6ce8c determine_use_iv_cost ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:4911 0xc6f090 determine_use_iv_costs ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:5031 0xc6f090 tree_ssa_iv_optimize_loop ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:6849 0xc6f9b3 tree_ssa_iv_optimize() ../../../gcc-git/gcc/tree-ssa-loop-ivopts.c:6895 0xc816a7 tree_ssa_loop_ivopts ../../../gcc-git/gcc/tree-ssa-loop.c:362 0xc816a7 execute ../../../gcc-git/gcc/tree-ssa-loop.c:398