public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/52175] New: [4.7 regression] ICE in maybe_record_trace_start after invalid dbr_schedule transformation
@ 2012-02-08 19:12 rsandifo at gcc dot gnu.org
  2012-02-08 19:12 ` [Bug rtl-optimization/52175] " rsandifo at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-02-08 19:12 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52175
           Summary: [4.7 regression] ICE in maybe_record_trace_start after
                    invalid dbr_schedule transformation
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rsandifo@gcc.gnu.org


Created attachment 26618
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26618
Testcase

The attached testcase fails on MIPS targets (e.g. mipsisa64-elf
and mips64-linux-gnu) when compiled with -O2 -g:

foo.c: In function ‘foo’:
foo.c:25:1: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2231
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The problem is that dbr_schedule is applying its PLUS/MINUS
optimisation to a stack adjustment: that is, it fills a
delay slot with a stack adjustment that is only valid on
one edge, then inserts the opposite adjustment on the
other edge.

This is related to PR51471.  We shouldn't do this
adjustment for frame-related instructions.


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

end of thread, other threads:[~2012-02-11  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-08 19:12 [Bug rtl-optimization/52175] New: [4.7 regression] ICE in maybe_record_trace_start after invalid dbr_schedule transformation rsandifo at gcc dot gnu.org
2012-02-08 19:12 ` [Bug rtl-optimization/52175] " rsandifo at gcc dot gnu.org
2012-02-09 12:29 ` rguenth at gcc dot gnu.org
2012-02-11  9:01 ` rsandifo at gcc dot gnu.org
2012-02-11  9:16 ` rsandifo at gcc dot gnu.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).