public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/52918] [4.8 Regression] ICE: Invalid bb->loop_father (NULL) in add_bb_to_loop
Date: Wed, 11 Apr 2012 11:12:00 -0000	[thread overview]
Message-ID: <bug-52918-4-IjsD5yNHoO@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52918-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-11 11:11:45 UTC ---
And for the 2nd:

typedef __SIZE_TYPE__ size_t;
class bad_alloc   { };
typedef struct {
} __gthread_mutex_t;
int __gthread_mutex_unlock (__gthread_mutex_t *__mutex);
class __concurrence_unlock_error   {
};
inline void   __throw_concurrence_unlock_error()   {
    throw __concurrence_unlock_error();
}
class __mutex   {
    __gthread_mutex_t _M_mutex;
public:
    void unlock()     {
        if (__gthread_mutex_unlock(&_M_mutex) != 0)
          __throw_concurrence_unlock_error();
    }
};
class free_list   {
    typedef __mutex __mutex_type;
    __mutex_type&     _M_get_mutex();
    void _M_get(size_t __sz) throw(bad_alloc);
};
void  free_list::_M_get(size_t __sz) throw(bad_alloc)
{
  __mutex_type& __bfl_mutex = _M_get_mutex();
  __bfl_mutex.unlock();
  int __ctr = 2;
  while (__ctr)  {
      size_t* __ret = 0;
      --__ctr;
      try {
          __ret = (size_t*) (::operator new(__sz + sizeof(size_t)));
      }
      catch(const bad_alloc&) { }
  }
}


  parent reply	other threads:[~2012-04-11 11:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 20:29 [Bug c++/52918] New: " bscottm at ieee dot org
2012-04-09 20:30 ` [Bug c++/52918] " bscottm at ieee dot org
2012-04-09 20:32 ` bscottm at ieee dot org
2012-04-10 12:25 ` [Bug target/52918] [4.8 Regression] " rguenth at gcc dot gnu.org
2012-04-10 12:32 ` ktietz at gcc dot gnu.org
2012-04-10 21:28 ` bscottm at ieee dot org
2012-04-10 21:31 ` bscottm at ieee dot org
2012-04-11  9:32 ` ktietz at gcc dot gnu.org
2012-04-11 10:45 ` rguenth at gcc dot gnu.org
2012-04-11 11:12 ` rguenth at gcc dot gnu.org [this message]
2012-04-11 11:27 ` rguenth at gcc dot gnu.org
2012-04-11 12:05 ` ktietz at gcc dot gnu.org
2012-04-11 14:03 ` rguenth at gcc dot gnu.org
2012-04-11 14:20 ` rguenth at gcc dot gnu.org
2012-04-11 18:38 ` bscottm at ieee dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52918-4-IjsD5yNHoO@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).