This is the mail archive of the gcc-help@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]
Other format: [Raw text]

__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






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