[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: PCB Polygon code (with r-tree speedups) triggers GCC bug...



> DJ.. any insight on how to debug this further, or if it is a known
> issue?

Known pebkac.  If "first" happens to be optimized into a register,
longjmp will keep resetting it.  "volatile" is the way to go, or use a
goto if the label is in scope.

There's a gcc warning about that, too, I think, if you know what
option to enable.

What you should be using is the return value of setjmp() itself as
your "first time through" flag.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user