From: Andrew Pinski Date: Sun, 26 Nov 2006 08:09:05 +0000 (-0800) Subject: trans-decl.c (gfc_build_intrinsic_function_decls): Mark the pow functions as constant... X-Git-Tag: releases/gcc-4.3.0~8278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67fdae36e917f7dcea4dbeead421218df36b7ea0;p=thirdparty%2Fgcc.git trans-decl.c (gfc_build_intrinsic_function_decls): Mark the pow functions as constant functions. 2006-11-26 Andrew Pinski * trans-decl.c (gfc_build_intrinsic_function_decls): Mark the pow functions as constant functions. From-SVN: r119219 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index a6a2962e3655..9b350ff33472 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2006-11-26 Andrew Pinski + + * trans-decl.c (gfc_build_intrinsic_function_decls): Mark the + pow functions as constant functions. + 2006-11-25 Andrew Pinski PR fortran/29982 diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index e44489d510cf..1f3ab7d42f6d 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -2112,6 +2112,7 @@ gfc_build_intrinsic_function_decls (void) gfor_fndecl_math_powi[jkind][ikind].integer = gfc_build_library_function_decl (get_identifier (name), jtype, 2, jtype, itype); + TREE_READONLY (gfor_fndecl_math_powi[jkind][ikind].integer) = 1; } } @@ -2125,6 +2126,7 @@ gfc_build_intrinsic_function_decls (void) gfor_fndecl_math_powi[rkind][ikind].real = gfc_build_library_function_decl (get_identifier (name), rtype, 2, rtype, itype); + TREE_READONLY (gfor_fndecl_math_powi[rkind][ikind].real) = 1; } ctype = gfc_get_complex_type (rkinds[rkind]); @@ -2135,6 +2137,7 @@ gfc_build_intrinsic_function_decls (void) gfor_fndecl_math_powi[rkind][ikind].cmplx = gfc_build_library_function_decl (get_identifier (name), ctype, 2,ctype, itype); + TREE_READONLY (gfor_fndecl_math_powi[rkind][ikind].cmplx) = 1; } } }