[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#333536: [m68k] ICE in instantiate_virtual_regs_lossage



Package: gcc-4.0
Version: 4.0.2-2

I found an ICE in gcc-4.0 when building rsplib. I've reduced it to a
short file which is attached. It fails with no special options.

| buildd@amiga1200:/build/buildd/wkg$ gcc buggy.c
| buggy.c: In function 'buggy':
| buggy.c:17: internal compiler error: in
| instantiate_virtual_regs_lossage, at function.c:1442
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <URL:http://gcc.gnu.org/bugs.html> for instructions.
| For Debian GNU/Linux specific bug reporting instructions,
| see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>.

-- 
Stephen R. Marenka     If life's not fun, you're not doing it right!
<stephen@marenka.net>
static unsigned int buggy(const unsigned int v1,
	const unsigned int v2, const unsigned int v3) 
{   
	const long long v1_64 = (long long)v1;
   	const long long v2_64 = (long long)v2;   
	const long long v3_64 = (long long)v3;
   	long long v = v1_64 + v2_64 + v3_64;   
	if(v < 0) 
	{
      		v = 0;   
	}
   	else if(v > (long long)0xffffffff) 
	{      
		v = (long long)0xffffffff;
	}   
	return((unsigned int)v);
}

Attachment: signature.asc
Description: Digital signature


Reply to: