* [vta] remove use of C++ keyword `new´ introduced in earlier vta patches
@ 2008-10-29 20:03 Alexandre Oliva
0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2008-10-29 20:03 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 39 bytes --]
$SUBJECT says it all. Checking in...
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: vta-c++-compat.patch --]
[-- Type: text/x-patch, Size: 1525 bytes --]
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;
}
}
}
[-- Attachment #3: Type: text/plain, Size: 257 bytes --]
--
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}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-29 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-29 20:03 [vta] remove use of C++ keyword `new´ introduced in earlier vta patches Alexandre Oliva
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).