OSDN Git Service

* f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 May 2004 00:34:59 +0000 (00:34 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 May 2004 00:34:59 +0000 (00:34 +0000)
commit7683466464b78eee955a8a33c2e23cc36ce3e227
tree6d5551f77f0b03649dcf0b885fe4be35ce373a23
parent41fe207742963c7494256330337c427a9117e577
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82014 138bc75d-0d04-0410-961f-82ee72b054a4
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]