This is the mail archive of the gcc-patches@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]

Re: Patch for PR gcj/268



Tom Tromey writes:

> Here is an updated version of my patch for PR gcj/268.  I'm still
> not convinced this is the correct patch, and it does feel rather
> hacky to me.

Alternatively, one could build a WFL around it. Something like:

  if (TREE_CODE_CLASS (TREE_CODE ($3)) == 'c')
    $3 = build_wfl_node ($3)
  $$ = finish_for_loop (EXPR_WFL_LINECOL ($3), $3, $5, $7);
	
> Perhaps it would be better to modify lex.c to only return
> expressions and never constants?  I don't know (but I'd be
> interested in finding out).

Yes. The lex.c could encapsulate things in WFLs. But then I think we
would loose the ability to fold RHS like `1+2+3'.

./A


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