This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Trivial fix for bootstrap failure in ipa-reference.c
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Art Haas" <ahaas at impactweather dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Sep 2008 08:46:37 -0700
- Subject: Re: [PATCH] Trivial fix for bootstrap failure in ipa-reference.c
- References: <200809171453.m8HErIoA007118@impdell3.impactweather.local>
On Wed, Sep 17, 2008 at 7:53 AM, Art Haas <ahaas@impactweather.com> wrote:
> Hi.
>
> My build failed because 'step' is only used if 'ENABLE_CHECKING' is
> defined. The trivial patch below allowed this mornings bootstrap
> to complete.
>
> Art Haas
>
> diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
> index 861b153..6c76ccc 100644
> --- a/gcc/ipa-reference.c
> +++ b/gcc/ipa-reference.c
> @@ -674,7 +674,9 @@ analyze_function (struct cgraph_node *fn)
> tree decl = fn->decl;
> struct function *this_cfun = DECL_STRUCT_FUNCTION (decl);
> basic_block this_block;
> +#ifdef ENABLE_CHECKING
> tree step;
> +#endif
>
> if (dump_file)
> fprintf (dump_file, "\n local analysis of %s\n", cgraph_node_name (fn));
>
I ran into the same problem. I checked it in as an obvious fix.
Thanks.
--
H.J.