This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Accidental code duplication
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Accidental code duplication
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Sun, 28 Mar 1999 15:23:05 -0700
- Reply-To: law at cygnus dot com
This removes some duplicated code Craig found in reload1.c
* reload1.c (reload): Remove accidental code duplication.
Index: reload1.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/reload1.c,v
retrieving revision 1.141
diff -c -3 -p -r1.141 reload1.c
*** reload1.c 1999/03/24 13:44:58 1.141
--- reload1.c 1999/03/28 22:32:32
*************** reload (first, global, dumpfile)
*** 1181,1200 ****
if (flag_stack_check && ! STACK_CHECK_BUILTIN)
{
HOST_WIDE_INT size = get_frame_size () + STACK_CHECK_FIXED_FRAME_SIZE;
-
- for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
- if (regs_ever_live[i] && ! fixed_regs[i] && call_used_regs[i])
- size += UNITS_PER_WORD;
-
- if (size > STACK_CHECK_MAX_FRAME_SIZE)
- warning ("frame size too large for reliable stack checking");
- }
-
- /* If we are doing stack checking, give a warning if this function's
- frame size is larger than we expect. */
- if (flag_stack_check && ! STACK_CHECK_BUILTIN)
- {
- HOST_WIDE_INT size = get_frame_size () + STACK_CHECK_FIXED_FRAME_SIZE;
static int verbose_warned = 0;
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
--- 1181,1186 ----