From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6183 invoked by alias); 18 Sep 2013 15:12:40 -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 6147 invoked by uid 48); 18 Sep 2013 15:12:37 -0000 From: "paulo@matos-sorge.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/58463] New: ICE with -fdump-tree-all-all in vector indexed access Date: Wed, 18 Sep 2013 15:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paulo@matos-sorge.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: 2013-09/txt/msg01358.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58463 Bug ID: 58463 Summary: ICE with -fdump-tree-all-all in vector indexed access Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: paulo@matos-sorge.com Created attachment 30855 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30855&action=edit Code example to reproduce ICE GCC tries to access varmap through get_varinfo in tree-ssa-structalias.c, but it fails with an ICE. I have attached a reduced code example to reproduce the problem. The command line and output with 4.8.1 is: $ ~/work/tmp/gcc-4.8.1/gcc/cc1 -fpreprocessed -fdump-tree-all-all -O2 core_list_join.i core_list_join.i:4:1: warning: no semicolon at end of struct or union [enabled by default] } ^ fn1 Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> core_list_join.i: In function 'fn1': core_list_join.i:9:1: internal compiler error: in operator[], at vec.h:815 } ^ 0xbfd572 vec::operator[](unsigned int) /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/vec.h:815 0xbfcea0 vec::operator[](unsigned int) /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/vec.h:1244 0xbeb5ba get_varinfo /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:319 0xbefa59 perform_var_substitution /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:2244 0xbfb279 solve_constraints /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:6569 0xbfb679 compute_points_to_sets /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:6665 0xbfbdca compute_may_aliases() /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/tree-ssa-structalias.c:6814 0x967b9e execute_function_todo /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/passes.c:1941 0x966f88 do_per_function /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/passes.c:1701 0x967d64 execute_todo /home/pmatos/work/gcc-releases/gcc-4.8.1/gcc/passes.c:1996 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.