This is the mail archive of the gcc-bugs@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]

Re: ICE with current mainline version


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;
	})
     );
}

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