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] Trivial fix for bootstrap failure in ipa-reference.c


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.


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