public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][mem-ref2] Revert expand_debug_expr change
@ 2010-06-25 15:27 Richard Guenther
  0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2010-06-25 15:27 UTC (permalink / raw)
  To: gcc-patches


This reverts the other odd change noticed.  This was probably
fixed by the inliner fixes.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2010-06-25  Richard Guenther  <rguenther@suse.de>

	* cfgexpand.c (expand_debug_expr): Revert change.

Index: gcc/cfgexpand.c
===================================================================
--- gcc/cfgexpand.c	(revision 161369)
+++ gcc/cfgexpand.c	(working copy)
@@ -2504,31 +2504,10 @@ expand_debug_expr (tree exp)
 	HOST_WIDE_INT bitsize, bitpos;
 	tree offset;
 	int volatilep = 0;
-	tree *tp = &exp;
-	tree tem;
+	tree tem = get_inner_reference (exp, &bitsize, &bitpos, &offset,
+					&mode1, &unsignedp, &volatilep, false);
 	rtx orig_op0;
 
-	/* First fold un-folded results from CCP.  */
-	do
-	  {
-	    while (handled_component_p (*tp))
-	      tp = &TREE_OPERAND (*tp, 0);
-	    if (TREE_CODE (*tp) == MEM_REF)
-	      {
-		tem = fold_binary (MEM_REF, TREE_TYPE (*tp),
-				   TREE_OPERAND (*tp, 0),
-				   TREE_OPERAND (*tp, 1));
-		if (!tem)
-		  break;
-		*tp = tem;
-	      }
-	    else
-	      break;
-	  }
-	while (1);
-
-	tem = get_inner_reference (exp, &bitsize, &bitpos, &offset,
-				   &mode1, &unsignedp, &volatilep, false);
 	if (bitsize == 0)
 	  return NULL;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-25 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-25 15:27 [PATCH][mem-ref2] Revert expand_debug_expr change Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).