This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix bootstrap
- From: Revital1 Eres <ERES at il dot ibm dot com>
- To: "H.J. Lu" <hjl at lucon dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Jul 2007 21:43:29 +0300
- Subject: Re: PATCH: Fix bootstrap
Sorry about that.
Thanks for the fix,
Revital
gcc-patches-owner@gcc.gnu.org wrote on 31/07/2007 21:40:45:
> Bootstrap was broken:
>
> cc1: warnings being treated as
> errors/net/gnu-13/export/gnu/src/gcc/gcc/gcc/ddg.c: In function
> âadd_cross_iteration_register_depsâ:
> /net/gnu-13/export/gnu/src/gcc/gcc/gcc/ddg.c:242: error: unused
> variable âbb_infoâ
> make[5]: *** [ddg.o] Error 1
> make[5]: *** Waiting for unfinished jobs....
>
> when configured with "--enable-checking=assert" due to
>
> http://gcc.gnu.org/ml/gcc-patches/2007-07/msg02136.html
>
> I am checking in this patch as an obvious fix.
>
> H.J.
> ----
> 2007-07-31 H.J. Lu <hongjiu.lu@intel.com>
>
> * ddg.c (add_cross_iteration_register_deps): Declare bb_info
> only if ENABLE_CHECKING is defined.
>
> --- gcc/ddg.c.foo 2007-07-31 11:33:33.000000000 -0700
> +++ gcc/ddg.c 2007-07-31 11:31:36.000000000 -0700
> @@ -239,7 +239,9 @@ add_cross_iteration_register_deps (ddg_p
> rtx def_insn = DF_REF_INSN (last_def);
> ddg_node_ptr last_def_node = get_node_of_insn (g, def_insn);
> ddg_node_ptr use_node;
> +#ifdef ENABLE_CHECKING
> struct df_rd_bb_info *bb_info = DF_RD_BB_INFO (g->bb);
> +#endif
> struct df_ref *first_def = df_bb_regno_first_def_find (g->bb, regno);
>
> gcc_assert (last_def_node);