This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Fix backtrace for interpreted code
> Always. g++ always sets flag_unit_at_a_time, so functions are not
> output in the order they're declared.
Oh! I didn't know that - thanks!
If you promise not to puke in disgust,
how about something like this instead:
_Jv_InterpMethod::run(...)
{
bool done = false;
begin:
if(!done)
{
_Jv_StartOfInterpreter = &&begin;
goto end;
}
...
end:
_Jv_EndOfInterpreter = &&end;
done = true;
goto begin;
}
Would it be too gross?
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/