This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Remove unused flag in genattrtab
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Apr 2005 09:26:21 +0200
- Subject: Re: [PATCH] Remove unused flag in genattrtab
Paolo Bonzini wrote:
The ATTR_EQ_ATTR_P flag is unused since I removed define_function_unit
in July 2004; it had escaped then, it can be removed now.
Bootstrapped/regtested powerpc-apple-darwin7.8.0, Ok for mainline?
And here is the patch...
Paolo
2005-05-15 Paolo Bonzini <bonzini@gnu.org>
* genattrtab.c (ATTR_EQ_ATTR_P): Remove.
(attr_copy_rtx): Do not use it.
Index: genattrtab.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/genattrtab.c,v
retrieving revision 1.158
diff -p -u -r1.158 genattrtab.c
--- genattrtab.c 13 Apr 2005 14:39:27 -0000 1.158
+++ genattrtab.c 15 Apr 2005 07:23:49 -0000
@@ -90,14 +90,11 @@ Software Foundation, 59 Temple Place - S
`in_struct' (ATTR_CURR_SIMPLIFIED_P): This rtx is fully simplified
for the insn code currently being processed (see optimize_attrs).
`return_val' (ATTR_PERMANENT_P): This rtx is permanent and unique
- (see attr_rtx).
- `volatil' (ATTR_EQ_ATTR_P): During simplify_by_exploding the value of an
- EQ_ATTR rtx is true if !volatil and false if volatil. */
+ (see attr_rtx). */
#define ATTR_IND_SIMPLIFIED_P(RTX) (RTX_FLAG((RTX), unchanging))
#define ATTR_CURR_SIMPLIFIED_P(RTX) (RTX_FLAG((RTX), in_struct))
#define ATTR_PERMANENT_P(RTX) (RTX_FLAG((RTX), return_val))
-#define ATTR_EQ_ATTR_P(RTX) (RTX_FLAG((RTX), volatil))
#if 0
#define strcmp_check(S1, S2) ((S1) == (S2) \
@@ -731,7 +728,6 @@ attr_copy_rtx (rtx orig)
ATTR_IND_SIMPLIFIED_P (copy) = ATTR_IND_SIMPLIFIED_P (orig);
ATTR_CURR_SIMPLIFIED_P (copy) = ATTR_CURR_SIMPLIFIED_P (orig);
ATTR_PERMANENT_P (copy) = ATTR_PERMANENT_P (orig);
- ATTR_EQ_ATTR_P (copy) = ATTR_EQ_ATTR_P (orig);
format_ptr = GET_RTX_FORMAT (GET_CODE (copy));