public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: <fnf@intrinsity.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c/9835: ICE - segfault using -msoft-float with latest mips-elf toolchain Date: Tue, 25 Feb 2003 22:26:00 -0000 [thread overview] Message-ID: <20030225222601.11273.qmail@sources.redhat.com> (raw) The following reply was made to PR c/9835; it has been noted by GNATS. From: <fnf@intrinsity.com> To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c/9835: ICE - segfault using -msoft-float with latest mips-elf toolchain Date: Tue, 25 Feb 2003 16:21:43 -0600 (CST) From fnf@public.ninemoons.com Tue Feb 25 11:32:11 2003 Return-Path: <fnf@public.ninemoons.com> X-Original-To: fnf@victoria.eng.evsx.com Delivered-To: fnf@victoria.eng.evsx.com Received: from mailhost.intrinsity.com (gw.intrinsity.com [208.246.32.130]) by victoria.intrinsity.com (Postfix) with ESMTP id DCEED4586C for <fnf@victoria.eng.evsx.com>; Tue, 25 Feb 2003 11:32:10 -0600 (CST) Received: by mailhost.intrinsity.com (Postfix) id DDBCD3F3A8; Tue, 25 Feb 2003 11:31:52 -0600 (CST) Delivered-To: fnf@intrinsity.com Received: from fred.ninemoons.com (wsip68-14-214-217.ph.ph.cox.net [68.14.214.217]) by mailhost.intrinsity.com (Postfix) with ESMTP id 1F1153F3A6 for <fnf@intrinsity.com>; Tue, 25 Feb 2003 11:31:52 -0600 (CST) Received: from fred.ninemoons.com (localhost.localdomain [127.0.0.1]) by fred.ninemoons.com (8.12.5/8.12.5) with ESMTP id h1PHZKwI005729; Tue, 25 Feb 2003 10:35:26 -0700 Received: (from fnf@localhost) by fred.ninemoons.com (8.12.5/8.12.5/Submit) id h1PHZJLl005727; Tue, 25 Feb 2003 10:35:19 -0700 From: Fred Fish <fnf@public.ninemoons.com> Message-Id: <200302251735.h1PHZJLl005727@fred.ninemoons.com> Subject: Re: c/9835: ICE - segfault using -msoft-float with latest mips-elf toolchain To: gcc-bugs@gcc.gnu.org Date: Tue, 25 Feb 2003 10:35:19 -0700 (MST) Cc: kazu@cs.umass.edu, fnf@intrinsity.com Reply-To: fnf@intrinsity.com X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The following code (simplified from my original reported testcase) triggers an internal compiler error when compiled with -O2 and -msoft-float by the latest mips-elf toolchain: void foo () { double dval; unsigned int ival; if (dval == 0) return; if (dval != dval) { bar (ival); } if (dval < 0) { bar (ival); } } For example: $ ./cc1 -O2 -msoft-float segfault.i foo segfault.i: In function `foo': segfault.i:17: internal compiler error: Segmentation fault Comparing with a previously working compiler, I have backtracked the problem to a recent change made to cprop_jump(). The following patch that reverts one line of that change will sidestep the problem, but is probably NOT the right fix. Unfortunately my knowledge of gcc internals is not sufficient for me to provide a better patch at this time. Index: gcse.c =================================================================== RCS file: /mips/newtools/fsf/gcc/gcc/gcse.c,v retrieving revision 1.3 diff -u -p -r1.3 gcse.c --- gcse.c 2003/02/24 15:40:41 1.3 +++ gcse.c 2003/02/25 17:29:28 @@ -4064,7 +4064,7 @@ cprop_jump (bb, setcc, jump, from, src) new_set = simplify_replace_rtx (SET_SRC (set), SET_DEST (setcc_set), - setcc_set_src); + SET_SRC (setcc_set)); } else new_set = set; -Fred
next reply other threads:[~2003-02-25 22:26 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-25 22:26 fnf [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-02-24 17:06 fnf
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=20030225222601.11273.qmail@sources.redhat.com \ --to=fnf@intrinsity.com \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).