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]

[vta] remove use of C++ keyword `new introduced in earlier vta patches


$SUBJECT says it all.  Checking in...

for gcc/ChangeLog.vta
from  Alexandre Oliva  <aoliva@redhat.com>

	* combine.c (reg_subword_p): Don't use C++ keyword new.

Index: gcc/combine.c
===================================================================
--- gcc/combine.c.orig	2008-10-10 09:31:06.000000000 -0300
+++ gcc/combine.c	2008-10-15 05:07:24.000000000 -0300
@@ -2166,7 +2166,7 @@ reg_subword_p (rtx x, rtx reg)
 static rtx
 cleanup_auto_inc_dec (rtx src, bool after, enum machine_mode mem_mode)
 {
-  rtx x = src, new, old;
+  rtx x = src, n, o;
   const RTX_CODE code = GET_CODE (x);
   int i;
   const char *fmt;
@@ -2207,13 +2207,13 @@ cleanup_auto_inc_dec (rtx src, bool afte
   for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
     if (fmt[i] == 'e')
       {
-	old = XEXP (x, i);
-	new = cleanup_auto_inc_dec (old, after, mem_mode);
-	if (old != new)
+	o = XEXP (x, i);
+	n = cleanup_auto_inc_dec (o, after, mem_mode);
+	if (o != n)
 	  {
 	    if (x == src)
 	      x = shallow_copy_rtx (x);
-	    XEXP (x, i) = new;
+	    XEXP (x, i) = n;
 	  }
       }
     else if (fmt[i] == 'E')
@@ -2221,13 +2221,13 @@ cleanup_auto_inc_dec (rtx src, bool afte
 	int j;
 	for (j = 0; j < XVECLEN (x, i); j++)
 	  {
-	    old = XVECEXP (x, i, j);
-	    new = cleanup_auto_inc_dec (old, after, mem_mode);
-	    if (old != new)
+	    o = XVECEXP (x, i, j);
+	    n = cleanup_auto_inc_dec (o, after, mem_mode);
+	    if (o != n)
 	      {
 		if (x == src)
 		  x = shallow_copy_rtx (x);
-		XVECEXP (x, i, j) = new;
+		XVECEXP (x, i, j) = n;
 	      }
 	  }
       }
-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}
FSFLA Board Member       ÂSÃ Libre! => http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}

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