]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgfortran/generated/pow_r4_i8.c
f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.
authorFeng Wang <fengwang@nudt.edu.cn>
Wed, 19 May 2004 00:34:59 +0000 (00:34 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Wed, 19 May 2004 00:34:59 +0000 (00:34 +0000)
commit5b200ac2c7278c022c23a684589df1b31a40a153
tree6d5551f77f0b03649dcf0b885fe4be35ce373a23
parent933520b9beeea22009be7637b3186c61679266b0
f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.

* 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.

From-SVN: r82014
24 files changed:
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c
gcc/fortran/gfortran.h
gcc/fortran/trans-decl.c
gcc/fortran/trans-expr.c
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/execute/power.f90
libgfortran/ChangeLog
libgfortran/Makefile.am
libgfortran/Makefile.in
libgfortran/generated/pow_c4_i4.c [new file with mode: 0644]
libgfortran/generated/pow_c4_i8.c [new file with mode: 0644]
libgfortran/generated/pow_c8_i4.c [new file with mode: 0644]
libgfortran/generated/pow_c8_i8.c [new file with mode: 0644]
libgfortran/generated/pow_i4_i4.c [new file with mode: 0644]
libgfortran/generated/pow_i4_i8.c [new file with mode: 0644]
libgfortran/generated/pow_i8_i4.c [new file with mode: 0644]
libgfortran/generated/pow_i8_i8.c [new file with mode: 0644]
libgfortran/generated/pow_r4_i4.c [new file with mode: 0644]
libgfortran/generated/pow_r4_i8.c [new file with mode: 0644]
libgfortran/generated/pow_r8_i4.c [new file with mode: 0644]
libgfortran/generated/pow_r8_i8.c [new file with mode: 0644]
libgfortran/m4/pow.m4 [new file with mode: 0644]