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: [patch] beat location sense into fold (PR/40435)


2009/7/9 Aldy Hernandez <aldyh@redhat.com>:
>
> The patch is over a megabyte long, and I'm sure no one wants to see it,
> let alone have it in their inbox. ?It is available in the link below for
> review. ?I can post it on request.

I am all for more precise location info, but I don't understand the
following change:

 bool
-fold_builtin_next_arg (tree exp, bool va_start_p)
+fold_builtin_next_arg (location_t loc ATTRIBUTE_UNUSED,
+		       tree exp, bool va_start_p)
 {
   tree fntype = TREE_TYPE (current_function_decl);
   int nargs = call_expr_nargs (exp);
@@ -11995,7 +12086,8 @@ fold_builtin_next_arg (tree exp, bool va

The loc is indeed never used, so why bother? This occurs at least twice.

Cheers,

Manuel.


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