public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs
@ 2014-03-28 14:52 ktkachov at gcc dot gnu.org
  2014-03-28 14:54 ` [Bug target/60697] " ktkachov at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-03-28 14:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60697

            Bug ID: 60697
           Summary: [aarch64] LRA ICE (Segfault) while building
                    435.gromacs
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org

Created attachment 32474
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32474&action=edit
Reduced testcase

AArch64 compiler ICEs when building SPEC2k6.

besttry.c:393:1: internal compiler error: Segmentation fault
 }
 ^
0x9d311f crash_signal
        $TOP/gcc/gcc/toplev.c:337
0x8c73af base_plus_disp_to_reg
        $TOP/gcc/gcc/lra-constraints.c:2630
0x8c9f80 process_address
        $TOP/gcc/gcc/lra-constraints.c:2942
0x8cd10c curr_insn_transform
        $TOP/gcc/gcc/lra-constraints.c:3230
0x8cfebc lra_constraints(bool)
        $TOP/gcc/gcc/lra-constraints.c:4175
0x8c0e23 lra(_IO_FILE*)
        $TOP/gcc/gcc/lra.c:2353
0x88215e do_reload
        $TOP/gcc/gcc/ira.c:5457
0x88215e rest_of_handle_reload
        $TOP/gcc/gcc/ira.c:5598
0x88215e execute
        $TOP/gcc/gcc/ira.c:5627
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reduced testcase is attached.

Fails with -O3 -mcpu=cortex-a53. Doesn't ICE with -O2


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

* [Bug target/60697] [aarch64] LRA ICE (Segfault) while building 435.gromacs
  2014-03-28 14:52 [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs ktkachov at gcc dot gnu.org
@ 2014-03-28 14:54 ` ktkachov at gcc dot gnu.org
  2014-03-28 14:55 ` ktkachov at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-03-28 14:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60697

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Target|                            |aarch64-linux-gnu
                 CC|                            |vmakarov at redhat dot com
               Host|                            |aarch64-linux-gnu
      Known to fail|                            |4.9.0

--- Comment #1 from ktkachov at gcc dot gnu.org ---
Also, doesn't ICE with -mno-lra


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

* [Bug target/60697] [aarch64] LRA ICE (Segfault) while building 435.gromacs
  2014-03-28 14:52 [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs ktkachov at gcc dot gnu.org
  2014-03-28 14:54 ` [Bug target/60697] " ktkachov at gcc dot gnu.org
@ 2014-03-28 14:55 ` ktkachov at gcc dot gnu.org
  2014-03-28 18:37 ` vmakarov at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2014-03-28 14:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60697

--- Comment #2 from ktkachov at gcc dot gnu.org ---
The compiler has been configured with:
--with-pkgversion=unknown --disable-shared --disable-nls --disable-threads
--disable-tls --enable-checking=yes --enable-languages=c,c++,fortran
--with-newlib --with-cpu=cortex-a53 --with-arch=armv8-a


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

* [Bug target/60697] [aarch64] LRA ICE (Segfault) while building 435.gromacs
  2014-03-28 14:52 [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs ktkachov at gcc dot gnu.org
  2014-03-28 14:54 ` [Bug target/60697] " ktkachov at gcc dot gnu.org
  2014-03-28 14:55 ` ktkachov at gcc dot gnu.org
@ 2014-03-28 18:37 ` vmakarov at gcc dot gnu.org
  2014-03-28 22:15 ` vmakarov at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-03-28 18:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60697

Vladimir Makarov <vmakarov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vmakarov at gcc dot gnu.org

--- Comment #3 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
LRA changes DImode pseudo onto equiv memory and subreg of the pseudo is
transformed by MEM of SImode for each address index scaling by 8 becomes wrong
for AARCH64.

The problem can be fixed by prohibiting such equiv substitution (more
complicated approach) or by transforming the index address (less complicated).

I'll try to fix it for a couple days.  Thanks.


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

* [Bug target/60697] [aarch64] LRA ICE (Segfault) while building 435.gromacs
  2014-03-28 14:52 [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs ktkachov at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-03-28 18:37 ` vmakarov at gcc dot gnu.org
@ 2014-03-28 22:15 ` vmakarov at gcc dot gnu.org
  2014-03-31  5:48 ` law at redhat dot com
  2014-04-09  7:17 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-03-28 22:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60697

--- Comment #4 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
Author: vmakarov
Date: Fri Mar 28 22:14:36 2014
New Revision: 208926

URL: http://gcc.gnu.org/viewcvs?rev=208926&root=gcc&view=rev
Log:
2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>

    PR target/60697
    * lra-constraints.c (index_part_to_reg): New.
    (process_address): Use it.

2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>

    PR target/60697
    * gcc.target/aarch64/pr60697.c: New.


Added:
    trunk/gcc/testsuite/gcc.target/aarch64/pr60697.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/60697] [aarch64] LRA ICE (Segfault) while building 435.gromacs
  2014-03-28 14:52 [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs ktkachov at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-03-28 22:15 ` vmakarov at gcc dot gnu.org
@ 2014-03-31  5:48 ` law at redhat dot com
  2014-04-09  7:17 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2014-03-31  5:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60697

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #5 from Jeffrey A. Law <law at redhat dot com> ---
Fixed by Vlad's commit on the trunk.


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

* [Bug target/60697] [aarch64] LRA ICE (Segfault) while building 435.gromacs
  2014-03-28 14:52 [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs ktkachov at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-03-31  5:48 ` law at redhat dot com
@ 2014-04-09  7:17 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-09  7:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60697

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
*** Bug 60653 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2014-04-09  7:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-28 14:52 [Bug target/60697] New: [aarch64] LRA ICE (Segfault) while building 435.gromacs ktkachov at gcc dot gnu.org
2014-03-28 14:54 ` [Bug target/60697] " ktkachov at gcc dot gnu.org
2014-03-28 14:55 ` ktkachov at gcc dot gnu.org
2014-03-28 18:37 ` vmakarov at gcc dot gnu.org
2014-03-28 22:15 ` vmakarov at gcc dot gnu.org
2014-03-31  5:48 ` law at redhat dot com
2014-04-09  7:17 ` jakub 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).