From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 15AEC3858D20; Fri, 11 Nov 2022 06:32:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15AEC3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668148352; bh=2Etr/AwiQ1gVCF+Hw6pCx0TCjUVknZCY2XkIM6ug3ac=; h=From:To:Subject:Date:From; b=hzLibt9ge9Ss1t1YhpYJYeR4ycD0BQQhKRGB55JUhiCpvI4mIxacEwJBAInOcKt/Q wtKXeEMkmILhv1yq166gxdwceRB3G9hZ2YeaXizGcreBzsHfxmrlrYD9X98wZBawgy UUMmL0E+EhQMvQkPafRpua4RY13twz1PztZRNt4s= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/107628] New: ICE: SIGSEGV in commutative_operand_precedence (rtlanal.cc:3770) with -fsignaling-nans Date: Fri, 11 Nov 2022 06:32:31 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107628 Bug ID: 107628 Summary: ICE: SIGSEGV in commutative_operand_precedence (rtlanal.cc:3770) with -fsignaling-nans Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 53879 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53879&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -fsignaling-nans testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:4:1: internal compiler error: Segmentation fault 4 | foo (V v) | ^~~ 0x13e3a7f crash_signal /repo/gcc-trunk/gcc/toplev.cc:314 0x1373710 commutative_operand_precedence(rtx_def*) /repo/gcc-trunk/gcc/rtlanal.cc:3770 0x1373897 swap_commutative_operands_p(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/rtlanal.cc:3845 0xfdf808 emit_store_flag_1 /repo/gcc-trunk/gcc/expmed.cc:5619 0xfdfec6 emit_store_flag(rtx_def*, rtx_code, rtx_def*, rtx_def*, machine_mo= de, int, int) /repo/gcc-trunk/gcc/expmed.cc:6037 0xfe15ea emit_store_flag_force(rtx_def*, rtx_code, rtx_def*, rtx_def*, machine_mode, int, int) /repo/gcc-trunk/gcc/expmed.cc:6177 0x1d3ff93 gen_cstorebf4(rtx_def*, rtx_def*, rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/i386/i386.md:1748 0x1298f08 maybe_expand_insn(insn_code, unsigned int, expand_operand*) /repo/gcc-trunk/gcc/optabs.cc:8002 0xfdf05a emit_cstore(rtx_def*, insn_code, rtx_code, machine_mode, machine_m= ode, int, rtx_def*, rtx_def*, int, machine_mode) /repo/gcc-trunk/gcc/expmed.cc:5527 0xfdf932 emit_store_flag_1 /repo/gcc-trunk/gcc/expmed.cc:5722 0xfdfec6 emit_store_flag(rtx_def*, rtx_code, rtx_def*, rtx_def*, machine_mo= de, int, int) /repo/gcc-trunk/gcc/expmed.cc:6037 0xfe15ea emit_store_flag_force(rtx_def*, rtx_code, rtx_def*, rtx_def*, machine_mode, int, int) /repo/gcc-trunk/gcc/expmed.cc:6177 0xfef841 do_store_flag /repo/gcc-trunk/gcc/expr.cc:13112 0xff0545 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.cc:10252 0xec31e8 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3983 0xec31e8 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4044 0xec92ce expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6096 0xecaecf execute /repo/gcc-trunk/gcc/cfgexpand.cc:6822 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See https://gcc.gnu.org/bugs/ for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r13-3891-20221111040058-= gfbad7a74aaa-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r13-3891-20221111040058-gfbad7a74a= aa-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20221111 (experimental) (GCC)=