__label__ , internal compiler error:segmentation fault

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

 



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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux