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]
Other format: [Raw text]

Re: [fortran, patch] Expand powi to optimal multiplications


 --- Paul Brook <paul@codesourcery.com> 的正文:> On Tuesday 18 May 2004 17:54,
Tobias Schl?er wrote:
> > Paul Brook wrote:
> > > I've made some changes to your patch, and will apply it once tree-ssa has
> > > been merged.
> >
> > I'm just going through past e-mails, checking for lost patches. It seems
> > that this has never gone in. Are you still waiting for something, Paul?
> > In that case a PR might be helpful.
> 
> No, just time to update and apply the patch.
> 
> Applied as follows.
> 
> Paul
> 
> 2004-05-18  Paul Brook  <paul@codesourcery.com>
> 
> 	* f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.
> 	Create decls for __builtin_pow{,f}.
> 	* gfortran.h (PREFIX_LEN): Define.
> 	* trans-decl.c (gfor_fndecl_math_powi): Add.
> 	(gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
> 	(gfc_build_intrinsic_function_decls): Create decls for powi.
> 	* trans-expr.c (powi_table): Add.
> 	(gfc_conv_integer_power): Remove.
> 	(gfc_conv_powi): New function.
> 	(gfc_conv_cst_int_power): New function.
> 	(gfc_conv_power_op): Use new powi routines.
> 	* trans.h (struct gfc_powdecl_list): Add.
> 	(gfor_fndecl_math_powi): Add.
> 	(gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
> testsuite/
> 	* gfortran.fortran-torture/execute/power.f90: Test constant integers.
> libgfortran/
> 	* Makefile.am (i_pow_c): Set it. Add build rule.
> 	(gfor_built_src): Use it.
> 	(m4_files): add m4/pow.m4.
> 	* Makefile.in: Regenerate.
> 	* m4/pow.m4: New file.
> 	* generated/pow_*.c: Regenerate.

Good work, maintainer! But where's my work in the ChangeLog? At least you did
not change the patch of test program :)

Feng Wang

_________________________________________________________
Do You Yahoo!? 
嫌邮箱太小?雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m.html


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