public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40313]  New: SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689
@ 2009-05-30 23:44 kkojima at gcc dot gnu dot org
  2009-05-30 23:45 ` [Bug target/40313] " kkojima at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-05-30 23:44 UTC (permalink / raw)
  To: gcc-bugs

After r147995,

gcc.c-torture/compile/20080903-1.c fails for -O3 -g on SH with

20080903-1.c:12: internal compiler error: in dwarf2out_begin_epilogue, at
dwarf2out.c:2689

In failing case, sched2 moves a frame related insn in prologue
after NOTE_INSN_EPILOGUE_BEG note:

(note 42 6 43 2 NOTE_INSN_EPILOGUE_BEG)

(insn:TI 43 42 35 2 20080903-1.c:12 (set (reg:SI 7 r7)
        (const_int 4096 [0x1000])) 175 {movsi_ie} (nil))

(insn/f 35 43 36 2 20080903-1.c:5 (set (reg/f:SI 14 r14)
        (reg/f:SI 15 r15)) 175 {movsi_ie} (nil))

I'm testing a patch which emits a blockage insn before insn 35
when dwarf2out_do_frame returns true.  We already do so when
exception handling is enabled.  It will change the code with
-g.  This isn't good in general but wouldn't be a real problem
in the above situation because if such movement of the frame insn
happened, then no one can expect -g works well in the first place.


-- 
           Summary: SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689
           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=40313


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

* [Bug target/40313] SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689
  2009-05-30 23:44 [Bug target/40313] New: SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689 kkojima at gcc dot gnu dot org
@ 2009-05-30 23:45 ` kkojima at gcc dot gnu dot org
  2009-05-31 21:45 ` kkojima at gcc dot gnu dot org
  2009-05-31 21:57 ` kkojima at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-05-30 23:45 UTC (permalink / raw)
  To: gcc-bugs



-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.5.0
           Priority|P3                          |P4


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


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

* [Bug target/40313] SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689
  2009-05-30 23:44 [Bug target/40313] New: SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689 kkojima at gcc dot gnu dot org
  2009-05-30 23:45 ` [Bug target/40313] " kkojima at gcc dot gnu dot org
@ 2009-05-31 21:45 ` kkojima at gcc dot gnu dot org
  2009-05-31 21:57 ` kkojima at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-05-31 21:45 UTC (permalink / raw)
  To: gcc-bugs



------- 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: Include debug.h.
        (sh_expand_epilogue): Emit a blockage insn before the frame
        pointer adjustment also when dwarf2out_do_frame returns true.


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


-- 


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


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

* [Bug target/40313] SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689
  2009-05-30 23:44 [Bug target/40313] New: SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689 kkojima at gcc dot gnu dot org
  2009-05-30 23:45 ` [Bug target/40313] " kkojima at gcc dot gnu dot org
  2009-05-31 21:45 ` kkojima at gcc dot gnu dot org
@ 2009-05-31 21:57 ` kkojima at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2009-05-31 21:57 UTC (permalink / raw)
  To: gcc-bugs



------- 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|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-05-31 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-30 23:44 [Bug target/40313] New: SH: ICE in dwarf2out_begin_epilogue, at dwarf2out.c:2689 kkojima at gcc dot gnu dot org
2009-05-30 23:45 ` [Bug target/40313] " kkojima at gcc dot gnu dot org
2009-05-31 21:45 ` kkojima at gcc dot gnu dot org
2009-05-31 21:57 ` kkojima at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).