This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ICE with current mainline version
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: ICE with current mainline version
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 21 Nov 2000 01:14:37 -0800
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <m3zoiv0y45.fsf@otr.mynet.cygnus.com>
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;
})
);
}