public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Richard Zidlicky <rz@linux-m68k.org> To: gcc-gnats@gcc.gnu.org Subject: c/7872: ICE on legal code, regression from 3.0 and 2.9* Date: Mon, 09 Sep 2002 14:36:00 -0000 [thread overview] Message-ID: <200209092110.XAA05344@rz.de> (raw) >Number: 7872 >Category: c >Synopsis: ICE on legal code, regression from 3.0 and 2.9* >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Mon Sep 09 14:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Richard Zidlicky >Release: 3.2 >Organization: >Environment: native and crosscompiled target: m68k-unknown-linux-gnu configured with: ../gcc-3.2/configure --enable-languages=c --disable-checking --with-newlib --without-headers --target=m68k-linux >Description: /data/rz/build-m68k-3.2-release/gcc/cc1 -O0 -m68020-60 x3.i QMExecuteLoop x3.i: In function `QMExecuteLoop': x3.i:15: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. rz@rz:/home/rz/test > /data/rz/build-m68k-3.2-release/gcc/cc1 -O1 -m68020-60 x3.i QMExecuteLoop >How-To-Repeat: extern void (**table)(void); typedef unsigned short uw16; typedef unsigned int gshort; void ExceptionProcessing(void); short extraFlag; register uw16 *pc asm("%a4"); register gshort code asm("%d6"); register int nInst asm("%d7"); void QMExecuteLoop(uw16 *oldPC) { table[code=(*(uw16*)(pc++))](); } >Fix: The cause of the problem is that gen_lowpart() returns a (REG ...) instead of a (SUBREG ...) in some obscure cases. This patch fixes the problem: --- gcc-3.2-cvs/gcc/simplify-rtx.c.rz Wed Mar 6 17:43:21 2002 +++ gcc-3.2-cvs/gcc/simplify-rtx.c Sat Aug 24 23:06:34 2002 @@ -2618,6 +2618,7 @@ suppress this simplification. If the hard register is the stack, frame, or argument pointer, leave this as a SUBREG. */ +#if 0 if (REG_P (op) && (! REG_FUNCTION_VALUE_P (op) || ! rtx_equal_function_value_matters) @@ -2662,6 +2663,7 @@ return x; } } +#endif /* If we have a SUBREG of a register that we are replacing and we are replacing it with a MEM, make a new MEM and try replacing the >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-09-09 21:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-09 14:36 Richard Zidlicky [this message] 2002-12-14 12:56 Richard Zidlicky 2002-12-16 12:46 Wolfgang Bangerth
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=200209092110.XAA05344@rz.de \ --to=rz@linux-m68k.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: linkBe 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).