https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79908

Bill Schmidt <wschmidt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |wschmidt at gcc dot 
gnu.org

--- Comment #2 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
Patch under test:

Index: gcc/tree-stdarg.c                                                        
===================================================================
--- gcc/tree-stdarg.c   (revision 246109)                                       
+++ gcc/tree-stdarg.c   (working copy)                                          
@@ -1057,7 +1057,7 @@ expand_ifn_va_arg_1 (function *fun)
               types.  */                                                       
            gimplify_assign (lhs, expr, &pre);                                  
          }                                                                     
-       else                                                                    
+       else if (is_gimple_addressable (expr))                                  
          gimplify_expr (&expr, &pre, &post, is_gimple_lvalue, fb_lvalue);      

        input_location = saved_location;

Reply via email to