public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/55150] New: Crash in copy_rtx
@ 2012-10-31 16:40 rmansfield at qnx dot com
  2012-10-31 16:41 ` [Bug middle-end/55150] " rmansfield at qnx dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rmansfield at qnx dot com @ 2012-10-31 16:40 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55150
           Summary: Crash in copy_rtx
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rmansfield@qnx.com
                CC: vmakarov@redhat.com


Created attachment 28581
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28581
preprocessed src

It appears this regression was introduced during the LRA merge:

http://gcc.gnu.org/viewcvs?view=revision&revision=192719

$ ./xgcc -B. -Os -g ~/ice.i -m32
/home/ryan/ice.i: In function ‘Camellia_Ekeygen’:
/home/ryan/ice.i:68:3: internal compiler error: in copy_rtx, at rtl.c:323
   }
   ^
0x890190 copy_rtx(rtx_def*)
    ../../gcc/rtl.c:323
0x800628 remove_pseudos
    ../../gcc/lra-spills.c:435
0x800693 remove_pseudos
    ../../gcc/lra-spills.c:443
0x800693 remove_pseudos
    ../../gcc/lra-spills.c:443
0x800693 remove_pseudos
    ../../gcc/lra-spills.c:443
0x800693 remove_pseudos
    ../../gcc/lra-spills.c:443
0x800c73 spill_pseudos
    ../../gcc/lra-spills.c:481
0x800c73 lra_spill()
    ../../gcc/lra-spills.c:568
0x7ec984 lra(_IO_FILE*)
    ../../gcc/lra.c:2327
0x7b4326 do_reload
    ../../gcc/ira.c:4624
0x7b4326 rest_of_handle_reload
    ../../gcc/ira.c:4736
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.


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

* [Bug middle-end/55150] Crash in copy_rtx
  2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
@ 2012-10-31 16:41 ` rmansfield at qnx dot com
  2012-10-31 18:41 ` vmakarov at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rmansfield at qnx dot com @ 2012-10-31 16:41 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Ryan Mansfield <rmansfield at qnx dot com> 2012-10-31 16:41:14 UTC ---
Forgot some info

$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=c++ --disable-bootstrap
Thread model: posix
gcc version 4.8.0 20121031 (experimental) [trunk revision 193038] (GCC)


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

* [Bug middle-end/55150] Crash in copy_rtx
  2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
  2012-10-31 16:41 ` [Bug middle-end/55150] " rmansfield at qnx dot com
@ 2012-10-31 18:41 ` vmakarov at gcc dot gnu.org
  2012-11-01 11:47 ` rmansfield at qnx dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2012-10-31 18:41 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2012-10-31 18:41:26 UTC ---
Author: vmakarov
Date: Wed Oct 31 18:41:18 2012
New Revision: 193042

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193042
Log:
2012-10-31  Vladimir Makarov  <vmakarov@redhat.com>

    PR middle-end/55150
    * lra-constraints.c (lra_constraints): Update debug insn info
    after equivalence change.

2012-10-31  Vladimir Makarov  <vmakarov@redhat.com>

    PR middle-end/55150
    * gcc.dg/pr55150.c: New test.



Added:
    trunk/gcc/testsuite/gcc.dg/pr55150.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/55150] Crash in copy_rtx
  2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
  2012-10-31 16:41 ` [Bug middle-end/55150] " rmansfield at qnx dot com
  2012-10-31 18:41 ` vmakarov at gcc dot gnu.org
@ 2012-11-01 11:47 ` rmansfield at qnx dot com
  2012-11-01 11:48 ` rmansfield at qnx dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rmansfield at qnx dot com @ 2012-11-01 11:47 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Ryan Mansfield <rmansfield at qnx dot com> 2012-11-01 11:46:24 UTC ---
I found similar crash that happens with the fix in comment #2 applied. i.e.
using rev193061:

$ ./xgcc -B. -m32 -Os -fpic -g ~/ice.i 
/home/ryan/ice.i: In function ‘DES_ede3_cbcm_encrypt’:
/home/ryan/ice.i:49:2: internal compiler error: Segmentation fault
  }
  ^
0x8e599f crash_signal
    ../../gcc/toplev.c:333
0x88ff75 copy_rtx(rtx_def*)
    ../../gcc/rtl.c:246
0x800458 remove_pseudos
    ../../gcc/lra-spills.c:435
0x8004c3 remove_pseudos
    ../../gcc/lra-spills.c:443
0x8004c3 remove_pseudos
    ../../gcc/lra-spills.c:443
0x8004c3 remove_pseudos
    ../../gcc/lra-spills.c:443
0x8004c3 remove_pseudos
    ../../gcc/lra-spills.c:443
0x8004c3 remove_pseudos
    ../../gcc/lra-spills.c:443
