This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS ICE with CONST_HIGH_PART sign-extension problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]