This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/6928: ICE on inlined function for m68k


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]