0x8004c3 remove_pseudos
    ../../gcc/lra-spills.c:443
0x800aa3 spill_pseudos
    ../../gcc/lra-spills.c:481
0x800aa3 lra_spill()
    ../../gcc/lra-spills.c:568
0x7ec7b4 lra(_IO_FILE*)
    ../../gcc/lra.c:2327
0x7b4156 do_reload
    ../../gcc/ira.c:4624
0x7b4156 rest_of_handle_reload
    ../../gcc/ira.c:4737
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.


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

* [Bug middle-end/55150] Crash in copy_rtx
  2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
                   ` (2 preceding siblings ...)
  2012-11-01 11:47 ` rmansfield at qnx dot com
@ 2012-11-01 11:48 ` rmansfield at qnx dot com
  2012-11-01 19:03 ` vmakarov at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rmansfield at qnx dot com @ 2012-11-01 11:48 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Ryan Mansfield <rmansfield at qnx dot com> 2012-11-01 11:47:54 UTC ---
Created attachment 28590
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28590
second preprocessed src testcase


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

* [Bug middle-end/55150] Crash in copy_rtx
  2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
                   ` (3 preceding siblings ...)
  2012-11-01 11:48 ` rmansfield at qnx dot com
@ 2012-11-01 19:03 ` vmakarov at gcc dot gnu.org
  2012-11-02 14:45 ` vmakarov at gcc dot gnu.org
  2013-12-17 16:24 ` rmansfield at qnx dot com
  6 siblings, 0 replies; 8+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2012-11-01 19:03 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2012-11-01 19:02:48 UTC ---
Author: vmakarov
Date: Thu Nov  1 19:02:40 2012
New Revision: 193065

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193065
Log:
2012-11-01  Vladimir Makarov  <vmakarov@redhat.com>

    PR middle-end/55150
    * lra-constraints.c (lra_constraints): Check only pseudos with
    equivalences.  Add insns with equivalence pseudos.

2012-11-01  Vladimir Makarov  <vmakarov@redhat.com>

    PR middle-end/55150
    * gcc.dg/pr55150.c: Rename to gcc.dg/pr55150-1.c.
    * gcc.dg/pr55150-2.c: New test.



Added:
    trunk/gcc/testsuite/gcc.dg/pr55150-1.c
    trunk/gcc/testsuite/gcc.dg/pr55150-2.c
Removed:
    trunk/gcc/testsuite/gcc.dg/pr55150.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/55150] Crash in copy_rtx
  2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
                   ` (4 preceding siblings ...)
  2012-11-01 19:03 ` vmakarov at gcc dot gnu.org
@ 2012-11-02 14:45 ` vmakarov at gcc dot gnu.org
  2013-12-17 16:24 ` rmansfield at qnx dot com
  6 siblings, 0 replies; 8+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2012-11-02 14:45 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2012-11-02 14:44:24 UTC ---
Author: vmakarov
Date: Fri Nov  2 14:44:12 2012
New Revision: 193096

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193096
Log:
2012-11-02  Vladimir Makarov  <vmakarov@redhat.com>

    PR middle-end/55130
    * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
    loc_equivalence_change_p.
    (lra_constraints): Check equiv_insn_bitmap for debug insn.  Call
    loc_equivalence_change_p for non-transformed insn.

2012-11-02  Vladimir Makarov  <vmakarov@redhat.com>

    PR middle-end/55150
    * gcc.target/i386/pr55130.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr55130.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/lra-constraints.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/55150] Crash in copy_rtx
  2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
                   ` (5 preceding siblings ...)
  2012-11-02 14:45 ` vmakarov at gcc dot gnu.org
@ 2013-12-17 16:24 ` rmansfield at qnx dot com
  6 siblings, 0 replies; 8+ messages in thread
From: rmansfield at qnx dot com @ 2013-12-17 16:24 UTC (permalink / raw)
  To: gcc-bugs

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

Ryan Mansfield <rmansfield at qnx dot com> changed:

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

--- Comment #7 from Ryan Mansfield <rmansfield at qnx dot com> ---
Fixed


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

end of thread, other threads:[~2013-12-17 16:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-31 16:40 [Bug middle-end/55150] New: Crash in copy_rtx rmansfield at qnx dot com
2012-10-31 16:41 ` [Bug middle-end/55150] " rmansfield at qnx dot com
2012-10-31 18:41 ` vmakarov at gcc dot gnu.org
2012-11-01 11:47 ` rmansfield at qnx dot com
2012-11-01 11:48 ` rmansfield at qnx dot com
2012-11-01 19:03 ` vmakarov at gcc dot gnu.org
2012-11-02 14:45 ` vmakarov at gcc dot gnu.org
2013-12-17 16:24 ` rmansfield at qnx dot com

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).