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]: Fix PR tree-optimization/21839


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/


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