This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix comment describing ELIMINABLE_REGS in i386.h
- To: gcc-patches at gcc dot gnu dot org
- Subject: Fix comment describing ELIMINABLE_REGS in i386.h
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Fri, 5 May 2000 17:20:52 -0700
Hi Guys,
The comment describing ELIMINABLE_REGS in config/i386/i386.h is
incorrect. It says that there are three registers that can be
eliminated but in fact there are only two (the frame pointer and the
arg pointer). The patch below is a rewording of the comment to
fix this problem.
OK to apply ?
Cheers
Nick
2000-05-05 Nick Clifton <nickc@cygnus.com>
* config/i386/i386.h (ELIMINABLE_REGS): Fix comment.
Index: config/i386/i386.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.h,v
retrieving revision 1.115
diff -p -r1.115 i386.h
*** i386.h 2000/04/28 01:54:53 1.115
--- i386.h 2000/05/06 00:17:41
*************** pop{l} %0" \
*** 1465,1474 ****
followed by "to". Eliminations of the same "from" register are listed
in order of preference.
! We have three registers that can be eliminated on the i386. First, the
! hard frame pointer register can often be eliminated in favor of the stack
! pointer register. Secondly, the argument and frame pointer register can
! always be eliminated; They are replaced with either the stack or frame pointer. */
#define ELIMINABLE_REGS \
{{ ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \
--- 1465,1475 ----
followed by "to". Eliminations of the same "from" register are listed
in order of preference.
! There are two registers that can always be eliminated on the i386.
! The frame pointer and the arg pointer can be replaced by either the
! hard frame pointer or to the stack pointer, depending upon the
! circumstances. The hard frame pointer is not used before reload and
! so it is not eligible for elimination. */
#define ELIMINABLE_REGS \
{{ ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \