[Bug target/27117] New: gcc fails to build on sh64-elf targets

2006-04-11 Thread kkojima at gcc dot gnu dot org
Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu

[Bug target/27117] [4.2 Regression] gcc fails to build on sh64-elf targets

2006-04-12 Thread kkojima at gcc dot gnu dot org
--- Comment #6 from kkojima at gcc dot gnu dot org 2006-04-12 21:43 --- > -#define INDEX_REG_CLASS \ > - (!ALLOW_INDEXED_ADDRESS ? NO_REGS : TARGET_SHMEDIA ? GENERAL_REGS : > R0_REGS) > +#define INDEX_REG_CLASS_FOR_MODE(MODE) \ > + ((MODE) == DImode && TARGE

[Bug target/27117] [4.2 Regression] gcc fails to build on sh64-elf targets

2006-04-13 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2006-04-13 14:00 --- I've tested Joern's patch with #7 tweak on i686-pc-linux-gnu, x86 cross sh{64,4}-unknown-linux-gnu and x86 cross sh64-elf targets. There are no bootstrap or build problems and the results of regression

[Bug target/27182] [4.1 regression] SH: wrong-code generation

2006-04-19 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2006-04-19 12:42 --- I'd like to add Joern to the CC list. I've looked the rtl dumps for the testcase. It seems that the wrong code is generated during the peephole2 optimization. The corresponding part of .41.csa dump is:

[Bug target/27182] [4.1 regression] SH: wrong-code generation

2006-04-19 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2006-04-19 22:41 --- Thanks. I'll commit it with the ChangeLog entry below if the usual bootstrap/regtest on sh4-unknown-linux-gnu is done successfully. PR target/27182 * config/sh/sh.md (movsicc_true+3):

[Bug target/27182] [4.1 regression] SH: wrong-code generation

2006-04-19 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2006-04-20 01:54 --- Subject: Bug 27182 Author: kkojima Date: Thu Apr 20 01:54:20 2006 New Revision: 113109 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113109 Log: PR target/27182 * config/

[Bug target/27182] [4.1 regression] SH: wrong-code generation

2006-04-19 Thread kkojima at gcc dot gnu dot org
--- Comment #6 from kkojima at gcc dot gnu dot org 2006-04-20 02:03 --- Subject: Bug 27182 Author: kkojima Date: Thu Apr 20 02:03:47 2006 New Revision: 113110 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113110 Log: PR target/27182 * config/

[Bug target/27405] New: gcc.c-torture/execute/960209-1.c ICEs on sh64-* with -O3

2006-05-02 Thread kkojima at gcc dot gnu dot org
at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh64-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27405

[Bug rtl-optimization/27406] New: gcc.c-torture/execute/built-in-setjmp.c fails on sh64-*-linux-gnu with -O2

2006-05-02 Thread kkojima at gcc dot gnu dot org
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh64-*-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27406

[Bug rtl-optimization/27406] gcc.c-torture/execute/built-in-setjmp.c fails on sh64-*-linux-gnu with -O2

2006-05-14 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2006-05-14 22:52 --- Subject: Bug 27406 Author: kkojima Date: Sun May 14 22:51:12 2006 New Revision: 113766 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113766 Log: PR rtl-optimization/27406 * b

[Bug middle-end/27942] New: packed union doesn't make the unaligned magic on sh64-*

2006-06-07 Thread kkojima at gcc dot gnu dot org
ddle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh64-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27942

[Bug middle-end/27943] New: packed union doesn't make the unaligned magic on sh64-*

2006-06-07 Thread kkojima at gcc dot gnu dot org
ddle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh64-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27943

[Bug middle-end/27942] [4.2 Regression] packed union doesn't make the unaligned magic on sh64-*

2006-06-07 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2006-06-08 01:50 --- It seems that r114364 adds the extra alignment for non bit-field fields always for the ms_bitfield_layout_p case. It looks the packed attribute should be taken into account, though I'm unsure whether it'

[Bug middle-end/27942] [4.2 Regression] packed union doesn't make the unaligned magic on sh64-*

2006-06-08 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2006-06-08 22:17 --- I also couldn't find any document refering to it. My patch is just a guess from the behavior for nonzero-size bitfield with the packed attribute appeared in the last 3 lines of my patch. I'd like to sen

[Bug middle-end/27942] [4.2 Regression] packed union doesn't make the unaligned magic on sh64-*

2006-06-11 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2006-06-11 23:10 --- Subject: Bug 27942 Author: kkojima Date: Sun Jun 11 23:09:58 2006 New Revision: 114552 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114552 Log: PR middle-end/27942 * stor-

[Bug target/28126] gcc moves an expensive instruction outside of a conditional

2006-06-21 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2006-06-22 04:16 --- Although I don't know much about the instruction scheduling, I had a similar problem on SH and it was workarounded with emitting blockage insns. The patch below might work for you, though I'm not sure i

[Bug middle-end/28160] New: Bogus "size of array 'foo' is too large" error with -mms-bitfields

2006-06-25 Thread kkojima at gcc dot gnu dot org
org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28160

[Bug middle-end/28161] New: Wrong bit field layout with -mms-bitfields

2006-06-25 Thread kkojima at gcc dot gnu dot org
middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28161

[Bug middle-end/28160] Bogus "size of array 'foo' is too large" error with -mms-bitfields

2006-06-26 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2006-06-26 22:42 --- Thanks for your comment. Perhaps one solution would be to handle such bit fields with excessive sizes as the case of "no remaining bits in alignment". I'm testing the appended patch which chang

[Bug middle-end/28161] Wrong bit field layout with -mms-bitfields

2006-06-26 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2006-06-26 23:10 --- GDB says that TREE_TYPE of a.d is the 32-bit integer and its DECL_BIT_FIELD_TYPE is 64-bit when place_field processes a.e. place_field uses the size of TREE_TYPE of the previous bit filed when deciding whether a bit

[Bug middle-end/28161] Wrong bit field layout with -mms-bitfields

2006-06-26 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2006-06-27 00:28 --- Although I'm also not familiar with these materials, when place_field is called for a.d, gdb says that (gdb) call debug_tree (field) unit size align 64 symtab 0 alias set -1 precision 64 min

[Bug target/28232] Wrong aligned load is generated with -m4a on sh-*

2006-07-03 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2006-07-03 22:49 --- I've confirmed that 4.0 and 4.2 behave same as 4.1. So all compilers which support -m4a option have this issue. It seems that the combine is too smart and replaces the movua insn (define_insn "movu

[Bug target/28232] Wrong aligned load is generated with -m4a on sh-*

2006-07-10 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2006-07-10 23:02 --- Richard Sandiford gave a more thorough patch in http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00335.html and it's approved for the next stage1 of mainline. -- kkojima at gcc dot gnu dot org ch

[Bug middle-end/28160] Bogus "size of array 'foo' is too large" error with -mms-bitfields

2006-07-14 Thread kkojima at gcc dot gnu dot org
--- Comment #6 from kkojima at gcc dot gnu dot org 2006-07-15 06:59 --- Subject: Bug 28160 Author: kkojima Date: Sat Jul 15 06:58:57 2006 New Revision: 115464 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115464 Log: PR middle-end/28160 * stor-

[Bug middle-end/28161] Wrong bit field layout with -mms-bitfields

2006-07-14 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2006-07-15 06:59 --- Subject: Bug 28161 Author: kkojima Date: Sat Jul 15 06:58:57 2006 New Revision: 115464 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115464 Log: PR middle-end/28160 * stor-

[Bug middle-end/28160] Bogus "size of array 'foo' is too large" error with -mms-bitfields

2006-07-15 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2006-07-15 23:12 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug middle-end/28161] Wrong bit field layout with -mms-bitfields

2006-07-15 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2006-07-15 23:13 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug rtl-optimization/37514] [4.4 Regression] Wrong code generated for 20021120-1.c with -O3 -fomit-frame-pointer on sh4

2008-11-25 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2008-11-26 00:03 --- Vlad, thanks for taking the time to look into this! Your comments in #7 and http://gcc.gnu.org/ml/gcc-patches/2008-11/msg01323.html give a very clear picture of the problem. -- http://gcc.gnu.org/bugzilla

[Bug rtl-optimization/37514] [4.4 Regression] Wrong code generated for 20021120-1.c with -O3 -fomit-frame-pointer on sh4

2008-12-02 Thread kkojima at gcc dot gnu dot org
--- Comment #11 from kkojima at gcc dot gnu dot org 2008-12-02 08:36 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug target/38621] [4.3/4.4 Regression] sh gcc unable to spill register when building ghostscript-gpl with -O2

2008-12-24 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2008-12-25 03:38 --- Here is an another reduced testcase. struct s { char a[512]; int b; int c; }; long long foo (struct s *p, int m, int r) { if (r == m) p->b = 3; p->c = 1; return m; } I've confirmed that

[Bug target/38627] SuperH libgcc.a lacks .note.GNU-stack markings in math funcs

2008-12-25 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2008-12-26 00:17 --- Thanks! Your patch should be applied when the trunk is reopened. One minor nit, the ifdef guard in the hunk for linux-atomic.asm can be removed because linux-atomic.asm is specific to linux and ELF. -- kkojima

[Bug target/37633] [4.4 Regression] wrong register use on sh64

2009-01-02 Thread kkojima at gcc dot gnu dot org
--- Comment #9 from kkojima at gcc dot gnu dot org 2009-01-02 22:51 --- The failure itself went away but requested to stay open. See the thread http://gcc.gnu.org/ml/gcc-patches/2008-10/msg00606.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37633

[Bug target/38621] [4.3/4.4 Regression] sh gcc unable to spill register when building ghostscript-gpl with -O2

2009-01-10 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-01-11 01:29 --- *** Bug 38793 has been marked as a duplicate of this bug. *** -- kkojima at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/38793] SH: unable to find a register to spill in class 'R0_REGS'

2009-01-10 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2009-01-11 01:29 --- Again, the insn scheduling before reload permutes the insns of the exit basic block like as: ;; == ;; -- basic block 5 from 16 to 30 -- before reload

[Bug bootstrap/40105] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-11 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-05-12 00:43 --- Your compilers are the gentoo special versions, aren't they? If so, you should try the original FSF compiler sources for both build/target compilers. See http://gcc.gnu.org/bugs.html#dontwant. FSF 4.3/4.4 re

[Bug target/40105] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-12 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2009-05-12 22:37 --- Ah, now I understand the issue and find that what we need in the bug report http://gcc.gnu.org/bugs.html#need is in http://bugs.gentoo.org/show_bug.cgi?id=267247. Next time, please give the minimal information to

[Bug target/39561] -mno-expand-cbranchdi broken

2009-05-12 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-05-12 22:47 --- Subject: Bug 39561 Author: kkojima Date: Tue May 12 22:47:03 2009 New Revision: 147453 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147453 Log: PR target/39561 * config

[Bug target/39561] -mno-expand-cbranchdi broken

2009-05-12 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2009-05-12 23:08 --- Fixed. FYI, I've confirmed that -mno-expand-cbranchdi is still broken after r146539 fix of cbranchdi4 and the cond-optab merge. -- kkojima at gcc dot gnu dot org changed: What|Re

[Bug target/40105] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-13 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-05-13 14:07 --- Created an attachment (id=17857) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17857&action=view) a test case I've got a small test case from libiberty/concat.c. With -O1, 4.3 compiles vconcat_l

[Bug target/40105] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-13 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2009-05-14 00:12 --- Created an attachment (id=17860) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17860&action=view) A patch A binary search on trunk shows me that the patch in r146829 and its follow-up r146988 fix th

[Bug middle-end/40154] [4.4/4.5 Regression] internal compiler error: in do_SUBST, at combine.c:681

2009-05-15 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-05-16 00:08 --- I've tried to see what is going on with -da. .expand rtl dump shows that t *= 10 is compiled to a sequence of insns and the last two insns are: (insn 87 86 88 ice.i:6 (parallel [ (set (subr

[Bug rtl-optimization/40105] [4.3/4.4 Regression] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-18 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2009-05-18 23:41 --- Thanks for confirmation! I'll ask if the r146829 patch is safe to backport for 4.[34] branches in the gcc list, after the tests on x86 and powerpc. -- kkojima at gcc dot gnu dot org changed:

[Bug rtl-optimization/40105] [4.3/4.4 Regression] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-21 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2009-05-21 23:17 --- Subject: Bug 40105 Author: kkojima Date: Thu May 21 23:17:37 2009 New Revision: 147780 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147780 Log: PR rtl-optimization/40105 Backp

[Bug rtl-optimization/40105] [4.3/4.4 Regression] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-21 Thread kkojima at gcc dot gnu dot org
--- Comment #9 from kkojima at gcc dot gnu dot org 2009-05-21 23:31 --- Subject: Bug 40105 Author: kkojima Date: Thu May 21 23:31:44 2009 New Revision: 147781 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147781 Log: PR rtl-optimization/40105 Backp

[Bug rtl-optimization/40105] [4.3/4.4 Regression] SH: 4.3/4.4 compilers segfault when recompiling itself on gentoo system

2009-05-21 Thread kkojima at gcc dot gnu dot org
--- Comment #10 from kkojima at gcc dot gnu dot org 2009-05-21 23:36 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug target/40265] New: sh2a compiler ICEs in simplify_subreg, at simplify-rtx.c:4960

2009-05-26 Thread kkojima at gcc dot gnu dot org
omparison_operator" -- Summary: sh2a compiler ICEs in simplify_subreg, at simplify- rtx.c:4960 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC target triplet: sh-unkonwn-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40265

[Bug target/40265] sh2a compiler ICEs in simplify_subreg, at simplify-rtx.c:4960

2009-05-26 Thread kkojima at gcc dot gnu dot org
-- kkojima at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40265

[Bug target/40265] sh2a compiler ICEs in simplify_subreg, at simplify-rtx.c:4960

2009-05-28 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-05-28 22:02 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug target/40301] [4.3 regression] SH: miscompile with -O2 -fPIC

2009-05-30 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-05-30 07:12 --- It seems that gcc-4.3 hits PR30807 again for SH. Could you try Christian's patch in the audit trail #2 of 30807 or Joern's patch in the URL suggested at #4? -- kkojima at gcc dot gnu dot o

[Bug middle-end/30807] sh postreload bug (might be generic in trunk)

2009-05-30 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2009-05-30 22:56 --- *** Bug 40301 has been marked as a duplicate of this bug. *** -- kkojima at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/40301] SH: 4.3 miscompile with -O2 -fPIC

2009-05-30 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-05-30 22:56 --- Thanks for confirmation. Then this is a duplicate of PR30807 and a long standing problem of postreload and not a regression. The problem is that we have no handy test cases for trunk. Every time this pops up only

[Bug rtl-optimization/30807] postreload bug (might be generic in trunk)

2009-05-30 Thread kkojima at gcc dot gnu dot org
--- Comment #6 from kkojima at gcc dot gnu dot org 2009-05-30 23:02 --- Reported against 4.3 with another big test case. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/40313] New: SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689

2009-05-30 Thread kkojima at gcc dot gnu dot org
mponent: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC target triplet: sh-unkonwn-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40313

[Bug target/40313] SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689

2009-05-30 Thread kkojima at gcc dot gnu dot org
-- kkojima at gcc dot gnu dot org changed: What|Removed |Added Known to fail||4.5.0 Priority|P3 |P4 http

[Bug target/40313] SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689

2009-05-31 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-05-31 21:45 --- Subject: Bug 40313 Author: kkojima Date: Sun May 31 21:45:18 2009 New Revision: 148017 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148017 Log: PR target/40313 * config/sh/sh.c:

[Bug target/40313] SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689

2009-05-31 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-05-31 21:57 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status

[Bug middle-end/40154] [4.4/4.5 Regression] internal compiler error: in do_SUBST, at combine.c:681

2009-06-02 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-06-03 00:18 --- Currently workarounded for SH with the patch applied as revision 148018 and 148106. It defines a new DImode arithmetic shift left expander which generates SH's movdi_i insn as its last insn. movdi_i is a D

[Bug rtl-optimization/30807] postreload bug (might be generic in trunk)

2009-06-07 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2009-06-07 22:58 --- Created an attachment (id=17961) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17961&action=view) test case for 4.3 A reduced test case for 4.3 -O2 -fpic on sh4-unknown-linux-gnu. -- http://gcc.

[Bug target/40428] build fails for sh2a

2009-06-12 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-06-12 22:53 --- Because sh2a-*-linux* is an unsupported configuration for gcc-4.4. Could you try the patch below? --- ORIG/gcc-4_4-branch/gcc/config.gcc 2009-05-19 07:23:48.0 +0900 +++ gcc-4_4-branch/gcc/config.gcc

[Bug target/40515] SH: m2a* options not docmented.

2009-06-21 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2009-06-22 05:49 --- Documentation patch welcome. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/40515] SH: m2a* options not docmented.

2009-06-22 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2009-06-22 07:28 --- Your patch looks fine to me and I've tested it with "make info dvi pdf" successfully, though the documentation change should be approved by native speakers. Could you please send it to gcc-patc...@g

[Bug target/40515] SH: m2a* options not docmented.

2009-06-24 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-06-25 04:39 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug rtl-optimization/30807] postreload bug (might be generic in trunk)

2009-07-06 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2009-07-06 13:28 --- Subject: Bug 30807 Author: kkojima Date: Mon Jul 6 13:28:22 2009 New Revision: 149282 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149282 Log: PR rtl-optimization/30807 * post

[Bug rtl-optimization/30807] postreload bug (might be generic in trunk)

2009-07-08 Thread kkojima at gcc dot gnu dot org
--- Comment #10 from kkojima at gcc dot gnu dot org 2009-07-08 11:54 --- I don't think this is a regression, unfortunately. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30807

[Bug target/40710] SH: gcc-4.3.4 miscompiles linux kernel for sh4-linux

2009-07-11 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-07-11 13:14 --- I've tried to see what is going on. fill_slots_from_thread fills wrongly the delay slot of a conditional jmp insn with "add #-4,r15" where r15 is the stack pointer register for SH. fill_slots_from_

[Bug rtl-optimization/40710] [4.3 Regression] Linux kernel miscompiled for sh4-linux

2009-07-15 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-07-15 21:32 --- Subject: Bug 40710 Author: kkojima Date: Wed Jul 15 21:32:46 2009 New Revision: 149696 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149696 Log: PR rtl-optimization/40710 * re

[Bug rtl-optimization/40710] [4.3 Regression] Linux kernel miscompiled for sh4-linux

2009-07-17 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2009-07-18 06:47 --- Subject: Bug 40710 Author: kkojima Date: Sat Jul 18 06:47:22 2009 New Revision: 149764 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149764 Log: PR rtl-optimization/40710 * re

[Bug rtl-optimization/40797] [4.5 Regression] ICE in df_refs_verify, at df-scan.c:4361

