From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 40F1E385C6E5; Mon, 6 Nov 2023 18:30:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40F1E385C6E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699295439; bh=hry+DAPQuMH089UP11Vy64WG0Dzz7Xno2bP3NAmw32E=; h=From:To:Subject:Date:From; b=nAQKdx/oqC2O6q4NCxhspSjfoPVRqwwMcjI1AOYZ3B10L7I5J3KjO3PLERiVEYY5X NzvbI7JtxYgBdzecRzhquTCEGqBZsJzuctFRtppmXJ3M8bH9kc2oDG4/UbCmanaSzr tzkeDR49hjXlBruzLKpUtf/w9VUiQFcNFtRQPlVU= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112411] New: ICE: SIGSEGV with --param=min-nondebug-insn-uid=2147483647 on powerpc64le-unknown-linux-gnu Date: Mon, 06 Nov 2023 18:30:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.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=3D112411 Bug ID: 112411 Summary: ICE: SIGSEGV with --param=3Dmin-nondebug-insn-uid=3D2147483647 on powerpc64le-unknown-linux-gnu Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: powerpc64le-unknown-linux-gnu Created attachment 56518 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56518&action=3Dedit reduced testcase Compiler output: $ powerpc64le-unknown-linux-gnu-gcc --param=3Dmin-nondebug-insn-uid=3D21474= 83647 testcase.c -wrapper valgrind,-q,--num-callers=3D100 =3D=3D18938=3D=3D Invalid read of size 4 =3D=3D18938=3D=3D at 0xC9A477: get_attr_length_1(rtx_insn*, int (*)(rtx_= insn*)) (final.cc:353) =3D=3D18938=3D=3D by 0x1489717: rs6000_insn_cost (rs6000.cc:22634) =3D=3D18938=3D=3D by 0x1489717: rs6000_insn_cost(rtx_insn*, bool) (rs600= 0.cc:22614) =3D=3D18938=3D=3D by 0xC6D69E: canonicalize_comparison(machine_mode, rtx= _code*, rtx_def**) (expmed.cc:6344) =3D=3D18938=3D=3D by 0xC6DD71: emit_store_flag_1(rtx_def*, rtx_code, rtx= _def*, rtx_def*, machine_mode, int, int, machine_mode) (expmed.cc:5629) =3D=3D18938=3D=3D by 0xC6E2A7: emit_store_flag(rtx_def*, rtx_code, rtx_d= ef*, rtx_def*, machine_mode, int, int) (expmed.cc:6037) =3D=3D18938=3D=3D by 0xC6F26A: emit_store_flag_force(rtx_def*, rtx_code,= rtx_def*, rtx_def*, machine_mode, int, int) (expmed.cc:6177) =3D=3D18938=3D=3D by 0xC89B8F: convert_mode_scalar(rtx_def*, rtx_def*, i= nt) (expr.cc:689) =3D=3D18938=3D=3D by 0xC7E70D: expand_expr_real_2(separate_ops*, rtx_def= *, machine_mode, expand_modifier) (expr.cc:9396) =3D=3D18938=3D=3D by 0xB4A2F0: expand_gimple_stmt_1 (cfgexpand.cc:3983) =3D=3D18938=3D=3D by 0xB4A2F0: expand_gimple_stmt(gimple*) (cfgexpand.cc= :4044) =3D=3D18938=3D=3D by 0xB5067E: expand_gimple_basic_block(basic_block_def= *, bool) (cfgexpand.cc:6100) =3D=3D18938=3D=3D by 0xB5235E: (anonymous namespace)::pass_expand::execute(function*) (cfgexpand.cc:6835) =3D=3D18938=3D=3D by 0xF7B62A: execute_one_pass(opt_pass*) (passes.cc:26= 41) =3D=3D18938=3D=3D by 0xF7BF0F: execute_pass_list_1(opt_pass*) (passes.cc= :2750) =3D=3D18938=3D=3D by 0xF7BF48: execute_pass_list(function*, opt_pass*) (passes.cc:2761) =3D=3D18938=3D=3D by 0xB92FF5: expand (cgraphunit.cc:1841) =3D=3D18938=3D=3D by 0xB92FF5: cgraph_node::expand() (cgraphunit.cc:1794) =3D=3D18938=3D=3D by 0xB93F09: output_in_order (cgraphunit.cc:2191) =3D=3D18938=3D=3D by 0xB93F09: symbol_table::compile() [clone .part.0] (cgraphunit.cc:2395) =3D=3D18938=3D=3D by 0xB96EA7: compile (cgraphunit.cc:2311) =3D=3D18938=3D=3D by 0xB96EA7: symbol_table::finalize_compilation_unit() (cgraphunit.cc:2583) =3D=3D18938=3D=3D by 0x10B3D62: compile_file() (toplev.cc:473) =3D=3D18938=3D=3D by 0x9B8903: do_compile (toplev.cc:2129) =3D=3D18938=3D=3D by 0x9B8903: toplev::main(int, char**) (toplev.cc:2285) =3D=3D18938=3D=3D by 0x9BA00A: main (main.cc:39) =3D=3D18938=3D=3D Address 0xfffffffe0000001c is not stack'd, malloc'd or (= recently) free'd =3D=3D18938=3D=3D=20 during RTL pass: expand testcase.c: In function 'foo': testcase.c:7:5: internal compiler error: Segmentation fault 7 | i +=3D j; | ^~ $ powerpc64le-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-powerpc64le/bin/powerpc64le-unk= nown-linux-gnu-gcc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-5141-20231106022717-= g1a55724f787-checking-yes-rtl-df-extra-powerpc64le/bin/../libexec/gcc/power= pc64le-unknown-linux-gnu/14.0.0/lto-wrapper Target: powerpc64le-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --with-cloog --with-ppl --with-isl --with-sysroot=3D/usr/powerpc64le-unknown-linux-gnu --build=3Dx86_64-pc-lin= ux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dpowerpc64le-unknown-linux-gnu --with-ld=3D/usr/bin/powerpc64le-unknown-linux-gnu-ld --with-as=3D/usr/bin/powerpc64le-unknown-linux-gnu-as --disable-libstdcxx-p= ch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-5141-20231106022717-g1a55724f7= 87-checking-yes-rtl-df-extra-powerpc64le Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231106 (experimental) (GCC)=