From: Maxim Kuvyrkov <maxim@codesourcery.com>
To: Andrew Stubbs <ams@codesourcery.com>
Cc: gcc@gcc.gnu.org
Subject: Re: [SH] ICE compiling pr34330 testcase for sh-linux-gnu
Date: Wed, 15 Jul 2009 06:39:00 -0000 [thread overview]
Message-ID: <4A5D79A0.3090004@codesourcery.com> (raw)
In-Reply-To: <4A55DA63.20008@codesourcery.com>
Andrew Stubbs wrote:
> I'm having trouble with an ICE, and I'm hoping somebody can enlighten me.
>
> Given the following command:
>
> cc1 -fpreprocessed ../pr34330.i -quiet -dumpbase pr34330.c -da -mb
> -auxbase-strip pr34330.c -Os -version -ftree-parallelize-loops=4
> -ftree-vectorize -o pr34330.s -fschedule-insns
>
> I get an internal compiler error:
>
> GNU C (GCC) version 4.5.0 20090702 (experimental) (sh-linux-gnu)
> compiled by GNU C version 4.3.2, GMP version 4.3.1, MPFR version
> 2.4.1-p5, MPC version 0.6
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
> GNU C (GCC) version 4.5.0 20090702 (experimental) (sh-linux-gnu)
> compiled by GNU C version 4.3.2, GMP version 4.3.1, MPFR version
> 2.4.1-p5, MPC version 0.6
> GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
> Compiler executable checksum: c91a929a0209c0670a3ae8b8067b9f9a
> /scratch/ams/4.4-sh-linux-gnu-lite/src/gcc-trunk-4.4/gcc/testsuite/gcc.dg/torture/pr34330.c:
> In function 'foo':
> /scratch/ams/4.4-sh-linux-gnu-lite/src/gcc-trunk-4.4/gcc/testsuite/gcc.dg/torture/pr34330.c:22:1:
> error: insn does not satisfy its constraints:
> (insn 171 170 172 4
> /scratch/ams/4.4-sh-linux-gnu-lite/src/gcc-trunk-4.4/gcc/testsuite/gcc.dg/torture/pr34330.c:17
> (set (reg:SI 9 r9)
> (plus:SI (reg:SI 8 r8)
> (reg:SI 0 r0 [orig:243 ivtmp.11 ] [243]))) 35
> {*addsi3_compact} (nil))
> /scratch/ams/4.4-sh-linux-gnu-lite/src/gcc-trunk-4.4/gcc/testsuite/gcc.dg/torture/pr34330.c:22:1:
> internal compiler error: in reload_cse_simplify_operands, at
> postreload.c:396
This looks much like PR37053 on m68k/ColdFire; the easiest way to check
if this ICE was caused by the same error is to revert hunk in rtlanal.c:
commutative_operand_precedence() -- see in the PR.
As to the fix, there are several patches being discussed here
(http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00816.html) and here
(http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00823.html).
My $0.02.
--
Maxim
next prev parent reply other threads:[~2009-07-15 6:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 11:54 Andrew Stubbs
2009-07-09 18:12 ` Ian Lance Taylor
2009-07-30 8:27 ` Andrew Stubbs
2009-07-15 6:39 ` Maxim Kuvyrkov [this message]
2009-07-30 14:32 Joern Rennecke
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=4A5D79A0.3090004@codesourcery.com \
--to=maxim@codesourcery.com \
--cc=ams@codesourcery.com \
--cc=gcc@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: link
Be 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).