2009-07-18 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-07-19 04:53 --- A bit smaller test case: typedef struct str { short x, y;} S; static short bar (short ch, short sl, short sr, short tl, short tr) { return 0; } void foo (short ch, S *pi, short nc, S *po) { short clo, chi, lo

[Bug rtl-optimization/40797] [4.5 Regression] ICE in df_refs_verify, at df-scan.c:4361

2009-07-19 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-07-20 00:01 --- It started to fail after revision 142809: r142809 | zadeck | 2008-12-18 22:38:39 +0900 (Thu, 18 Dec 2008) | 47 lines 2008-12-18 Kenneth Zadeck PR rtl-optimization/37922 * dse.c (bb_info): Added

[Bug rtl-optimization/40797] [4.5 Regression] ICE in df_refs_verify, at df-scan.c:4361

2009-07-21 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2009-07-21 22:47 --- Binary search on 4.4 branch shows the failure was gone after revision 145118: 2009-03-27 Xinliang David Li PR tree-optimization/39548 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy

[Bug rtl-optimization/40710] [4.3 Regression] Linux kernel miscompiled for sh4-linux

2009-07-22 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2009-07-22 23:22 --- Subject: Bug 40710 Author: kkojima Date: Wed Jul 22 23:22:24 2009 New Revision: 149965 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149965 Log: Backport from mainline: 2009-07-

[Bug target/41015] [4.4/4.5 Regression] SH: miscompilation for sh4-linux

2009-08-09 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2009-08-09 22:44 --- I've confirmed that 4.5 has the same problem and 4.3 doesn't. > In this code, "tst r9,r9" is moved to wrong place as if > "t" bit is not clobbered in __udiv_qrnnd_16. > >

[Bug target/41015] [4.4/4.5 Regression] SH: miscompilation for sh4-linux

2009-08-09 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2009-08-10 05:08 --- Ah, I see. Could you please send that patch to libc list? I'll fix gcc/longlong.h on gcc trunk and 4.4 branch after the usual tests. -- kkojima at gcc dot gnu dot org changed: What|Re

[Bug target/41015] [4.4/4.5 Regression] SH: miscompilation for sh4-linux

2009-08-10 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2009-08-10 20:57 --- Subject: Bug 41015 Author: kkojima Date: Mon Aug 10 20:57:35 2009 New Revision: 150635 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150635 Log: PR target/41015 * longlong.h

[Bug target/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008

2009-08-10 Thread kkojima at gcc dot gnu dot org
--- 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.0

[Bug target/41015] [4.4/4.5 Regression] SH: miscompilation for sh4-linux

2009-08-11 Thread kkojima at gcc dot gnu dot org
--- Comment #6 from kkojima at gcc dot gnu dot org 2009-08-11 22:37 --- Subject: Bug 41015 Author: kkojima Date: Tue Aug 11 22:36:56 2009 New Revision: 150667 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150667 Log: Backport from mainline: 2009-08-10

[Bug target/41015] [4.4/4.5 Regression] SH: miscompilation for sh4-linux

2009-08-11 Thread kkojima at gcc dot gnu dot org
--- Comment #7 from kkojima at gcc dot gnu dot org 2009-08-11 22:38 --- Fixed. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug target/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008

2009-08-12 Thread kkojima at gcc dot gnu dot org
--- 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/

[Bug target/41029] ICE RTL check: expected code 'reg', have 'post_inc' in rhs_regno, at rtl.h:1008

2009-08-12 Thread kkojima at gcc dot gnu dot org
--- 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

[Bug target/24445] [4.1 Regression] "unable to find a register to spill in class 'R0_REGS"

2005-11-10 Thread kkojima at gcc dot gnu dot org
--- Comment #13 from kkojima at gcc dot gnu dot org 2005-11-11 02:12 --- Subject: Bug 24445 Author: kkojima Date: Fri Nov 11 02:12:42 2005 New Revision: 106774 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106774 Log: PR target/24445 * calls.c (exp

[Bug target/24982] New: Bootstrap failure with ICE in refers_to_regno_for_reload_p

2005-11-21 Thread kkojima at gcc dot gnu dot org
unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu 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=24982

[Bug target/24982] Bootstrap failure with ICE in refers_to_regno_for_reload_p

2005-11-21 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2005-11-22 01:12 --- Created an attachment (id=10317) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10317&action=view) A reduced testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24982

[Bug target/24982] Bootstrap failure with ICE in refers_to_regno_for_reload_p

2005-11-21 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2005-11-22 01:17 --- 4.1 and 4.2 fail to compile gcc.c-torture/execute/20040709-[12].c at -O3 -m4 -ml for sh-elf with the same ICE internal compiler error: in refers_to_regno_for_reload_p, at reload.c:6281 after the same patch applied

[Bug target/24982] [4.1/4.2 Regression] Bootstrap failure with ICE in refers_to_regno_for_reload_p

2005-11-22 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2005-11-23 04:55 --- I've proposed a patch to this PR in http://gcc.gnu.org/ml/gcc-patches/2005-11/msg01648.html Does it solve PR 24995? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24982

[Bug target/25115] New: Segmentation fault in pre_insert_copy_insn

2005-11-27 Thread kkojima at gcc dot gnu dot org
ity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh4-*-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25115

[Bug rtl-optimization/25115] [4.2 Regression] Segmentation fault in pre_insert_copy_insn

2005-11-28 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2005-11-28 12:30 --- It fixes the ICE and produces better codes. Thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25115

[Bug rtl-optimization/25115] [4.2 Regression] Segmentation fault in pre_insert_copy_insn

2005-11-28 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2005-11-28 13:33 --- Argh. I've got the results other way around. Before patch: -- .global foo .type foo, @function foo: mov.l r12,@-r15 mov.l r14,@-r15 mov r15,r14

[Bug rtl-optimization/24982] [4.1/4.2 Regression] Bootstrap failure with ICE in refers_to_regno_for_reload_p

2005-12-19 Thread kkojima at gcc dot gnu dot org
--- Comment #13 from kkojima at gcc dot gnu dot org 2005-12-20 01:45 --- Subject: Bug 24982 Author: kkojima Date: Tue Dec 20 01:45:27 2005 New Revision: 108831 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108831 Log: PR rtl-optimization/24982 *

[Bug c/25613] sh compiler hangs when compiling some inline asm

2005-12-31 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2005-12-31 14:46 --- FYI, current trunk and 4.1.0 (20051127 prerelease) exit with "error: impossible constraint in 'asm'" messages for the given test case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25613

[Bug inline-asm/25613] [4.0 Regression] sh compiler hangs when compiling some inline asm

2006-01-01 Thread kkojima at gcc dot gnu dot org
--- Comment #2 from kkojima at gcc dot gnu dot org 2006-01-02 05:13 --- It looks an SH target specific problem. CONSTRAINT_LEN in config/sh/sh.h of 3.4/4.0 checks the wrong constraints and returns -1 for them. This causes an infinite loop in parse_input_constraint whick has a loop like

[Bug target/25613] [4.0 Regression] sh compiler hangs when compiling some inline asm

2006-01-04 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2006-01-04 23:07 --- Subject: Bug 25613 Author: kkojima Date: Wed Jan 4 23:07:24 2006 New Revision: 109355 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109355 Log: PR target/25613 * config

[Bug target/25613] [4.0 Regression] sh compiler hangs when compiling some inline asm

2006-01-04 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2006-01-05 06:04 --- I proposed the patch in #3 at http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00174.html and an SH maintainer has approved it. It's enough to check it in on 4.0, though I believe that the patch for 3.4 b

[Bug target/25613] [4.0 Regression] sh compiler hangs when compiling some inline asm

2006-01-11 Thread kkojima at gcc dot gnu dot org
--- Comment #6 from kkojima at gcc dot gnu dot org 2006-01-12 01:20 --- Subject: Bug 25613 Author: kkojima Date: Thu Jan 12 01:20:32 2006 New Revision: 109625 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109625 Log: PR target/25613 * config

[Bug target/25613] [4.0 Regression] sh compiler hangs when compiling some inline asm

2006-01-15 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2006-01-16 04:26 --- Patches were committed already. Sorry for forgetting to change this as FIXED. -- kkojima at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/25833] New: ICE with -O -ftree-vectorize -funroll-loops

