public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/6928: ICE on inlined function for m68k
@ 2002-06-04  5:16 Bruno Haible
  0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2002-06-04  5:16 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: optimization/6928: ICE on inlined function for m68k
@ 2003-02-19  9:50 ebotcazou
  0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou @ 2003-02-19  9:50 UTC (permalink / raw)
  To: bruno, gcc-bugs, gcc-prs, nobody

Synopsis: ICE on inlined function for m68k

State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Wed Feb 19 09:50:28 2003
State-Changed-Why:
    Fixed as of gcc 3.2.3pre.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6928


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-19  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-04  5:16 optimization/6928: ICE on inlined function for m68k Bruno Haible
2003-02-19  9:50 ebotcazou

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).