* f95-lang.c (gfc_init_builtin_functions): Fix the number of
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Aug 2004 20:45:14 +0000 (20:45 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Aug 2004 20:45:14 +0000 (20:45 +0000)
__builtin_pow[f] arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85653 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c

index 4d0b330..7eb4fb5 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-06  Feng Wang  <fengwang@nudt.edu.cn>
+
+       * f95-lang.c (gfc_init_builtin_functions): Fix the number of
+       __builtin_pow[f] arguments.
+
 2004-08-06  Steven G. Kargl  <kargls@comcast.net>
 
        * arith.c: Add #define for model numbers.  Remove global GMP variables.
index 3afeb66..78bf19a 100644 (file)
@@ -750,9 +750,9 @@ gfc_init_builtin_functions (void)
                      BUILT_IN_ROUNDF, "roundf", true);
 
   /* These are used to implement the ** operator.  */
-  gfc_define_builtin ("__builtin_pow", mfunc_double[0], 
+  gfc_define_builtin ("__builtin_pow", mfunc_double[1], 
                      BUILT_IN_POW, "pow", true);
-  gfc_define_builtin ("__builtin_powf", mfunc_float[0], 
+  gfc_define_builtin ("__builtin_powf", mfunc_float[1], 
                      BUILT_IN_POWF, "powf", true);
 
   /* Other builtin functions we use.  */