From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30007 invoked by alias); 4 May 2014 19:48:00 -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 29988 invoked by uid 48); 4 May 2014 19:47:56 -0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/61060] New: [4.9/4.10 Regression] ICE: in int_mode_for_mode, at stor-layout.c:400 with -free-ter Date: Sun, 04 May 2014 19:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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-05/txt/msg00213.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61060 Bug ID: 61060 Summary: [4.9/4.10 Regression] ICE: in int_mode_for_mode, at stor-layout.c:400 with -free-ter Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 32733 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32733&action=edit reduced testcase Compiler output: $ gcc -ftree-ter testcase.c testcase.c: In function 'foo': testcase.c:6:3: internal compiler error: in int_mode_for_mode, at stor-layout.c:400 return __builtin_memset (dest, ch, len); ^ 0xb2e513 int_mode_for_mode(machine_mode) /mnt/svn/gcc-trunk/gcc/stor-layout.c:400 0x84759e emit_move_via_integer /mnt/svn/gcc-trunk/gcc/expr.c:3198 0x85579c emit_move_insn_1(rtx_def*, rtx_def*) /mnt/svn/gcc-trunk/gcc/expr.c:3578 0x855b68 emit_move_insn(rtx_def*, rtx_def*) /mnt/svn/gcc-trunk/gcc/expr.c:3645 0x836ebc copy_to_mode_reg(machine_mode, rtx_def*) /mnt/svn/gcc-trunk/gcc/explow.c:656 0xe10960 ix86_expand_set_or_movmem(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, bool) /mnt/svn/gcc-trunk/gcc/config/i386/i386.c:24182 0xedd82e gen_setmemsi(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*) /mnt/svn/gcc-trunk/gcc/config/i386/i386.md:15539 0xa35452 insn_gen_fn::operator()(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*) const /mnt/svn/gcc-trunk/gcc/recog.h:291 0xa35452 maybe_gen_insn(insn_code, unsigned int, expand_operand*) /mnt/svn/gcc-trunk/gcc/optabs.c:8322 0xa35a88 maybe_expand_insn(insn_code, unsigned int, expand_operand*) /mnt/svn/gcc-trunk/gcc/optabs.c:8334 0x849eee set_storage_via_setmem(rtx_def*, rtx_def*, rtx_def*, unsigned int, unsigned int, long, unsigned long, unsigned long, unsigned long) /mnt/svn/gcc-trunk/gcc/expr.c:3007 0x717197 expand_builtin_memset_args /mnt/svn/gcc-trunk/gcc/builtins.c:3731 0x7306c0 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /mnt/svn/gcc-trunk/gcc/builtins.c:6173 0x84f64d expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /mnt/svn/gcc-trunk/gcc/expr.c:10340 0x85eb17 store_expr(tree_node*, rtx_def*, int, bool) /mnt/svn/gcc-trunk/gcc/expr.c:5328 0x865f5e expand_assignment(tree_node*, tree_node*, bool) /mnt/svn/gcc-trunk/gcc/expr.c:5114 0x7573f6 expand_call_stmt /mnt/svn/gcc-trunk/gcc/cfgexpand.c:2273 0x7573f6 expand_gimple_stmt_1 /mnt/svn/gcc-trunk/gcc/cfgexpand.c:3170 0x7573f6 expand_gimple_stmt /mnt/svn/gcc-trunk/gcc/cfgexpand.c:3322 0x758a37 expand_gimple_basic_block /mnt/svn/gcc-trunk/gcc/cfgexpand.c:5162 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-210047-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-210047-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.10.0 20140504 (experimental) (GCC) Tested revisions: Tested revisions: r210047 - ICE 4.9 r209651 - ICE 4.8 r209342 - OK 4.7 r209345 - OK 4.6 r197894 - OK