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 tree-optimization/50723] [4.7 regression] internal compiler error: verify_ssa failed
Date: Fri, 14 Oct 2011 09:28:00 -0000	[thread overview]
Message-ID: <bug-50723-4-GxlzMvbUhY@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-50723-4@http.gcc.gnu.org/bugzilla/>

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-14 09:27:22 UTC ---
Reduced testcase:

typedef short unsigned int wchar_t;
typedef unsigned int size_t;
int* _errno(void);
int WideCharToMultiByte (wchar_t *);
int __attribute__ ((__nonnull__ (1)))  
__wcrtomb_cp (char *dst, wchar_t wc, const unsigned int cp, 
              const unsigned int mb_max)
{
  if (cp == 0)     {
      if (wc > 255) 
        (*_errno()) = 42;
      return 1;
  }
  else 
    return WideCharToMultiByte (&wc);
}
void wcsrtombs (char *dst, const wchar_t *pwc, unsigned int cp,
                unsigned int mb_max)
{
  if ((__wcrtomb_cp (dst, *pwc, cp, mb_max)) <= 0)
    return;
  if ((__wcrtomb_cp (dst, *pwc, cp, mb_max)) <= 0)
    return;
}


  parent reply	other threads:[~2011-10-14  9:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14  3:17 [Bug tree-optimization/50723] New: " jojelino at gmail dot com
2011-10-14  9:17 ` [Bug tree-optimization/50723] " rguenth at gcc dot gnu.org
2011-10-14  9:28 ` rguenth at gcc dot gnu.org [this message]
2011-10-14  9:43 ` [Bug tree-optimization/50723] [4.6/4.7 " rguenth at gcc dot gnu.org
2011-10-14 11:03 ` rguenth at gcc dot gnu.org
2011-10-14 12:18 ` rguenth at gcc dot gnu.org
2011-10-14 12:21 ` rguenth at gcc dot gnu.org
2011-12-01  9:41 ` jakub at gcc dot gnu.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-50723-4-GxlzMvbUhY@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).