This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: MIPS ICE with CONST_HIGH_PART sign-extension problem
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jim Wilson <wilson at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 27 Apr 2009 19:49:17 +0000 (UTC)
- Subject: Re: MIPS ICE with CONST_HIGH_PART sign-extension problem
- References: <1240861140.3278.60.camel@localhost.localdomain>
On Mon, 27 Apr 2009, Jim Wilson wrote:
> This testcase gives an ICE when compiled with -O for both mips-elf and
> mips64-elf targets.
>
> char *buf;
> int buflen;
>
> inline int
> sub (int length)
> {
> if (length <= buflen)
> buf[length] = '\0';
> return 0;
> }
>
> int
> sub2 (void)
> {
> return sub (0x7fffffff);
> }
Since this test isn't at all MIPS-specific, it should go in
gcc.c-torture/compile rather than gcc.target/mips, so it can potentially
show up bugs on other targets or with other optimization options.
--
Joseph S. Myers
joseph@codesourcery.com