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]

Re: [C++ PATCH] Inline even functions containing static variables (take 4)


>>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:

> +  init = tmp;
> +  tmp = save_expr (tmp);
> +  if (TREE_STATIC (decl) && !TREE_CONSTANT (tmp))
> +    return tmp;

Does anything break if we remove this save_expr?  It seems useless, as
does the assignment to init.

Other than that, OK for trunk and branch.  Thanks!

Jason


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