* Fix debug/49827
@ 2011-07-25 5:04 Richard Henderson
0 siblings, 0 replies; only message in thread
From: Richard Henderson @ 2011-07-25 5:04 UTC (permalink / raw)
To: GCC Patches
This fixes the examples given in the PR building libgcc
for Sparc and CRIS. A full bootstrap on sparc64-linux
is underway, but it'll take some time to complete. In
the meantime it's well past the stage1 failure.
Just a silly oversight in processing sequences, after
having copied the code from pre-delay-slot make_edges.
r~
PR debug/49827
* dwarf2cfi.c (create_trace_edges): Handle sequences properly.
diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c
index fd5f680..9e64de6 100644
--- a/gcc/dwarf2cfi.c
+++ b/gcc/dwarf2cfi.c
@@ -2507,6 +2507,14 @@ create_trace_edges (rtx insn)
for (lab = nonlocal_goto_handler_labels; lab; lab = XEXP (lab, 1))
maybe_record_trace_start (XEXP (lab, 0), insn, true);
}
+ else if (GET_CODE (PATTERN (insn)) == SEQUENCE)
+ {
+ rtx seq = PATTERN (insn);
+ int i, n = XVECLEN (seq, 0);
+ for (i = 0; i < n; ++i)
+ create_trace_edges (XVECEXP (seq, 0, i));
+ return;
+ }
/* Process EH edges. */
if (CALL_P (insn) || cfun->can_throw_non_call_exceptions)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-25 3:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-25 5:04 Fix debug/49827 Richard Henderson
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).