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/55718] [4.8 Regression] ICE in gen_reg_rtx, at emit-rtl.c:866
Date: Mon, 17 Dec 2012 10:40:00 -0000	[thread overview]
Message-ID: <bug-55718-4-JMlDoE7U32@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55718-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-17 10:40:30 UTC ---
Reduced testcase:

extern char temp[];
short ansi_value[256];
void terminal_state(void)
{
  static const char *puc[] = { "", "<", "=", ">", "?", 0};
  int i, j, k, l, modes_found;
  char buf[256];
  k = (int) __builtin_strlen(temp);
  for (j = l = 0; j < 255 && j - l < 50; j++)
    {
      __builtin_sprintf(temp, "\033[%s%d$p", puc[i], j);
      if (ansi_value[1])
        {
          l = j;
          buf[k] = '\0';
          put_crlf();
          ptextln(buf);
          buf[k++] = ' ';
          k = (int) __builtin_strlen(temp);
        }
    }
  for (i = j = 0; j < modes_found; j = ++i >> 1)
    ;
}

(gdb) bt
#0  fancy_abort (
    file=0x1170a20 "/space/rguenther/src/svn/trunk/gcc/emit-rtl.c", line=866, 
    function=0x1171ab9 <gen_reg_rtx(machine_mode)::__FUNCTION__> "gen_reg_rtx")
    at /space/rguenther/src/svn/trunk/gcc/diagnostic.c:1146
#1  0x000000000077a669 in gen_reg_rtx (mode=DImode)
    at /space/rguenther/src/svn/trunk/gcc/emit-rtl.c:866
#2  0x00000000009aaa64 in maybe_legitimize_operand (icode=CODE_FOR_adddi3, 
    opno=0, op=0x7fffffffd040)
    at /space/rguenther/src/svn/trunk/gcc/optabs.c:8057
#3  0x00000000009aadca in maybe_legitimize_operands (icode=CODE_FOR_adddi3, 
    opno=0, nops=3, ops=0x7fffffffd040)
    at /space/rguenther/src/svn/trunk/gcc/optabs.c:8130
#4  0x00000000009aae5e in maybe_gen_insn (icode=CODE_FOR_adddi3, nops=3, 
    ops=0x7fffffffd040) at /space/rguenther/src/svn/trunk/gcc/optabs.c:8148
#5  0x000000000099a590 in expand_binop_directly (mode=DImode, 
    binoptab=add_optab, op0=0x7ffff6e1f5a0, op1=0x7ffff6d074b0, target=0x0, 
    unsignedp=1, methods=OPTAB_LIB_WIDEN, last=0x0)
    at /space/rguenther/src/svn/trunk/gcc/optabs.c:1452
#6  0x000000000099a7f7 in expand_binop (mode=DImode, binoptab=add_optab, 
    op0=0x7ffff6e1f5a0, op1=0x7ffff6d074b0, target=0x0, unsignedp=1, 
    methods=OPTAB_LIB_WIDEN)
    at /space/rguenther/src/svn/trunk/gcc/optabs.c:1521
#7  0x0000000000999f66 in expand_simple_binop (mode=DImode, code=PLUS, 
    op0=0x7ffff6e1f5a0, op1=0x7ffff6d074b0, target=0x0, unsignedp=1, 
    methods=OPTAB_LIB_WIDEN)
    at /space/rguenther/src/svn/trunk/gcc/optabs.c:1269
#8  0x00000000007b8479 in force_operand (value=0x7ffff6e1f600, target=0x0)
    at /space/rguenther/src/svn/trunk/gcc/expr.c:7042
#9  0x0000000000d44720 in legitimize_pic_address (orig=0x7ffff6e19a70, 
    reg=0x7ffff6e20220)
    at /space/rguenther/src/svn/trunk/gcc/config/s390/s390.c:3669
#10 0x0000000000d458f9 in emit_symbolic_move (operands=0x7fffffffd4f0)
    at /space/rguenther/src/svn/trunk/gcc/config/s390/s390.c:3925
#11 0x0000000000d855cf in gen_movdi (operand0=0x7ffff6e20220, 
    operand1=0x7ffff6e19a70)
    at /space/rguenther/src/svn/trunk/gcc/config/s390/s390.md:1339
#12 0x00000000007abfb0 in emit_move_insn_1 (x=0x7ffff6e20220, y=0x7ffff6e19a70)
    at /space/rguenther/src/svn/trunk/gcc/expr.c:3417
#13 0x00000000009a2e07 in gen_move_insn (x=0x7ffff6e20220, y=0x7ffff6e19a70)
    at /space/rguenther/src/svn/trunk/gcc/optabs.c:4785
#14 0x0000000000a28c8b in gen_reload (out=0x7ffff6e20220, in=0x7ffff6e19a70, 
    opnum=2, type=RELOAD_FOR_OPERAND_ADDRESS)
    at /space/rguenther/src/svn/trunk/gcc/reload1.c:8707


  parent reply	other threads:[~2012-12-17 10:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17  9:45 [Bug middle-end/55718] New: " rguenth at gcc dot gnu.org
2012-12-17  9:46 ` [Bug middle-end/55718] " rguenth at gcc dot gnu.org
2012-12-17 10:31 ` [Bug target/55718] " rguenth at gcc dot gnu.org
2012-12-17 10:40 ` rguenth at gcc dot gnu.org [this message]
2012-12-18 11:30 ` krebbel at gcc dot gnu.org
2013-01-07 15:36 ` rguenth at gcc dot gnu.org
2013-01-10  8:16 ` krebbel at gcc dot gnu.org
2013-01-10  8:22 ` krebbel 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-55718-4-JMlDoE7U32@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).