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]

Fix to PR/16131 and some regressions


This fixes the above PR and a number of G++ regression.  I know my patch
was the cause of PR/16131, but I don't know what caused the regressions
since I didn't see these failures on Monday.

Tested on x86_64-linux-gnu.

2004-06-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	PR/16131
	* gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR.

*** gimplify.c	25 Jun 2004 02:00:16 -0000	2.29
--- gimplify.c	25 Jun 2004 03:38:50 -0000
*************** voidify_wrapper_expr (tree wrapper, tree
*** 829,833 ****
  	}
        /* 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]