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: Proposed location for variable sizes etc in ARRAY_REF and COMPONENT_REF


    > I also was going to suggest PR8361. ;-)  Is anybody working on fixing
    > this?

    Yes, Kenner is looking at it right now.

Well, the following "fixes" it, but I have no idea if it's really
right or not.

RTH?

*** gimplify.c	23 Jun 2004 07:43:19 -0000	2.23
--- gimplify.c	23 Jun 2004 20:45:16 -0000
*************** voidify_wrapper_expr (tree wrapper, tree
*** 902,906 ****
  	}
        /* The C++ frontend already did this for us.  */
!       else if (TREE_CODE (*p) == INIT_EXPR)
  	temp = TREE_OPERAND (*p, 0);
        /* If we're returning a dereference, move the dereference
--- 829,834 ----
  	}
        /* The C++ frontend already did this for us.  */
!       else if (TREE_CODE (*p) == INIT_EXPR
! 	       || TREE_CODE (*p) == TARGET_EXPR)
  	temp = TREE_OPERAND (*p, 0);
        /* If we're returning a dereference, move the dereference


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