From 0af455a5df6fe83f1ebab8e7ad4abd56f07847bf Mon Sep 17 00:00:00 2001 From: kazu Date: Wed, 3 Jan 2007 06:44:38 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120383 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 8 ++++++++ gcc/config/i386/i386.h | 19 ++----------------- gcc/config/i386/i386.md | 4 ++-- 3 files changed, 12 insertions(+), 19 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3716690..23c6098 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2007-01-03 Kazu Hirata + + * 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. + 2006-01-03 Zdenek Dvorak * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify. diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 5e5678f..7ccecaf 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1,6 +1,7 @@ /* Definitions of target machine for GCC for IA-32. Copyright (C) 1988, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. + 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, + Inc. This file is part of GCC. @@ -1270,8 +1271,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 +1629,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 +1743,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 +2087,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. */ diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 10c8746..7066c63 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -1,6 +1,6 @@ ;; GCC machine description for IA-32 and x86-64. ;; Copyright (C) 1988, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -;; 2001, 2002, 2003, 2004, 2005, 2006 +;; 2001, 2002, 2003, 2004, 2005, 2006, 2007 ;; Free Software Foundation, Inc. ;; Mostly by William Schelter. ;; x86_64 support added by Jan Hubicka @@ -20813,7 +20813,7 @@ } (*targetm.asm_out.internal_label) (asm_out_file, \"L\", CODE_LABEL_NUMBER (operands[3])); - RET; + return \"\"; } " [(set_attr "type" "other") -- 2.7.4