From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3D8B385DC3E; Wed, 8 Apr 2020 10:34:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3D8B385DC3E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586342065; bh=Qdu0IRZ76dcgtuvL+VHkgo1oXWIy55fReFDqL/YPBtg=; h=From:To:Subject:Date:From; b=MEKi+LS1qCHOBBmbVpGCqVZXYr3+fjVcxL/u+/OCIGqgzwzjlDmc/U3uCPEQ5Df2V SDKgdErt8WFvEtagJ9C3IxxdV5VvbZw3KauA3NVhHVdoSi9eYtj73j478OnBoplptL cq4smmivGWVkgkUycRL68ncAzHb7CF+UZ449sUD0= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94530] New: [9/10 Regression] ICE: SIGSEGV in rhs_regno (rtl.h:1924) with -Os -mcpu=falkor -mpc-relative-literal-loads -mcmodel=large Date: Wed, 08 Apr 2020 10:34:24 +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: 10.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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2020 10:34:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94530 Bug ID: 94530 Summary: [9/10 Regression] ICE: SIGSEGV in rhs_regno (rtl.h:1924) with -Os -mcpu=3Dfalkor -mpc-relative-literal-loads -mcmodel=3Dlarge Product: gcc Version: 10.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: aarch64-unknown-linux-gnu Created attachment 48240 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48240&action=3Dedit reduced testcase Compiler output: $ aarch64-unknown-linux-gnu-gcc -Os -mcpu=3Dfalkor -mpc-relative-literal-lo= ads -mcmodel=3Dlarge testcase.c -wrapper valgrind,-q,--track-origins=3Dyes =3D=3D19355=3D=3D Use of uninitialised value of size 8 =3D=3D19355=3D=3D at 0x14B84CD: rhs_regno (rtl.h:1924) =3D=3D19355=3D=3D by 0x14B84CD: valid_src_p (falkor-tag-collision-avoida= nce.c:541) =3D=3D19355=3D=3D by 0x14B84CD: get_load_info(rtx_insn*, loop*, rtx_def*= *, rtx_def**, rtx_def**, bool*, bool*) (falkor-tag-collision-avoidance.c:641) =3D=3D19355=3D=3D by 0x14B98D5: record_loads (falkor-tag-collision-avoid= ance.c:771) =3D=3D19355=3D=3D by 0x14B98D5: execute_tag_collision_avoidance() (falkor-tag-collision-avoidance.c:824) =3D=3D19355=3D=3D by 0x14BA508: pass_tag_collision_avoidance::execute(fu= nction*) (falkor-tag-collision-avoidance.c:871) =3D=3D19355=3D=3D by 0xFD3B7E: execute_one_pass(opt_pass*) (passes.c:250= 2) =3D=3D19355=3D=3D by 0xFD432F: execute_pass_list_1(opt_pass*) (passes.c:= 2590) =3D=3D19355=3D=3D by 0xFD4341: execute_pass_list_1(opt_pass*) (passes.c:= 2591) =3D=3D19355=3D=3D by 0xFD4341: execute_pass_list_1(opt_pass*) (passes.c:= 2591) =3D=3D19355=3D=3D by 0xFD4368: execute_pass_list(function*, opt_pass*) (passes.c:2601) =3D=3D19355=3D=3D by 0xC2E14B: cgraph_node::expand() (cgraphunit.c:2299) =3D=3D19355=3D=3D by 0xC2F1EF: expand_all_functions (cgraphunit.c:2470) =3D=3D19355=3D=3D by 0xC2F1EF: symbol_table::compile() [clone .part.0] (cgraphunit.c:2820) =3D=3D19355=3D=3D by 0xC3195C: compile (cgraphunit.c:2733) =3D=3D19355=3D=3D by 0xC3195C: symbol_table::finalize_compilation_unit() (cgraphunit.c:3000) =3D=3D19355=3D=3D by 0x10D263A: compile_file() (toplev.c:483) =3D=3D19355=3D=3D Uninitialised value was created by a stack allocation =3D=3D19355=3D=3D at 0x14B829D: get_load_info(rtx_insn*, loop*, rtx_def*= *, rtx_def**, rtx_def**, bool*, bool*) (falkor-tag-collision-avoidance.c:592) =3D=3D19355=3D=3D=20 =3D=3D19355=3D=3D Invalid read of size 2 =3D=3D19355=3D=3D at 0x14B84CD: rhs_regno (rtl.h:1924) =3D=3D19355=3D=3D by 0x14B84CD: valid_src_p (falkor-tag-collision-avoida= nce.c:541) =3D=3D19355=3D=3D by 0x14B84CD: get_load_info(rtx_insn*, loop*, rtx_def*= *, rtx_def**, rtx_def**, bool*, bool*) (falkor-tag-collision-avoidance.c:641) =3D=3D19355=3D=3D by 0x14B98D5: record_loads (falkor-tag-collision-avoid= ance.c:771) =3D=3D19355=3D=3D by 0x14B98D5: execute_tag_collision_avoidance() (falkor-tag-collision-avoidance.c:824) =3D=3D19355=3D=3D by 0x14BA508: pass_tag_collision_avoidance::execute(fu= nction*) (falkor-tag-collision-avoidance.c:871) =3D=3D19355=3D=3D by 0xFD3B7E: execute_one_pass(opt_pass*) (passes.c:250= 2) =3D=3D19355=3D=3D by 0xFD432F: execute_pass_list_1(opt_pass*) (passes.c:= 2590) =3D=3D19355=3D=3D by 0xFD4341: execute_pass_list_1(opt_pass*) (passes.c:= 2591) =3D=3D19355=3D=3D by 0xFD4341: execute_pass_list_1(opt_pass*) (passes.c:= 2591) =3D=3D19355=3D=3D by 0xFD4368: execute_pass_list(function*, opt_pass*) (passes.c:2601) =3D=3D19355=3D=3D by 0xC2E14B: cgraph_node::expand() (cgraphunit.c:2299) =3D=3D19355=3D=3D by 0xC2F1EF: expand_all_functions (cgraphunit.c:2470) =3D=3D19355=3D=3D by 0xC2F1EF: symbol_table::compile() [clone .part.0] (cgraphunit.c:2820) =3D=3D19355=3D=3D by 0xC3195C: compile (cgraphunit.c:2733) =3D=3D19355=3D=3D by 0xC3195C: symbol_table::finalize_compilation_unit() (cgraphunit.c:3000) =3D=3D19355=3D=3D by 0x10D263A: compile_file() (toplev.c:483) =3D=3D19355=3D=3D Address 0x1 is not stack'd, malloc'd or (recently) free'd =3D=3D19355=3D=3D=20 during RTL pass: tag_collision_avoidance testcase.c: In function 'foo': testcase.c:6:1: internal compiler error: Segmentation fault 6 | } | ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ aarch64-unknown-linux-gnu-gcc -v=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-lin= ux-gnu-gcc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r10-7607-20200407213012-= gc23c899aedf-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-u= nknown-linux-gnu/10.0.1/lto-wrapper Target: aarch64-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/aarch64-unknown-linux-gnu --build=3Dx86_64-pc-linux-g= nu --host=3Dx86_64-pc-linux-gnu --target=3Daarch64-unknown-linux-gnu --with-ld=3D/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=3D/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r10-7607-20200407213012-gc23c899ae= df-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.0.1 20200407 (experimental) (GCC)=