public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43417]  New: ICE : in final_scan_insn, at final.c:2604
@ 2010-03-18  7:15 iwamatsu at nigauri dot org
  2010-03-18  7:18 ` [Bug target/43417] " iwamatsu at nigauri dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: iwamatsu at nigauri dot org @ 2010-03-18  7:15 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2299 bytes --]

I found a bug of ICE in gcc-4.4.3 on sh-elf. 
gcc-4.3 and gcc-4.5 does not have this problem.

$ gcc -O2 mtest01-k-e.c
mtest01-k.c: In function emainf:
mtest01-k.c:88: error: could not split insn
(jump_insn 312 302 472 mtest01-k.c:64 (parallel [
            (set (pc)
                (if_then_else (leu (reg/v:DI 12 r12 [orig:310 maxbytes ] [310])
                        (const_int 1073741824 [0x40000000]))
                    (label_ref:SI 516)
                    (pc)))
            (clobber (reg:SI 10 r10))
            (clobber (reg:SI 147 t))
        ]) 6 {cbranchdi4_i} (expr_list:REG_BR_PRED (const_int 49 [0x31])
        (expr_list:REG_UNUSED (reg:SI 147 t)
            (expr_list:REG_UNUSED (reg:SI 10 r10)
                (expr_list:REG_BR_PROB (const_int 0 [0x0])
                    (nil))))))
mtest01-k.c:88: internal compiler error: in final_scan_insn, at final.c:2604
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.

When I don't optimize it, it doesn't become the error.

$ gcc-4.4 -v 
Using built-in specs.
Target: sh4-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.3-3'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--with-multilib-list=m4,m4-nofpu --with-cpu=sh4 --enable-checking=release
--build=sh4-linux-gnu --host=sh4-linux-gnu --target=sh4-linux-gnu
Thread model: posix
gcc version 4.4.3 (Debian 4.4.3-3)


-- 
           Summary: ICE : in final_scan_insn, at final.c:2604
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iwamatsu at nigauri dot org
 GCC build triplet: sh4-linux-gnu
  GCC host triplet: sh4-linux-gnu
GCC target triplet: sh4-linux-gnu


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


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

* [Bug target/43417] ICE : in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
@ 2010-03-18  7:18 ` iwamatsu at nigauri dot org
  2010-03-18 12:40 ` [Bug target/43417] SH: 4.4 ICE " kkojima at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: iwamatsu at nigauri dot org @ 2010-03-18  7:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from iwamatsu at nigauri dot org  2010-03-18 07:18 -------
Created an attachment (id=20138)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20138&action=view)
The source code that can reproduce a problem.

this code generate by -E option.
Sorry. There is the code to reappear, but cannot lower it.


-- 


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
  2010-03-18  7:18 ` [Bug target/43417] " iwamatsu at nigauri dot org
@ 2010-03-18 12:40 ` kkojima at gcc dot gnu dot org
  2010-03-19  6:12 ` iwamatsu at nigauri dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2010-03-18 12:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kkojima at gcc dot gnu dot org  2010-03-18 12:39 -------
Looks the same issue in

http://gcc.gnu.org/ml/gcc-patches/2009-04/msg00747.html

though I can't reproduce the problem with my gcc-4.4.3 and
4.4 head compilers for the test case in #1.
Could you try the patch in the above URL?


-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
           Keywords|                            |ice-on-valid-code
            Summary|ICE : in final_scan_insn, at|SH: 4.4 ICE in
                   |final.c:2604                |final_scan_insn, at
                   |                            |final.c:2604


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
  2010-03-18  7:18 ` [Bug target/43417] " iwamatsu at nigauri dot org
  2010-03-18 12:40 ` [Bug target/43417] SH: 4.4 ICE " kkojima at gcc dot gnu dot org
@ 2010-03-19  6:12 ` iwamatsu at nigauri dot org
  2010-03-20  9:09 ` kkojima at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: iwamatsu at nigauri dot org @ 2010-03-19  6:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from iwamatsu at nigauri dot org  2010-03-19 06:11 -------
