OSDN Git Service

The parameters for functions from the frexp family were the wrong way
authorbaldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Apr 2011 08:13:16 +0000 (08:13 +0000)
committerbaldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Apr 2011 08:13:16 +0000 (08:13 +0000)
round.  Swap them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171972 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 1d73739..a4b5885 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-05  Duncan Sands  <baldrick@free.fr>
+
+       * f95-lang.c (build_builtin_fntypes): Swap frexp parameter types.
+
 2011-04-04  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/48291
index 3340dc4..728b631 100644 (file)
@@ -695,10 +695,9 @@ build_builtin_fntypes (tree *fntype, tree type)
                                         type, integer_type_node, NULL_TREE);
   /* type (*) (void) */
   fntype[3] = build_function_type_list (type, NULL_TREE);
-  /* type (*) (&int, type) */
-  fntype[4] = build_function_type_list (type,
+  /* type (*) (type, &int) */
+  fntype[4] = build_function_type_list (type, type,
                                         build_pointer_type (integer_type_node),
-                                        type,
                                         NULL_TREE);
   /* type (*) (int, type) */
   fntype[5] = build_function_type_list (type,