From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3FFB3385828F; Mon, 18 Dec 2023 10:55:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FFB3385828F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702896948; bh=HlcxfGPdPBegNX9mQjV1qC9+QoWXkUhWdvomxJXzuKk=; h=From:To:Subject:Date:From; b=XfC1gBaCnOfBmiBlqS7jpOBdIOi/7ce6bt3XgQpFNNE0EMmLvmMkcWe3t4DWWoo6P leNW65hLcHgFuUa331bA7ZajYFoB59YC1LKW1P0Z0p39CB1AFgOUiW3y7eqNOq28vH 4i0F/5p0KbDntcRJzB96+/s8XyXkH5DAgB3oWSbs= From: "mjires at suse dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 Date: Mon, 18 Dec 2023 10:55:47 +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: mjires at suse 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 cc target_milestone cf_gcctarget 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=3D113061 Bug ID: 113061 Summary: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 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: mjires at suse dot cz CC: acoplan at gcc dot gnu.org Target Milestone: --- Target: aarch64 Compiling reduced testcase gfortran.dg/PR100911.f90 results in ICE since r14-6605-gc0911c6b357ba9. $ cat PR100911.f90 module module_foo use iso_c_binding contains subroutine foo(a) bind(c) type(c_ptr) a(..) select rank(a) end select call bar end end $ aarch64-linux-gnu-gfortran PR100911.f90 -fno-move-loop-invariants -Oz during RTL pass: reload PR100911.f90:9:5: 9 | end | ^ internal compiler error: in lra_create_new_reg_with_unique_value, at lra.cc= :192 0x1578f06 lra_create_new_reg_with_unique_value(machine_mode, rtx_def*, reg_class, HARD_REG_SET*, char const*) /home/mjires/git/GCC/master/gcc/lra.cc:192 0x15792cd lra_create_new_reg(machine_mode, rtx_def*, reg_class, HARD_REG_SE= T*, char const*) /home/mjires/git/GCC/master/gcc/lra.cc:235 0x1588e7a get_reload_reg /home/mjires/git/GCC/master/gcc/lra-constraints.cc:737 0x1593bf4 curr_insn_transform /home/mjires/git/GCC/master/gcc/lra-constraints.cc:4663 0x1596278 lra_constraints(bool) /home/mjires/git/GCC/master/gcc/lra-constraints.cc:5414 0x157eb50 lra(_IO_FILE*, int) /home/mjires/git/GCC/master/gcc/lra.cc:2442 0x1526e43 do_reload /home/mjires/git/GCC/master/gcc/ira.cc:5973 0x15272e0 execute /home/mjires/git/GCC/master/gcc/ira.cc:6161 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $ aarch64-linux-gnu-gfortran -v Using built-in specs. COLLECT_GCC=3Daarch64-linux-gnu-gfortran COLLECT_LTO_WRAPPER=3D/home/mjires/built/master/libexec/gcc/aarch64-linux-g= nu/14.0.0/lto-wrapper Target: aarch64-linux-gnu Configured with: /home/mjires/git/GCC/master/configure --prefix=3D/home/mjires/built/master --target=3Daarch64-linux-gnu --disable-bootstrap --enable-languages=3Dc,c++,fortran --disable-multilib --disable-libsanitizer --enable-checking Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231218 (experimental) (GCC)=