public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/47401] New: Support for must-not-throw regions with SJLJ exceptions broken
@ 2011-01-21 16:51 uweigand at gcc dot gnu.org
  2011-01-21 16:52 ` [Bug middle-end/47401] " uweigand at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: uweigand at gcc dot gnu.org @ 2011-01-21 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Support for must-not-throw regions with SJLJ
                    exceptions broken
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: uweigand@gcc.gnu.org
            Target: spu-elf


A couple of exception related tests are failing on SPU:
FAIL: g++.dg/cpp0x/noexcept04.C execution test
FAIL: g++.dg/cpp0x/noexcept05.C scan-assembler LSDA
FAIL: g++.dg/eh/spec10.C execution test
FAIL: g++.dg/eh/spec11.C scan-assembler LSDA

These are related to must-not-throw regions.  To implement those,
we may have to register a personality function with empty LSDA.
This has been implemented for DWARF CFI exception handling, but
apparently not (fully?) for SJLJ exception handling.

For example, the test case for noexcept05.C:
struct A { ~A(); };
void g();
void f() noexcept
{
  A var;
  g();
}

compiles on the SPU to:
        .global _Z1fv
        .type   _Z1fv, @function
_Z1fv:
        stqd    $lr,16($sp)
        stqd    $sp,-48($sp)
        ai      $sp,$sp,-48
        brsl    $lr,_Z1gv
        ai      $2,$sp,32
        ori     $3,$2,0
        brsl    $lr,_ZN1AD1Ev
        ai      $sp,$sp,48
        lqd     $lr,16($sp)
        bi      $lr
        .size   _Z1fv, .-_Z1fv

Note the absence of any call to _Unwind_SJLJ_Register.


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

end of thread, other threads:[~2011-01-22 21:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-21 16:51 [Bug middle-end/47401] New: Support for must-not-throw regions with SJLJ exceptions broken uweigand at gcc dot gnu.org
2011-01-21 16:52 ` [Bug middle-end/47401] " uweigand at gcc dot gnu.org
2011-01-21 17:31 ` uweigand at gcc dot gnu.org
2011-01-21 17:38 ` uweigand at gcc dot gnu.org
2011-01-22  4:11 ` howarth at nitro dot med.uc.edu
2011-01-22 21:46 ` uweigand at gcc dot gnu.org
2011-01-22 21:48 ` uweigand 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).