From ead6d15f70bfdd702d3a7a4fbf3eaab14afcba82 Mon Sep 17 00:00:00 2001 From: Andrew Pinski <apinski@apple.com> Date: Sun, 15 Aug 2004 19:26:32 +0000 Subject: re PR fortran/17030 (gfortran does not optimize ABS of complex that well) 2004-08-15 Andrew Pinski <apinski@apple.com> PR fortran/17030 * f95-lang.c (gfc_init_builtin_functions): Initialize the builtins for cabs{,f} and copysign{,f}. * trans-decl.c (gfor_fndecl_math_cabsf): Delete. (gfor_fndecl_math_cabs): Delete. (gfor_fndecl_math_sign4): Delete. (gfor_fndecl_math_sign8): Delete. (gfc_build_intrinsic_function_decls): Remove the initializing of cabs{,f} and copysign{,f} functions. * trans-intrinsic.c (gfc_conv_intrinsic_abs): Use the builtins instead of the functions definitions. (gfc_conv_intrinsic_sign): Likewise. * trans.h (gfor_fndecl_math_cabsf): Delete. (gfor_fndecl_math_cabs): Delete. (gfor_fndecl_math_sign4): Delete. (gfor_fndecl_math_sign8): Delete. From-SVN: r86027 --- gcc/fortran/trans-decl.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'gcc/fortran/trans-decl.c') diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index ef802ec..d9476b822 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -96,10 +96,6 @@ tree gfor_fndecl_associated; gfc_powdecl_list gfor_fndecl_math_powi[3][2]; tree gfor_fndecl_math_cpowf; tree gfor_fndecl_math_cpow; -tree gfor_fndecl_math_cabsf; -tree gfor_fndecl_math_cabs; -tree gfor_fndecl_math_sign4; -tree gfor_fndecl_math_sign8; tree gfor_fndecl_math_ishftc4; tree gfor_fndecl_math_ishftc8; tree gfor_fndecl_math_exponent4; @@ -1460,22 +1456,6 @@ gfc_build_intrinsic_function_decls (void) gfc_build_library_function_decl (get_identifier ("cpow"), gfc_complex8_type_node, 1, gfc_complex8_type_node); - gfor_fndecl_math_cabsf = - gfc_build_library_function_decl (get_identifier ("cabsf"), - gfc_real4_type_node, - 1, gfc_complex4_type_node); - gfor_fndecl_math_cabs = - gfc_build_library_function_decl (get_identifier ("cabs"), - gfc_real8_type_node, - 1, gfc_complex8_type_node); - gfor_fndecl_math_sign4 = - gfc_build_library_function_decl (get_identifier ("copysignf"), - gfc_real4_type_node, - 1, gfc_real4_type_node); - gfor_fndecl_math_sign8 = - gfc_build_library_function_decl (get_identifier ("copysign"), - gfc_real8_type_node, - 1, gfc_real8_type_node); gfor_fndecl_math_ishftc4 = gfc_build_library_function_decl (get_identifier (PREFIX("ishftc4")), gfc_int4_type_node, -- cgit v1.1