(In reply to comment #2)
> Looks the same issue in
> 
> http://gcc.gnu.org/ml/gcc-patches/2009-04/msg00747.html
> 
> though I can't reproduce the problem with my gcc-4.4.3 and
> 4.4 head compilers for the test case in #1.
> Could you try the patch in the above URL?

I tested this patch. The problem was revised.
gcc-4.4.3 of debian(20,100,226 SVN / r157081 base) revision was not taken in.

Thank you.


-- 


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
                   ` (2 preceding siblings ...)
  2010-03-19  6:12 ` iwamatsu at nigauri dot org
@ 2010-03-20  9:09 ` kkojima at gcc dot gnu dot org
  2010-03-21 22:29 ` kkojima at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2010-03-20  9:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from kkojima at gcc dot gnu dot org  2010-03-20 09:08 -------
I'm able to reproduce it with -O2 -fno-schedule-insns on 4.4.
Perhaps debian uses the local patch to make -fno-schedule-insns default.
I'll backport the patch referred in #2 to 4.4 branch if it passes
the usual tests on that branch.


-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.3
      Known to work|                            |4.3.4 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-20 09:08:58
               date|                            |


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
                   ` (3 preceding siblings ...)
  2010-03-20  9:09 ` kkojima at gcc dot gnu dot org
@ 2010-03-21 22:29 ` kkojima at gcc dot gnu dot org
  2010-03-21 22:32 ` kkojima at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2010-03-21 22:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from kkojima at gcc dot gnu dot org  2010-03-21 22:29 -------
Subject: Bug 43417

Author: kkojima
Date: Sun Mar 21 22:29:19 2010
New Revision: 157610

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157610
Log:
        Backport from mainline:
        2009-05-12  Paolo Bonzini  <bonzini@gnu.org>

        PR target/43417
        * config/sh/sh.md (cbranchdi4_i): Use an "I08" constraint
        instead of "i" constraint.


Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/config/sh/sh.md


-- 


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
                   ` (4 preceding siblings ...)
  2010-03-21 22:29 ` kkojima at gcc dot gnu dot org
@ 2010-03-21 22:32 ` kkojima at gcc dot gnu dot org
  2010-04-10 11:44 ` jiez at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2010-03-21 22:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from kkojima at gcc dot gnu dot org  2010-03-21 22:32 -------
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=43417


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
                   ` (5 preceding siblings ...)
  2010-03-21 22:32 ` kkojima at gcc dot gnu dot org
@ 2010-04-10 11:44 ` jiez at gcc dot gnu dot org
  2010-04-10 15:12 ` jiez at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jiez at gcc dot gnu dot org @ 2010-04-10 11:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jiez at gcc dot gnu dot org  2010-04-10 11:43 -------
For the record, -m4 is needed to reproduce this issue.


-- 

jiez at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jiez at gcc dot gnu dot org


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
                   ` (6 preceding siblings ...)
  2010-04-10 11:44 ` jiez at gcc dot gnu dot org
@ 2010-04-10 15:12 ` jiez at gcc dot gnu dot org
  2010-04-10 15:14 ` jiez at gcc dot gnu dot org
  2010-04-10 15:17 ` jiez at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jiez at gcc dot gnu dot org @ 2010-04-10 15:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jiez at gcc dot gnu dot org  2010-04-10 15:12 -------
Subject: Bug 43417

Author: jiez
Date: Sat Apr 10 15:12:14 2010
New Revision: 158192

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158192
Log:
        PR target/43417
        * gcc.target/sh/pr43417.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/sh/pr43417.c
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
                   ` (7 preceding siblings ...)
  2010-04-10 15:12 ` jiez at gcc dot gnu dot org
@ 2010-04-10 15:14 ` jiez at gcc dot gnu dot org
  2010-04-10 15:17 ` jiez at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jiez at gcc dot gnu dot org @ 2010-04-10 15:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from jiez at gcc dot gnu dot org  2010-04-10 15:14 -------
Subject: Bug 43417

Author: jiez
Date: Sat Apr 10 15:14:13 2010
New Revision: 158193

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158193
Log:
        PR target/43417
        * gcc.target/sh/pr43417.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.target/sh/pr43417.c
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug target/43417] SH: 4.4 ICE in final_scan_insn, at final.c:2604
  2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
                   ` (8 preceding siblings ...)
  2010-04-10 15:14 ` jiez at gcc dot gnu dot org
@ 2010-04-10 15:17 ` jiez at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jiez at gcc dot gnu dot org @ 2010-04-10 15:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from jiez at gcc dot gnu dot org  2010-04-10 15:17 -------
Subject: Bug 43417

Author: jiez
Date: Sat Apr 10 15:17:15 2010
New Revision: 158194

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158194
Log:
        PR target/43417
        * gcc.target/sh/pr43417.c: New test.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.target/sh/pr43417.c
Modified:
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2010-04-10 15:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-18  7:15 [Bug c/43417] New: ICE : in final_scan_insn, at final.c:2604 iwamatsu at nigauri dot org
2010-03-18  7:18 ` [Bug target/43417] " iwamatsu at nigauri dot org
2010-03-18 12:40 ` [Bug target/43417] SH: 4.4 ICE " kkojima at gcc dot gnu dot org
2010-03-19  6:12 ` iwamatsu at nigauri dot org
2010-03-20  9:09 ` kkojima at gcc dot gnu dot org
2010-03-21 22:29 ` kkojima at gcc dot gnu dot org
2010-03-21 22:32 ` kkojima at gcc dot gnu dot org
2010-04-10 11:44 ` jiez at gcc dot gnu dot org
2010-04-10 15:12 ` jiez at gcc dot gnu dot org
2010-04-10 15:14 ` jiez at gcc dot gnu dot org
2010-04-10 15:17 ` jiez 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).