ICE with current mainline version

Richard Henderson rth@redhat.com
Tue Nov 21 01:14:00 GMT 2000


On Mon, Nov 20, 2000 at 01:52:10AM -0800, Ulrich Drepper wrote:
> dcigettext.c: In function `__dcigettext':
> dcigettext.c:503: warning: unreachable code at beginning of switch statement
> dcigettext.c:655: Internal error: Speicherzugriffsfehler.

Here is a cut down test case, committed as compile/20001121-1.c.

The problem is related to the sibling call code.  I'm currently
testing a fix.


r~



extern int bar(int);

int foo(int x)
{
  return 1 + bar(
	({
		int y;
		switch (x)
		{
		case 0: y = 1; break;
		case 1: y = 2; break;
		case 2: y = 3; break;
		case 3: y = 4; break;
		case 4: y = 5; break;
		case 5: y = 6; break;
		default: y = 7; break;
		}
		y;
	})
     );
}


More information about the Gcc-bugs mailing list