[Bug 207359] projects/clang380-import for TARGET_ARCH=powerpc64 via powerpc64-gcc : c++ exceptions unbounded loop in _Unwind_RaiseException (9 line program)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 26 11:21:57 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207359

--- Comment #6 from Mark Millard <markmi at dsl-only.net> ---
(In reply to Mark Millard from comment #5)

The uw_update_context_1 material would have been clearler if I'd listed another
line from the source code. So I do below.

fs->cfa_offset is not part of regs but is later used by uw_update_context_1
for:

  /* Compute this frame's CFA.  */
  switch (fs->cfa_how)
    {
    case CFA_REG_OFFSET:
      cfa = _Unwind_GetPtr (&orig_context, fs->cfa_reg);
      cfa += fs->cfa_offset;
      break;
. . .
  context->cfa = cfa;

That last explains how the fs->cfa_offset is supposed to end up involved in
later activity. (fs is local to each loop iteration; context's lifetime spans
across iterations.)


Also: I see that in at least one place I typed "12" instead of "128". Be
warned.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list