This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] Fix two bootstrap problems, PR 15009 and 14999


On Apr 19, 2004, at 07:41, Roger Sayle wrote:

Hi Andrew,

I'll preapprove a patch to completely remove the "fndecl" argument from
fold_builtin_cabs, rather than just mark it as unused. This function is
local to builtins.c, so its easy enough to update the single caller and
the function prototype.


Here is the patch which I committed which updates the caller and function
and the comment.


Thanks,
Andrew Pinski

ChangeLog:
	* builtins.c (fold_builtin_cabs): Remove fndecl parameter.
	(fold_builtin): Update caller to match.

Patch:
Index: builtins.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/builtins.c,v
retrieving revision 1.310
diff -u -p -r1.310 builtins.c
--- builtins.c	19 Apr 2004 13:03:05 -0000	1.310
+++ builtins.c	19 Apr 2004 13:18:41 -0000
@@ -146,7 +146,7 @@ static bool readonly_data_expr (tree);
 static rtx expand_builtin_fabs (tree, rtx, rtx);
 static rtx expand_builtin_cabs (tree, rtx);
 static rtx expand_builtin_signbit (tree, rtx);
-static tree fold_builtin_cabs (tree, tree, tree);
+static tree fold_builtin_cabs (tree, tree);
 static tree fold_builtin_trunc (tree);
 static tree fold_builtin_floor (tree);
 static tree fold_builtin_ceil (tree);
@@ -5939,12 +5939,12 @@ fold_trunc_transparent_mathfn (tree exp)
   return 0;
 }

-/* Fold function call to builtin cabs, cabsf or cabsl.  FNDECL is the
-   function's DECL, ARGLIST is the argument list and TYPE is the return
-   type.  Return NULL_TREE if no simplification can be made.  */
+/* Fold function call to builtin cabs, cabsf or cabsl.  ARGLIST
+   is the argument list and TYPE is the return type.  Return
+   NULL_TREE if no if no simplification can be made.  */

static tree
-fold_builtin_cabs (tree fndecl ATTRIBUTE_UNUSED, tree arglist, tree type)
+fold_builtin_cabs (tree arglist, tree type)
{
tree arg;


@@ -6849,7 +6849,7 @@ fold_builtin (tree exp)
     case BUILT_IN_CABS:
     case BUILT_IN_CABSF:
     case BUILT_IN_CABSL:
-      return fold_builtin_cabs (fndecl, arglist, type);
+      return fold_builtin_cabs (arglist, type);

     case BUILT_IN_SQRT:
     case BUILT_IN_SQRTF:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]