[fortran, patch] Fix PR 14377 - simplifying minmax bug.

Feng Wang wf_cs@yahoo.com
Fri Mar 19 08:14:00 GMT 2004


Hmmm, The type isn't still correct. The expression and the function's type may
both be BT_UNKNOWN, because we simplify the intrinsic function before resolve
it.
I think this patch can fix it. And the test case patch is also attached.

Feng Wang


The testsuits ChangeLog.tree-ssa:
2004-03-10  Feng Wang  <fengwang@nudt.edu.cn>

	* gfortran.fortran-torture/execute/intrinsic_minmax.f90: Add simplify
	test.

The fortran ChangeLog:
2004-03-03  Feng Wang  <fengwang@nudt.edu.cn>

	PR fortran/14377
	* simplify.c (simplify_min_max): Convert the type of the result.


 --- Paul Brook <paul@codesourcery.com> µÄÕýÎÄ£º> > ChangeLog entry:
> > 2004-03-03  Feng Wang  <fengwang@nudt.edu.cn>
> >
> > 	PR fortran/14377
> > 	* simplify.c (simplify_min_max): Convert the type of the result.
> 
> Ok.
> 
> Paul 

_________________________________________________________
Do You Yahoo!? 
ÍêÈ«Ãâ·ÑµÄÑÅ»¢µçÓÊ£¬ÂíÉÏ×¢²á»ñÔù¶îÍâ60Õ×ÍøÂç´æ´¢¿Õ¼ä
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.mail.yahoo.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: minmax.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040319/c83d0c10/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: intrinsic_minmax.f90.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040319/c83d0c10/attachment-0001.ksh>


More information about the Gcc-patches mailing list