problem building a GCJ-friendly GNU Crypto

Bryce McKinlay bryce@mckinlay.net.nz
Sun Sep 21 11:17:00 GMT 2003


On Sunday, Sep 21, 2003, at 08:47 Pacific/Auckland, Tom Tromey wrote:

>>>>>> "Roger" == Roger Sayle <roger@eyesopen.com> writes:
>
> Roger> I'm currently working on a patch to add an -fevaluation-order 
> command
> Roger> line option to GCC, that sets a flag_evaluation_order variable 
> that
> Roger> can be checked during constant folding to preserve left-to-right
> Roger> evaluation order of binary expressions.  This can then be 
> enabled by
> Roger> default  by the java front-end, which should help make 
> libbackend.a
> Roger> more java friendly.
>
> What about just encoding the required sequencing information in the
> trees somehow?  Actually, I thought we did that already.

Yeah - the Java evaluation order is encoded into trees using 
COMPOUND_EXPRs in force_evaluation_order (java/expr.c). I guess the 
problems with constant folding are because fold() gets called before 
force_evaluation_order does.

Regards

Bryce.



More information about the Gcc-patches mailing list