public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/40552]  New: wrong-code with -fsched2-use-superblocks and exceptions
@ 2009-06-25 16:01 wouter dot vermaelen at scarlet dot be
  2010-07-21  9:54 ` [Bug rtl-optimization/40552] " steven at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: wouter dot vermaelen at scarlet dot be @ 2009-06-25 16:01 UTC (permalink / raw)
  To: gcc-bugs

> cat bug.cc
#include <string>

void f() {
        throw 1;
}

struct Foo {
        Foo(const std::string& s);
        std::string s;
};

Foo::Foo(const std::string& s_)
        : s(s_)
{
        f();
}

int main() {
        try {
                Foo foo("");
        } catch (...) {
        }
}


> g++ -O2 -fsched2-use-superblocks bug.cc

> ./a.out
Aborted (core dumped)
(This program should exit normally.)

Backtrace:
#0  0x00007fd3d9e9b065 in raise () from /lib/libc.so.6
#1  0x00007fd3d9e9e153 in abort () from /lib/libc.so.6
#2  0x00007fd3da1cdb41 in _Unwind_Resume () from /lib/libgcc_s.so.1
#3  0x0000000000400a02 in Foo (this=0x7fffe2b81eb0, s_=@0x4377) at bug.cc:16
...

I'm using SVN revision 148947 on linux x86_64.


-- 
           Summary: wrong-code with -fsched2-use-superblocks and exceptions
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wouter dot vermaelen at scarlet dot be


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


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

* [Bug rtl-optimization/40552] wrong-code with -fsched2-use-superblocks and exceptions
  2009-06-25 16:01 [Bug rtl-optimization/40552] New: wrong-code with -fsched2-use-superblocks and exceptions wouter dot vermaelen at scarlet dot be
@ 2010-07-21  9:54 ` steven at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-07-21  9:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from steven at gcc dot gnu dot org  2010-07-21 09:54 -------
Investigating...


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |steven at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-21 09:54:23
               date|                            |


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


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

* [Bug rtl-optimization/40552] wrong-code with -fsched2-use-superblocks and exceptions
       [not found] <bug-40552-4@http.gcc.gnu.org/bugzilla/>
@ 2023-06-05  6:49 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-05  6:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40552

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=46614

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think this was fixed in GCC 4.5.2 by the patch which fixed PR 46614. I can't
reproduce it in GCC 4.6+ even with trying to get a similar IR during expand.

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

end of thread, other threads:[~2023-06-05  6:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25 16:01 [Bug rtl-optimization/40552] New: wrong-code with -fsched2-use-superblocks and exceptions wouter dot vermaelen at scarlet dot be
2010-07-21  9:54 ` [Bug rtl-optimization/40552] " steven at gcc dot gnu dot org
     [not found] <bug-40552-4@http.gcc.gnu.org/bugzilla/>
2023-06-05  6:49 ` pinskia 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).