This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Fix PR tree-optimization/21839
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 31 May 2005 14:47:43 -0400
- Subject: Re: [PATCH]: Fix PR tree-optimization/21839
- References: <1117564962.19295.28.camel@dyn9002219143>
On Tue, May 31, 2005 at 02:42:42PM -0400, Daniel Berlin wrote:
> * gimplify.c (zero_sized_field_decl): New function.
> (gimplify_init_ctor_eval): Use it.
>
Looks OK to me, but I'd like rth or jason to take a look too.
This is too frontendy for me.
> Index: gimplify.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/gimplify.c,v
> retrieving revision 2.128
> diff -u -p -r2.128 gimplify.c
> --- gimplify.c 27 May 2005 17:23:29 -0000 2.128
> +++ gimplify.c 31 May 2005 18:15:26 -0000
> @@ -2505,6 +2505,14 @@ gimplify_init_ctor_eval_range (tree obje
> pre_p);
> }
>
> +/* Return true if ref is accessing a field that is zero sized. */
> +
s/if ref is accessing/if FDECL is a zero-sized field/