public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41029]  New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
@ 2009-08-10 20:57 rmansfield at qnx dot com
  2009-08-10 21:33 ` [Bug middle-end/41029] " steven at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rmansfield at qnx dot com @ 2009-08-10 20:57 UTC (permalink / raw)
  To: gcc-bugs

Building sh4-unknown-linux-gnu target with --enable-checking=rtl yields.

gcc version 4.5.0 20090810 (experimental) [trunk revision 150633] (GCC)

../../../libiberty/floatformat.c: In function 'floatformat_from_double':
../../../libiberty/floatformat.c:683:1: internal compiler error: RTL check:
expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE RTL check: expected code 'reg', have 'post_inc' in
                    rhs_regno, at rtl.h:1008
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmansfield at qnx dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh4-unknown-linux-gnu


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


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

* [Bug middle-end/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
  2009-08-10 20:57 [Bug middle-end/41029] New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008 rmansfield at qnx dot com
@ 2009-08-10 21:33 ` steven at gcc dot gnu dot org
  2009-08-10 21:41 ` rmansfield at qnx dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-08-10 21:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2009-08-10 21:33 -------
Can you attach the preprocessed source, so that we can try to reproduce this
without building a complete cross-toolchain?


-- 


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


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

* [Bug middle-end/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
  2009-08-10 20:57 [Bug middle-end/41029] New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008 rmansfield at qnx dot com
  2009-08-10 21:33 ` [Bug middle-end/41029] " steven at gcc dot gnu dot org
@ 2009-08-10 21:41 ` rmansfield at qnx dot com
  2009-08-10 22:12 ` rmansfield at qnx dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rmansfield at qnx dot com @ 2009-08-10 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rmansfield at qnx dot com  2009-08-10 21:40 -------
Created an attachment (id=18338)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18338&action=view)
preprocessed source


-- 


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


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

* [Bug middle-end/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
  2009-08-10 20:57 [Bug middle-end/41029] New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008 rmansfield at qnx dot com
  2009-08-10 21:33 ` [Bug middle-end/41029] " steven at gcc dot gnu dot org
  2009-08-10 21:41 ` rmansfield at qnx dot com
@ 2009-08-10 22:12 ` rmansfield at qnx dot com
  2009-08-10 23:16 ` [Bug target/41029] " kkojima at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rmansfield at qnx dot com @ 2009-08-10 22:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rmansfield at qnx dot com  2009-08-10 22:12 -------
It doesn't appear on gcc 4.3 and 4.4 branches. I'll narrow down when it was
introduced.


-- 


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


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

* [Bug target/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
  2009-08-10 20:57 [Bug middle-end/41029] New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008 rmansfield at qnx dot com
                   ` (2 preceding siblings ...)
  2009-08-10 22:12 ` rmansfield at qnx dot com
@ 2009-08-10 23:16 ` kkojima at gcc dot gnu dot org
  2009-08-12 22:26 ` kkojima at gcc dot gnu dot org
  2009-08-12 22:29 ` kkojima at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-08-10 23:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from kkojima at gcc dot gnu dot org  2009-08-10 23:15 -------
GDB backtrace shows a target problem.  I'm testing the patch below.

        * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.

--- ORIG/trunk/gcc/config/sh/sh.md      2009-07-06 23:27:44.000000000 +0900
+++ trunk/gcc/config/sh/sh.md   2009-08-11 07:54:41.000000000 +0900
@@ -6065,7 +6065,7 @@ label:
           /* If we have modified the stack pointer, the value that we have
             read with post-increment might be modified by an interrupt,
             so write it back.  */
-          if (REGNO (addr) == STACK_POINTER_REGNUM)
+          if (REGNO (XEXP (addr, 0)) == STACK_POINTER_REGNUM)
            emit_insn (gen_push_e (reg0));
           else
            emit_insn (gen_addsi3 (XEXP (operands[1], 0), XEXP (operands[1],
0), GEN_INT (-4)));


-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kkojima at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |target
     Ever Confirmed|0                           |1
           Priority|P3                          |P4
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-10 23:15:48
               date|                            |


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


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

* [Bug target/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
  2009-08-10 20:57 [Bug middle-end/41029] New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008 rmansfield at qnx dot com
                   ` (3 preceding siblings ...)
  2009-08-10 23:16 ` [Bug target/41029] " kkojima at gcc dot gnu dot org
@ 2009-08-12 22:26 ` kkojima at gcc dot gnu dot org
  2009-08-12 22:29 ` kkojima at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-08-12 22:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kkojima at gcc dot gnu dot org  2009-08-12 22:26 -------
Subject: Bug 41029

Author: kkojima
Date: Wed Aug 12 22:26:13 2009
New Revision: 150709

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150709
Log:
        PR target/41029
        * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sh/sh.md


-- 


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


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

* [Bug target/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008
  2009-08-10 20:57 [Bug middle-end/41029] New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008 rmansfield at qnx dot com
                   ` (4 preceding siblings ...)
  2009-08-12 22:26 ` kkojima at gcc dot gnu dot org
@ 2009-08-12 22:29 ` kkojima at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-08-12 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kkojima at gcc dot gnu dot org  2009-08-12 22:29 -------
Fixed.


-- 

kkojima at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2009-08-12 22:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-10 20:57 [Bug middle-end/41029] New: ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008 rmansfield at qnx dot com
2009-08-10 21:33 ` [Bug middle-end/41029] " steven at gcc dot gnu dot org
2009-08-10 21:41 ` rmansfield at qnx dot com
2009-08-10 22:12 ` rmansfield at qnx dot com
2009-08-10 23:16 ` [Bug target/41029] " kkojima at gcc dot gnu dot org
2009-08-12 22:26 ` kkojima at gcc dot gnu dot org
2009-08-12 22:29 ` kkojima at gcc dot gnu dot 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).