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 23402, ICE with zero sized structs


On Thu, Aug 25, 2005 at 01:14:54AM -0700, Richard Henderson wrote:
> On Thu, Aug 25, 2005 at 02:29:38PM +0930, Alan Modra wrote:
> > -  if (zero_sized_type (type))
> > +  if (!TREE_SIDE_EFFECTS (*from_p) && zero_sized_type (type))
> >      {
> >        *expr_p = NULL_TREE;
> 
> You can write
> 
>   if (zero_sized_type (type))
>     {
>       *expr_p = (TREE_SIDE_EFFECTS (*from_p) ? *from_p : NULL);

Um, this variation results in
va-arg-22.c:46: internal compiler error: in gimplify_expr, at gimplify.c:4441

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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