This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Externalize definition of create_tmp_reg_or_ssa_name
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: will_schmidt at vnet dot ibm dot com
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>, Segher Boessenkool <segher at kernel dot crashing dot org>, Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- Date: Fri, 12 May 2017 09:23:58 +0200
- Subject: Re: [PATCH] Externalize definition of create_tmp_reg_or_ssa_name
- Authentication-results: sourceware.org; auth=none
- References: <1494517963.15163.34.camel@brimstone.rchland.ibm.com>
On Thu, May 11, 2017 at 5:52 PM, Will Schmidt <will_schmidt@vnet.ibm.com> wrote:
> Hi,
>
> I had initially posted this back in Dec, at which time it
> was given an OK. Since a bunch of time has passed, I'm reposting
> to refresh memories, and ensure it's still OK. :-)
>
> I will be needing access to the create_tmp_reg_or_ssa_name()
> function for some subsequent early expansion of vectors patches.
> Thus...
>
> Externalize the definition of create_tmp_reg_or_ssa_name
> for use in rs6000.c. (Usage will show up in later patches).
>
> Bootstrapped and tested on powerpc64le-unknown-linux-gnu, and
> powerpc-unknown-linux, (p7,p8le,p8be) with no regressions.
>
> OK for trunk?
Ok.
>
> 2017-05-10 Will Schmidt <will_schmidt@vnet.ibm.com>
>
> [gcc]
> * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
> * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
>
> diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
> index 9fd45d1..2eaeecb 100644
> --- a/gcc/gimple-fold.c
> +++ b/gcc/gimple-fold.c
> @@ -161,8 +161,8 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
> is in SSA form, a SSA name is created. Otherwise a temporary register
> is made. */
>
> -static tree
> -create_tmp_reg_or_ssa_name (tree type, gimple *stmt = NULL)
> +tree
> +create_tmp_reg_or_ssa_name (tree type, gimple *stmt)
> {
> if (gimple_in_ssa_p (cfun))
> return make_ssa_name (type, stmt);
> diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
> index e4931a1..d34d880 100644
> --- a/gcc/gimple-fold.h
> +++ b/gcc/gimple-fold.h
> @@ -22,6 +22,7 @@ along with GCC; see the file COPYING3. If not see
> #ifndef GCC_GIMPLE_FOLD_H
> #define GCC_GIMPLE_FOLD_H
>
> +extern tree create_tmp_reg_or_ssa_name (tree, gimple *stmt = NULL);
> extern tree canonicalize_constructor_val (tree, tree);
> extern tree get_symbol_constant_value (tree);
> extern bool get_range_strlen (tree, tree[2]);
>
>