2006-01-17 Thread kkojima at gcc dot gnu dot org
y: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh64-*-* http://gcc.gnu.org/bugzilla/show_b

[Bug rtl-optimization/28764] New: libjava build failure on sh4

2006-08-17 Thread kkojima at gcc dot gnu dot org
n AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh4-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28764

[Bug target/28764] [4.2 Regression] libjava build failure on sh4

2006-08-22 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2006-08-23 04:35 --- Here is a workaround. Although it doesn't solve the issue completely, it'd be better than nothing. It prevents to insert the mode switching code after the last insn of BB when that insn has the REG_EH_R

[Bug target/28764] [4.2 Regression] libjava build failure on sh4

2006-08-23 Thread kkojima at gcc dot gnu dot org
--- Comment #5 from kkojima at gcc dot gnu dot org 2006-08-23 23:54 --- > I think the only sane way to handle this is not to emit any mode > switching code for exception edges at the potential trapping site, > and make the exception handling code assume no particular mode is

[Bug target/28764] [4.2 Regression] libjava build failure on sh4

2006-08-25 Thread kkojima at gcc dot gnu dot org
--- Comment #8 from kkojima at gcc dot gnu dot org 2006-08-25 10:56 --- > And when the other code to handle abnormal edges is fixed, we should not > even try to insert a mode set on an abnormal edge, so the above code can > be changed into > gcc_assert

[Bug target/28764] [4.2 Regression] libjava build failure on sh4

2006-08-25 Thread kkojima at gcc dot gnu dot org
--- Comment #10 from kkojima at gcc dot gnu dot org 2006-08-25 11:25 --- I've confirmed that it fixes the build failure on sh4-linux. I'll send it to gcc-patches after the test on i686-linux is completed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28764

  1   2   3   4   5   >