public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9
@ 2023-12-18 10:55 mjires at suse dot cz
  2023-12-18 11:09 ` [Bug target/113061] " acoplan at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mjires at suse dot cz @ 2023-12-18 10:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113061

            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_SET*,
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 <https://gcc.gnu.org/bugs/> for instructions.


$ aarch64-linux-gnu-gfortran -v
Using built-in specs.
COLLECT_GCC=aarch64-linux-gnu-gfortran
COLLECT_LTO_WRAPPER=/home/mjires/built/master/libexec/gcc/aarch64-linux-gnu/14.0.0/lto-wrapper
Target: aarch64-linux-gnu
Configured with: /home/mjires/git/GCC/master/configure
--prefix=/home/mjires/built/master --target=aarch64-linux-gnu
--disable-bootstrap --enable-languages=c,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)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113061] [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9
  2023-12-18 10:55 [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 mjires at suse dot cz
@ 2023-12-18 11:09 ` acoplan at gcc dot gnu.org
  2023-12-18 12:14 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: acoplan at gcc dot gnu.org @ 2023-12-18 11:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113061

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-12-18

--- Comment #1 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Confirmed, I'll take a look.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113061] [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9
  2023-12-18 10:55 [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 mjires at suse dot cz
  2023-12-18 11:09 ` [Bug target/113061] " acoplan at gcc dot gnu.org
@ 2023-12-18 12:14 ` rguenth at gcc dot gnu.org
  2023-12-18 13:27 ` acoplan at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-12-18 12:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113061

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113061] [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9
  2023-12-18 10:55 [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 mjires at suse dot cz
  2023-12-18 11:09 ` [Bug target/113061] " acoplan at gcc dot gnu.org
  2023-12-18 12:14 ` rguenth at gcc dot gnu.org
@ 2023-12-18 13:27 ` acoplan at gcc dot gnu.org
  2023-12-19  9:23 ` cvs-commit at gcc dot gnu.org
  2023-12-19  9:25 ` acoplan at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: acoplan at gcc dot gnu.org @ 2023-12-18 13:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113061

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |acoplan at gcc dot gnu.org

--- Comment #2 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Looks like the bug is in the backend predicate aarch64_stp_reg_operand, I
messed up the parentheses there.  Sorry for the breakage.  I'll prepare a patch
to fix it.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113061] [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9
  2023-12-18 10:55 [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 mjires at suse dot cz
                   ` (2 preceding siblings ...)
  2023-12-18 13:27 ` acoplan at gcc dot gnu.org
@ 2023-12-19  9:23 ` cvs-commit at gcc dot gnu.org
  2023-12-19  9:25 ` acoplan at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-19  9:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113061

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alex Coplan <acoplan@gcc.gnu.org>:

https://gcc.gnu.org/g:2cd55480857bf310c9be7daea39ea266772d3666

commit r14-6678-g2cd55480857bf310c9be7daea39ea266772d3666
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Tue Dec 19 09:22:20 2023 +0000

    aarch64: Fix parens in aarch64_stp_reg_operand [PR113061]

    In r14-6603-gfcdd2757c76bf925115b8e1ba4318d6366dd6f09 I messed up the
    parentheses in aarch64_stp_reg_operand, the indentation shows the intended
    nesting of the conditions.  This patch fixes that.

    This fixes PR113061 which shows IRA substituting (const_int 1) into a
    writeback stp pattern as a result (and LRA failing to reload the
    constant).

    gcc/ChangeLog:

            PR target/113061
            * config/aarch64/predicates.md (aarch64_stp_reg_operand): Fix
            parentheses to match intent.

    gcc/testsuite/ChangeLog:

            PR target/113061
            * gfortran.dg/PR113061.f90: New test.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/113061] [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9
  2023-12-18 10:55 [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 mjires at suse dot cz
                   ` (3 preceding siblings ...)
  2023-12-19  9:23 ` cvs-commit at gcc dot gnu.org
@ 2023-12-19  9:25 ` acoplan at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: acoplan at gcc dot gnu.org @ 2023-12-19  9:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113061

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Should be fixed, thanks for the report.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-19  9:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-18 10:55 [Bug target/113061] New: [14 Regression][aarch64] ICE in lra_create_new_reg_with_unique_value, at lra.cc:192 since r14-6605-gc0911c6b357ba9 mjires at suse dot cz
2023-12-18 11:09 ` [Bug target/113061] " acoplan at gcc dot gnu.org
2023-12-18 12:14 ` rguenth at gcc dot gnu.org
2023-12-18 13:27 ` acoplan at gcc dot gnu.org
2023-12-19  9:23 ` cvs-commit at gcc dot gnu.org
2023-12-19  9:25 ` acoplan at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).