This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] i386: Remove unused macros.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rth at redhat dot com
- Date: Sat, 23 Dec 2006 06:13:11 -0800
- Subject: [patch] i386: Remove unused macros.
Hi,
Attached is a patch to remove unused macros.
Strictly speaking, RET is used once, but it's more trouble than it is
worth.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2006-12-23 Kazu Hirata <kazu@codesourcery.com>
* config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
RET, AT_SP): Remove.
* config/i386/i386.md (*sse_prologue_save_insn): Use return
instead of RET.
Index: config/i386/i386.h
===================================================================
--- config/i386/i386.h (revision 120165)
+++ config/i386/i386.h (working copy)
@@ -1270,8 +1270,6 @@ enum reg_class
#define MMX_REGNO_P(N) IN_RANGE ((N), FIRST_MMX_REG, LAST_MMX_REG)
#define STACK_REG_P(XOP) (REG_P (XOP) && STACK_REGNO_P (REGNO (XOP)))
-#define NON_STACK_REG_P(XOP) \
- (REG_P (XOP) && ! STACK_REGNO_P (REGNO (XOP)))
#define STACK_REGNO_P(N) IN_RANGE ((N), FIRST_STACK_REG, LAST_STACK_REG)
#define STACK_TOP_P(XOP) (REG_P (XOP) && REGNO (XOP) == FIRST_STACK_REG)
@@ -1630,11 +1628,6 @@ typedef struct ix86_args {
|| (REGNO) == FRAME_POINTER_REGNUM \
|| GENERAL_REGNO_P ((unsigned) reg_renumber[(REGNO)]))
-#define REGNO_OK_FOR_SIREG_P(REGNO) \
- ((REGNO) == 4 || reg_renumber[(REGNO)] == 4)
-#define REGNO_OK_FOR_DIREG_P(REGNO) \
- ((REGNO) == 5 || reg_renumber[(REGNO)] == 5)
-
/* The macros REG_OK_FOR..._P assume that the arg is a REG rtx
and check its validity for a certain class.
We have two alternate definitions for each of them.
@@ -1749,8 +1742,6 @@ do { \
goto WIN; \
} while (0)
-#define REWRITE_ADDRESS(X) rewrite_address (X)
-
/* Nonzero if the constant value X is a legitimate general operand
when generating PIC code. It is given that flag_pic is on and
that X satisfies CONSTANT_P or is a CONST_DOUBLE. */
@@ -2095,13 +2086,6 @@ do { \
if (! output_addr_const_extra (FILE, (X))) \
goto FAIL; \
} while (0);
-
-/* a letter which is not needed by the normal asm syntax, which
- we can use for operand syntax in the extended asm */
-
-#define ASM_OPERAND_LETTER '#'
-#define RET return ""
-#define AT_SP(MODE) (gen_rtx_MEM ((MODE), stack_pointer_rtx))
/* Which processor to schedule for. The cpu attribute defines a list that
mirrors this list, so changes to i386.md must be made at the same time. */
Index: config/i386/i386.md
===================================================================
--- config/i386/i386.md (revision 120165)
+++ config/i386/i386.md (working copy)
@@ -20813,7 +20813,7 @@ (define_insn "*sse_prologue_save_insn"
}
(*targetm.asm_out.internal_label) (asm_out_file, \"L\",
CODE_LABEL_NUMBER (operands[3]));
- RET;
+ return \"\";
}
"
[(set_attr "type" "other")