[fortran, patch] Fix pow op.

Feng Wang wf_cs@yahoo.com
Tue Aug 16 16:10:00 GMT 2005


The committed is enclosed. This bug was found and fixed by Chun Huang, another
member of our group. I credit this to her.

--- Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:

> On Thu, Aug 04, 2005 at 12:05:10PM +0800, Feng Wang wrote:
> > This patch fixed pow operation. We should evaluate the first operator. 
> >     gfc_conv_expr_val (&lse, expr->value.op.op1);
> > +   lse.expr = gfc_evaluate_now (lse.expr, &lse.pre);
> >     gfc_add_block_to_block (&se->pre, &lse.pre);
> >   
> >     gfc_init_se (&rse, se);
> 
> This is ok for both mainline and 4.0.  Please, include a
> ChangeLog entry with your patches.
> 


Best Regards,
Feng Wang

--
Creative Compiler Research Group,
National University of Defense Technology, China.


		
__________________________________ 
Meet your soulmate!
Yahoo! Asia presents Meetic - where millions of singles gather
http://asia.yahoo.com/meetic
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pow1.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050816/ff991271/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pow.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050816/ff991271/attachment-0001.ksh>


More information about the Fortran mailing list