public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: aaronl@vitelus.com
To: gcc-gnats@gcc.gnu.org
Subject: middle-end/10795: ICE in extract_insn, at recog.c:2188
Date: Thu, 15 May 2003 04:36:00 -0000	[thread overview]
Message-ID: <20030515042800.14412.qmail@sources.redhat.com> (raw)


>Number:         10795
>Category:       middle-end
>Synopsis:       ICE in extract_insn, at recog.c:2188
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu May 15 04:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     aaronl@vitelus.com
>Release:        3.4 20030515
>Organization:
>Environment:
Debian GNU/Linux i386
>Description:
GCC 3.4 from CVS is ICEing on a source file. I distilled the function down to a testcase:

typedef struct {
    unsigned int flags;
} S;
extern const char a[];
void foo(const char *e, S *s)
{
    s->flags = 0;
    if (e > a)
        s->flags = 2;
}


gcc -Wall -O -c dump.c emits:
dump.c: In function `foo':                                      
dump.c:12: error: unrecognizable insn:
(insn 26 5 27 0 0x402face4 (set (reg:CC 17 flags)
        (compare:CC (symbol_ref:SI ("a") [flags 0x40] <var_decl 0x402fb144 a>)
            (reg/v/f:SI 58 [ e ]))) -1 (insn_list 3 (nil))
    (expr_list:REG_DEAD (reg/v/f:SI 58 [ e ])
        (nil)))
dump.c:12: internal compiler error: in extract_insn, at recog.c:2188
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The ICE does not happen when optimization is turned off.
>How-To-Repeat:
Compile the supplied testcase.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


                 reply	other threads:[~2003-05-15  4:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20030515042800.14412.qmail@sources.redhat.com \
    --to=aaronl@vitelus.com \
    --cc=gcc-gnats@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).