[Bug target/62111] ICE when building Linux kernel for sh64

2014-09-02 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 Kazumoto Kojima changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/62111] ICE when building Linux kernel for sh64

2014-09-02 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #18 from Kazumoto Kojima --- Author: kkojima Date: Tue Sep 2 22:28:29 2014 New Revision: 214832 URL: https://gcc.gnu.org/viewcvs?rev=214832&root=gcc&view=rev Log: PR target/62111 * config/sh/predicates.md (general_extend_ope

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-25 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #17 from Kazumoto Kojima --- I've filed a new PR62261 for the issue in #c7.

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-24 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #16 from Kazumoto Kojima --- Author: kkojima Date: Mon Aug 25 00:37:51 2014 New Revision: 214413 URL: https://gcc.gnu.org/viewcvs?rev=214413&root=gcc&view=rev Log: PR target/62111 * config/sh/predicates.md (general_extend_ope

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-21 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #15 from dhowells at redhat dot com --- That fixes the ICE.

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #14 from Kazumoto Kojima --- Created attachment 33372 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33372&action=edit A possible patch It seems that the ICE in #c7 came from the negative shift count. I'm not sure that the patc

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-21 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #13 from dhowells at redhat dot com --- (In reply to Segher Boessenkool from comment #11) > Re: #c7: > > In sh.c, change "char amount[6]" to "signed char > amount[6]" -- does that help? That shouldn't make any difference to a compil

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-20 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #12 from Oleg Endo --- (In reply to Segher Boessenkool from comment #11) > Re: #c7: > > In sh.c, change "char amount[6]" to "signed char > amount[6]" -- does that help? Hm, using 'signed char' instead of 'char' maybe could solve a f

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-19 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org --- Comme

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-18 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #10 from dhowells at redhat dot com --- This is the reduced test case for comment 7: extern void string_get_size(unsigned long long size); void sd_read_capacity(unsigned long long capacity) { string_get_size(capacity << -1); }

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-18 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #9 from Oleg Endo --- (In reply to dhowe...@redhat.com from comment #7) > Having said that, if I use make -k, I can get this: > > ../drivers/scsi/sd.c: In function 'sd_init_command': > ../drivers/scsi/sd.c:1139:1: error: unrecognizab

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-18 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #8 from Kazumoto Kojima --- A reduced test case is always welcome.

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-18 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #7 from dhowells at redhat dot com --- Having said that, if I use make -k, I can get this: ../drivers/scsi/sd.c: In function 'sd_init_command': ../drivers/scsi/sd.c:1139:1: error: unrecognizable insn: } ^ (insn 1335 1334 9 190 (set

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-18 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #6 from dhowells at redhat dot com --- (In reply to Kazumoto Kojima from comment #5) > ... > > even though general_extend_operand doesn't permit (truncate (mem ...)). > An easy workaround might be to disable truncate in general_exten

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-17 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 Kazumoto Kojima changed: What|Removed |Added CC||kkojima at gcc dot gnu.org --- Comment

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-12 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #4 from dhowells at redhat dot com --- The compiler is gcc-4.9.1, dated 20140717, svnrev 212747. One patch is applied - see bug 61844.

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-12 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 Oleg Endo changed: What|Removed |Added Target||sh*-*-* Status|UNCONFIRMED

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-12 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #2 from dhowells at redhat dot com --- The binutils is based on the 2.24 branch, git commit cab6c3ee9785f072a373afe31253df0451db93cf and was built targeting sh64-linux-elf.

[Bug target/62111] ICE when building Linux kernel for sh64

2014-08-12 Thread dhowells at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62111 --- Comment #1 from dhowells at redhat dot com --- The following command line is sufficient to reproduce the error: sh64-linux-gnu-gcc -m5-64media-nofpu -ml -O2 -S -o testcase.o testcase.i Adding -v to the command line: Using built-in specs. C