public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: gcc-gnats@gcc.gnu.org
Subject: optimization/6928: ICE on inlined function for m68k
Date: Tue, 04 Jun 2002 05:16:00 -0000	[thread overview]
Message-ID: <15612.44390.348134.254875@honolulu.ilog.fr> (raw)


>Number:         6928
>Category:       optimization
>Synopsis:       ICE on inlined function for m68k
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 04 05:16:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bruno Haible
>Release:        3.1
>Organization:
GNU hackers
>Environment:
System: Linux linuix 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: m68k-unknown-linux-gnu
configured with: /packages2/gcc-3.1/configure --enable-shared --disable-nls --target=m68k-linux --prefix=/cross/m68k-linux-tools --with-local-prefix=/cross/m68k-linux/local --with-as=/cross/m68k-linux-tools/bin/m68k-linux-as --with-gnu-as --with-ld=/cross/m68k-linux-tools/bin/m68k-linux-ld --with-gnu-ld --enable-languages=c
>Description:

An ICE occurs for simple arithmetic on 'unsigned char' in an inlined function.

>How-To-Repeat:

Save this as euk-kr.c.

========================== euc-kr.c ====================================
static inline unsigned int
ksc5601_to_ucs4 (const unsigned char *s, unsigned char offset)
{
  unsigned char ch = *s;
  if (ch < offset || (ch - offset) <= 0x20 || (ch - offset) >= 0x7e)
    return 0xfffd;
  return 0xfffd;
}
void
from_euc_kr (const unsigned char *inptr, unsigned int *outptr)
{
  unsigned int ch = ksc5601_to_ucs4 (inptr, 0x80);
  *outptr = ch;
}
=========================================================================

$ m68k-linux-gcc -O2 -Wall -S /tmp/euc-kr.c -o /tmp/euc-kr.s
/tmp/euc-kr.c: In function `from_euc_kr':
/tmp/euc-kr.c:14: Internal compiler error in simplify_unary_operation, at simplify-rtx.c:532
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

>Fix:

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


             reply	other threads:[~2002-06-04 12:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-04  5:16 Bruno Haible [this message]
2003-02-19  9:50 ebotcazou

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=15612.44390.348134.254875@honolulu.ilog.fr \
    --to=bruno@clisp.org \
    --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).