This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

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/


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