This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
__label__ , internal compiler error:segmentation fault
- From: sumanth <sumanth dot gundapneni at redpinesignals dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 29 Apr 2009 17:43:08 +0530
- Subject: __label__ , internal compiler error:segmentation fault
Hi,
I am encountering a segmentation fault : internal compiler error
after running this torture case.
#ifdef STACK_SIZE
#define DEPTH ((STACK_SIZE) / 512 + 1)
#else
#define DEPTH 1000
#endif
#if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
x(a)
{
__label__ xlab;
void y(a)
{
if (a==0)
goto xlab;
y (a-1);
}
y (a);
xlab:;
return a;
}
#endif
main ()
{
#if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
if (x (DEPTH) != DEPTH)
abort ();
#endif
exit (0);
}
After seeing similar test cases as well, my compiler crashes because of
__label__ xlab.
Can any one point me to solution for locally declared labels in the
sense , any macros I should define in particular
to handle __label__.
Thanks in advance,
Sumanth