[Bug target/64761] [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

2015-02-09 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64761 --- Comment #5 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Mon Feb 9 23:47:11 2015 New Revision: 220552 URL: https://gcc.gnu.org/viewcvs?rev=220552root=gccview=rev Log: PR target/64761 Replace MD_REDIRECT_BRANCH

[Bug target/64761] [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

2015-02-09 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64761 --- Comment #6 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Tue Feb 10 00:00:54 2015 New Revision: 220553 URL: https://gcc.gnu.org/viewcvs?rev=220553root=gccview=rev Log: PR target/64761 [SH] Add jump insn

[Bug target/64761] [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

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

[Bug target/64761] [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

2015-01-23 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64761 --- Comment #1 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 34560 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34560action=edit Update of Joern's patch

[Bug target/64761] [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

2015-01-23 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64761 --- Comment #4 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 34562 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34562action=edit patch for dbr_schedule

[Bug target/64761] New: [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

2015-01-23 Thread kkojima at gcc dot gnu.org
-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kkojima at gcc dot gnu.org Target: sh*-*-* For SH, we have two failures on testsuite FAIL: gcc.dg/tree-prof

[Bug target/64761] [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

2015-01-23 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64761 --- Comment #3 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Even after these changes, Error: displacement to defined symbol .L59 overflows 12-bit field remains for va-arg-pack-1.c and a new failure Error: displacement to defined

[Bug target/64761] [4.9/5 Regression] -freorder-blocks-and-partition causes some failures on SH

2015-01-23 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64761 --- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 34561 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34561action=edit patch for crossing jump

[Bug libstdc++/29366] atomics config for sh is weird

2015-01-23 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29366 --- Comment #7 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #6) The patch works on a default sh-elf/newlib config -- it just uses the single-thread fake atomics from libstdc++. Kaz, could you please

[Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c

2015-01-14 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300 --- Comment #4 from Kazumoto Kojima kkojima at gcc dot gnu.org --- I think this has been addressed with r218760 by Makarov. Can we close this as resolved?

[Bug target/61157] [SH] Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV

2015-01-12 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61157 --- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Sorry for missing this PR. Yes, we can close this.

[Bug target/64533] [5 Regression] [SH] alloca generates unsafe code

2015-01-08 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64533 --- Comment #1 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Thu Jan 8 09:05:06 2015 New Revision: 219338 URL: https://gcc.gnu.org/viewcvs?rev=219338root=gccview=rev Log: PR target/64533 * config/sh/sh.md

[Bug target/64533] [5 Regression] [SH] alloca generates unsafe code

2015-01-08 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64533 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/64533] New: [5 Regression] [SH] alloca generates unsafe code

2015-01-07 Thread kkojima at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kkojima at gcc dot gnu.org Target: sh*-*-* The trunk compiler compiles void *foo() { return alloca (0x400);} to foo: mov.l r14,@-r15 mov r15,r1

[Bug rtl-optimization/64366] New: Segmentation fault in remove_pseudos

2014-12-19 Thread kkojima at gcc dot gnu.org
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: kkojima at gcc dot gnu.org CC: olegendo at gcc dot gnu.org, vmakarov at gcc dot gnu.org Target: sh*-*-* Created attachment 34303 -- https://gcc.gnu.org

[Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c

2014-12-15 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300 --- Comment #3 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Vladimir Makarov from comment #2) Thanks for reporting. I've just committed a patch focusing on the same problem. Could you check that the patch solves

[Bug target/64300] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c

2014-12-14 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added CC||kkojima

[Bug target/55212] [SH] Switch to LRA

2014-12-01 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #89 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 34159 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34159action=edit a reduced c++ test case (-O2 -std=gnu++11) Here is related lines of lra

[Bug target/55212] [SH] Switch to LRA

2014-11-30 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #88 from Kazumoto Kojima kkojima at gcc dot gnu.org --- For the record, here is the sh-lra revisions. 218191: Merge from trunk revision 218173. 218192: Add legitimize_address_displacement target macto. 218193: Split QI/HImode

[Bug target/55212] [SH] Switch to LRA

2014-11-28 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #85 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 34135 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34135action=edit patch to add -mlra option I'd like to apply the patch to add a transitional option

[Bug target/64008] [SH] sh4-linux configured compiler rejects -m4-nofpu

2014-11-22 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64008 --- Comment #3 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #2) and a patch from somewhere else that seems related: http://cgit.openembedded.org/openembedded/plain/recipes/gcc/gcc-4.5/sh4

[Bug target/64008] [SH] sh4-linux configured compiler rejects -m4-nofpu

2014-11-22 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64008 --- Comment #5 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Segher Boessenkool from comment #4) At least for sh4, it would have a historical reason. In the old time, -m4-nofpu confused many users (including me). From its

[Bug target/55212] [SH] Switch to LRA

2014-11-22 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #84 from Kazumoto Kojima kkojima at gcc dot gnu.org --- FYI, merge from trunk revision 217978 as sh-lra revision 217980 to apply the lra remat changes on trunk.

[Bug target/64008] [SH] sh4-linux configured compiler rejects -m4-nofpu

2014-11-20 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64008 --- Comment #1 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #0) Kaz, do you have any idea why these SUPPORT_SH* macros are needed? Why isn't just every CPU/FPU type marked as supported? I have

[Bug target/55212] [SH] Switch to LRA

2014-11-16 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #82 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Kazumoto Kojima from comment #77) Created attachment 33788 [details] another reduced test case of compiler/vam It seems that unsigned char memory accesses make

[Bug target/55212] [SH] Switch to LRA

2014-11-16 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #83 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33992 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33992action=edit a patch for the issue c#77 Interestingly, this reduces the total text size of CSiBE

[Bug target/63783] [4.9/5 Regression] [SH] Miscompilation of boolean negation on SH4 using -O2

2014-11-08 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63783 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added Target||sh

[Bug target/55212] [SH] Switch to LRA

2014-10-26 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #78 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33813 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33813action=edit a trial patch for the issue c#76 With it, the generated code for c#76 test case

[Bug target/55212] [SH] Switch to LRA

2014-10-26 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #80 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #79) Hm, maybe it's better to name this legitimize_address_displacement or legitimize_address_offset? Sure. I'm not sure whether

[Bug target/55212] [SH] Switch to LRA

2014-10-22 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #76 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33787 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33787action=edit a reduced test case of SCiBE compiler/vam test compiler/vam is a test which

[Bug target/55212] [SH] Switch to LRA

2014-10-22 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #77 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33788 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33788action=edit another reduced test case of compiler/vam This is an another test case got from

[Bug target/55212] [SH] Switch to LRA

2014-10-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #73 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #71) I don't know the details and maybe I'm totally off here ... LRA is being used for ARM and there are almost the same amount of GP

[Bug target/55212] [SH] Switch to LRA

2014-10-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #75 from Kazumoto Kojima kkojima at gcc dot gnu.org --- FYI, merge from trunk revision 216447 as r216529. I've fixed c#55, c#59, c#61 and c#66 so to match this merge and committed them on sh-lra as r216532, r216533, r216533

[Bug target/55212] [SH] Switch to LRA

2014-10-19 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #70 from Kazumoto Kojima kkojima at gcc dot gnu.org --- I'd like to apply the revised patches below to sh-lra branch for looking at the problems easily. Oleg, is it OK for you? c#55: Fixup the result of decompose_mem_address when

[Bug target/55212] [SH] Switch to LRA

2014-10-18 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #69 from Kazumoto Kojima kkojima at gcc dot gnu.org --- The patch in c#57 disables memory equiv substitution for the memory with base+index and base+display addressing. static bool sh_cannot_substitute_equiv_p (rtx subst

[Bug target/53513] [SH] Add support for fschg and fpchg insns and improve fenv support

2014-10-17 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53513 --- Comment #39 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #38) ... there are no new failures for -m4 -ml and -m4 -mb. I'm tempted to apply it. Kaz, do you have any objections? I have no objection.

[Bug target/53513] [SH] Add support for fschg and fpchg insns and improve fenv support

2014-10-16 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53513 --- Comment #33 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #32) I'd propose the following for SH: unsigned int __builtin_sh_get_fpscr () void __builtin_sh_set_fpscr (unsigned int) Any

[Bug target/59401] [SH] GBR addressing mode optimization produces wrong code

2014-10-15 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59401 --- Comment #12 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #11) Kaz, could you please add the attached patch to your test run? No new failures for the top level make -k check on sh4-unknown-linux-gnu.

[Bug target/53513] [SH] Add support for fschg and fpchg insns and improve fenv support

2014-10-15 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53513 --- Comment #30 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #29) With this patch there are no new failures for -m4 -ml and -m4 -mb here, except the ISR failures. I'll also test it for the other

[Bug target/53513] [SH] Add support for fschg and fpchg insns and improve fenv support

2014-10-14 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53513 --- Comment #25 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #23) Kaz, could you please have an early look at it? The idea looks OK to me. Build fails on sh4-linux with the patch, though. Maybe

[Bug target/63260] [SH] fabs, fneg do not need fp-mode setting and do not use fpscr

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63260 --- Comment #3 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #2) Kaz, could you please add the proposed patch to your test run and let me know of the result? I'd like to sort this out before proceeding

[Bug target/63260] [SH] fabs, fneg do not need fp-mode setting and do not use fpscr

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63260 --- Comment #5 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #4) If the failures on my side go away after that, I'll commit the patch from comment #2, OK? Please go ahead.

[Bug target/55212] [SH] Switch to LRA

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #63 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33705 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33705action=edit CSiBE result-size.cvs sh-lra+c#29+c#55+c#57+c#61

[Bug target/55212] [SH] Switch to LRA

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #64 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33706 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33706action=edit CSiBE result-size.cvs trunk rev.215912

[Bug target/55212] [SH] Switch to LRA

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #65 from Kazumoto Kojima kkojima at gcc dot gnu.org --- We can see ~2% code size regression on average with CSiBE. There are some cases which register elimination doesn't work well. An example is int foo (int x) { int y[100

[Bug target/55212] [SH] Switch to LRA

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #66 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33707 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33707action=edit a possible patch With it, foo is compiled to foo: sts.l pr,@-r15

[Bug target/55212] [SH] Switch to LRA

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #67 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33708 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33708action=edit CSiBE result-runtime.cvs sh-lra+c#29+c#55+c#57+c#61+c#66

[Bug target/55212] [SH] Switch to LRA

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #68 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33709 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33709action=edit CSiBE result-runtime.cvs trunk rev.215912 0.54% runtime regression.

[Bug target/59401] [SH] GBR addressing mode optimization produces wrong code

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59401 --- Comment #7 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #6) Kaz, what's your opinion on making GBR to be call preserved by default? Looks OK to me for 5.0. It's clearly an ABI change but a change

[Bug target/59401] [SH] GBR addressing mode optimization produces wrong code

2014-10-13 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59401 --- Comment #9 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #8) change the value for gbr in sh.h CALL_USED_REGISTERS from '1' to '0' and confirm that everything is still OK? The comment and document

[Bug target/55212] [SH] Switch to LRA

2014-10-12 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #60 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Kazumoto Kojima from comment #59) Yet another lra-assigns.c:1335 ICE when compiling nrrd/kernel.c of CSiBE/ teem-1.6.0 test. It looks that RA fails for FPUL_REGS

[Bug target/55212] [SH] Switch to LRA

2014-10-12 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #61 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33692 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33692action=edit a possible patch I'm testing a patch to define a SH specific

[Bug target/59401] [SH] GBR addressing mode optimization produces wrong code

2014-10-12 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59401 --- Comment #4 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #3) Do you have an opinion on that? Looks the latter is enough for the released branches. I'm OK with eather way, though.

[Bug target/55212] [SH] Switch to LRA

2014-10-11 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #59 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33688 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33688action=edit reduced CSiBE teem-1.6.0 test (-O2 sh4-linux) Yet another lra-assigns.c:1335 ICE

[Bug target/55212] [SH] Switch to LRA

2014-10-10 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added Attachment #33526|0 |1

[Bug target/55212] [SH] Switch to LRA

2014-10-10 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #58 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Kazumoto Kojima from comment #57) revised patch for the problem in c#25 I've looked into the remained ICEs for usual sh4-unknown-linux-gnu test and got

[Bug target/55212] [SH] Switch from IRA to LRA

2014-10-07 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added Attachment #33657|0 |1

[Bug target/55212] [SH] Switch from IRA to LRA

2014-10-06 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #53 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #52) Created attachment 33632 [details] Reduced case of error: in assign_by_spills, at lra-assigns.c:1335 with -m4 -ml -O2 .ira dump

[Bug target/55212] [SH] Switch from IRA to LRA

2014-10-06 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #54 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33657 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33657action=edit A possible workaround The patch is trying to fix the result

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-30 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #49 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #48) The array at i = 699 doesn't seem to contain anything valid. It looks that (expr_list:DF (use (mem:DF (reg/f:SI 699) [0 S8 A32

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-28 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #40 from Kazumoto Kojima kkojima at gcc dot gnu.org --- I've tried to see what is going on with reload loop on movsf_ie for gcc.c-torture/compile/20050113-1.c -O1 -m4 -ml. It looks that the problem starts at reloading (insn 15 10 18

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-28 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #41 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33601 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33601action=edit A trial patch for reload-loop problem My first trial is to define a special

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-28 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #43 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #42) PR 54699 comes into my mind when seeing the movsf_ie patterns ... having another movsf_ie pattern is discomforting. But if it makes

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-28 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #44 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Mon Sep 29 01:24:33 2014 New Revision: 215676 URL: https://gcc.gnu.org/viewcvs?rev=215676root=gccview=rev Log: PR target/55212 * config/sh/sh-protos.h

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-28 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #45 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Mon Sep 29 01:27:03 2014 New Revision: 215677 URL: https://gcc.gnu.org/viewcvs?rev=215677root=gccview=rev Log: PR target/55212 * config/sh/sh.md

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-25 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #34 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Hans-Peter Nilsson from comment #33) Will clobbering function-value registers before the call not cause problems on SH5, where function-value registers

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-25 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #36 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #35) I'm just wondering ... how did/does that work without LRA (i.e. with IRA)? I'm not sure about the old reload. LRA makes only 3 uses

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-25 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #39 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Hans-Peter Nilsson from comment #38) Hm, you're right, but to me that indicates the patch covering-up a bug elsewhere than in the sh port. Would it be better

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-24 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #31 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33556 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33556action=edit A bit reduced test case of pr38338.c (-O0 -m4 -ml) That case has only one basic

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-24 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #32 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33557 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33557action=edit Patch for SH untyped_call * config/sh/sh.md (untyped_call): Clobber function

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #25 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33524 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33524action=edit Reduced test case for ICE in assign_by_spill I've looked into what is going

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #26 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33525 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33525action=edit .reload dump file

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #27 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33526 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33526action=edit A trial patch It disables equiv substitution when the equiv includes some reg

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #28 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33527 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33527action=edit Another reduced test case (with -m4 -ml -O2 -std=gnu99) Here is a test case

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-21 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #29 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33528 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33528action=edit A trial patch The patch is to refrain from changing to class R0_REGS for r943

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-17 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #21 from Kazumoto Kojima kkojima at gcc dot gnu.org --- I've run check-gcc for sh-lra branch on sh4-unknown-linux-gnu and got === gcc Summary === # of expected passes83035 # of unexpected failures

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-17 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #22 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Created attachment 33505 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33505action=edit A possible patch These last two errors could be fixed with the attached patch

[Bug target/55212] [SH] Switch from IRA to LRA

2014-09-17 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212 --- Comment #24 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Wed Sep 17 23:24:40 2014 New Revision: 215341 URL: https://gcc.gnu.org/viewcvs?rev=215341root=gccview=rev Log: PR target/55212 * config/sh/predicates.md

[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 kkojima at gcc dot gnu.org --- Author: kkojima Date: Tue Sep 2 22:28:29 2014 New Revision: 214832 URL: https://gcc.gnu.org/viewcvs?rev=214832root=gccview=rev Log: PR target/62111 * config/sh

[Bug target/62261] [sh64] ICE for negative shift counts

2014-09-02 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62261 --- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Tue Sep 2 22:32:29 2014 New Revision: 214833 URL: https://gcc.gnu.org/viewcvs?rev=214833root=gccview=rev Log: PR target/62261 * config/sh

[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 kkojima at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug target/62261] [sh64] ICE for negative shift counts

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

[Bug target/62312] [4.9/5 Regression] [SH] Invalid operands for opcode div0s

2014-09-01 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62312 --- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to Oleg Endo from comment #1) The patch below fixes it. I'd apply it to trunk and 4.9 without further testing, as it's obvious, I think. Kaz, if you'd like to run

[Bug target/43744] SH: Error: pcrel too far

2014-08-29 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added Known to work

[Bug target/62312] New: [4.9/5 Regression] [SH] Invalid operands for opcode div0s

2014-08-29 Thread kkojima at gcc dot gnu.org
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kkojima at gcc dot gnu.org CC: glaubitz at physik dot fu-berlin.de, olegendo at gcc dot gnu.org Target: sh*-*-* Created attachment

[Bug target/54418] [4.8 Regression] [SH] Invalid operands for opcode

2014-08-29 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54418 --- Comment #8 from Kazumoto Kojima kkojima at gcc dot gnu.org --- (In reply to John Paul Adrian Glaubitz from comment #6) I'm seeing this issue again when compiling postgresql-9.4 with gcc-4.9.1, but I am not sure whether the issues

[Bug target/62261] [sh64] ICE for negative shift counts

2014-08-27 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62261 --- Comment #1 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Wed Aug 27 23:25:14 2014 New Revision: 214612 URL: https://gcc.gnu.org/viewcvs?rev=214612root=gccview=rev Log: PR target/62261 * config/sh

[Bug target/62261] New: [sh64] ICE for negative shift counts

2014-08-25 Thread kkojima at gcc dot gnu.org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kkojima at gcc dot gnu.org CC: dhowells at redhat dot com, olegendo at gcc dot gnu.org Target: sh64-* This was reported originally by dhowells at #c7 of PR62111. void

[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 kkojima at gcc dot gnu.org --- 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 kkojima at gcc dot gnu.org --- Author: kkojima Date: Mon Aug 25 00:37:51 2014 New Revision: 214413 URL: https://gcc.gnu.org/viewcvs?rev=214413root=gccview=rev Log: PR target/62111 * config/sh

[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 kkojima at gcc dot gnu.org --- Created attachment 33372 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33372action=edit A possible patch It seems that the ICE in #c7 came from the negative shift count

[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 kkojima at gcc dot gnu.org --- A reduced test case is always welcome.

[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 kkojima at gcc dot gnu.org changed: What|Removed |Added CC||kkojima

[Bug target/61844] ICE when building libgcc for sh64 cross-compiler

2014-07-27 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61844 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added Component|rtl-optimization|target

[Bug target/61844] ICE when building libgcc for sh64 cross-compiler

2014-07-27 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61844 --- Comment #8 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Ah, I'm wrong about the insn 440 in #7 doesn't require reload. I've missed psuedo reg 736. Anyways there is an issue for base+index reg addressing for *movsi_media.

[Bug target/61844] ICE when building libgcc for sh64 cross-compiler

2014-07-27 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61844 --- Comment #9 from Kazumoto Kojima kkojima at gcc dot gnu.org --- The testcase in #7 can be compiled successfully when -mindexed-addressing is added. It looks that base+index reg addressing mode is disabled for shmedia32 and shcompact

[Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943

2014-06-19 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61550 Kazumoto Kojima kkojima at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug target/61550] New: [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943

2014-06-18 Thread kkojima at gcc dot gnu.org
: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kkojima at gcc dot gnu.org Target: sh*-*-* Created attachment 32966 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id

[Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943

2014-06-18 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61550 --- Comment #1 from Kazumoto Kojima kkojima at gcc dot gnu.org --- sh.c:prepare_move_operands has the code for TLS addresses which shouldn't be run when reload in progress in the first place. I'm testing the patch below. --- ORIG/trunk/gcc

[Bug target/61550] [4.10 Regression] [SH] build failure with ICE in gen_reg_rtx, at emit-rtl.c:943

2014-06-18 Thread kkojima at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61550 --- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org --- Author: kkojima Date: Wed Jun 18 22:11:55 2014 New Revision: 211807 URL: https://gcc.gnu.org/viewcvs?rev=211807root=gccview=rev Log: PR target/61550 * config/sh/sh.c

<    1   2   3   4   5   6   >