From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28396 invoked by alias); 4 Jun 2002 12:16:10 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28360 invoked by uid 71); 4 Jun 2002 12:16:05 -0000 Resent-Date: 4 Jun 2002 12:16:05 -0000 Resent-Message-ID: <20020604121605.28359.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Bruno Haible Received:(qmail 25342 invoked from network); 4 Jun 2002 12:10:56 -0000 Received: from unknown (HELO sceaux.ilog.fr) (193.55.64.10) by sources.redhat.com with SMTP; 4 Jun 2002 12:10:56 -0000 Received: from ftp.ilog.fr (ftp.ilog.fr [193.55.64.11]) by sceaux.ilog.fr (8.11.6/8.11.6) with SMTP id g54C8EB20794 for ; Tue, 4 Jun 2002 14:08:14 +0200 (MET DST) Received: from laposte.ilog.fr ([193.55.64.67]) by ftp.ilog.fr (NAVGW 2.5.1.16) with SMTP id M2002060414105312476 for ; Tue, 04 Jun 2002 14:10:53 +0200 Received: from honolulu.ilog.fr ([172.17.4.119]) by laposte.ilog.fr (8.11.6/8.11.5) with ESMTP id g54CAq217223; Tue, 4 Jun 2002 14:10:53 +0200 (MET DST) Received: (from haible@localhost) by honolulu.ilog.fr (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id OAA13012; Tue, 4 Jun 2002 14:07:02 +0200 Message-Id:<15612.44390.348134.254875@honolulu.ilog.fr> Date: Tue, 04 Jun 2002 05:16:00 -0000 From: Bruno Haible To: gcc-gnats@gcc.gnu.org Subject: optimization/6928: ICE on inlined function for m68k X-SW-Source: 2002-06/txt/msg00084.txt.bz2 List-Id: >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 for instructions. >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: