aboutsummaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-11-27 12:37:06 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-11-27 12:37:06 +0100
commitf1ed99cda55b3d5691511401fdbc89f935390e41 (patch)
tree027be71194c935739a93c1242312d1cda1ae72c6 /gcc/genemit.c
parente96fee3e91436d8183a5dd06223b37ae8393c928 (diff)
downloadgcc-f1ed99cda55b3d5691511401fdbc89f935390e41.zip
gcc-f1ed99cda55b3d5691511401fdbc89f935390e41.tar.gz
gcc-f1ed99cda55b3d5691511401fdbc89f935390e41.tar.bz2
i386.c (ix86_emit_restore_sse_regs_using_mov): Remove unused insn variable.
* config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove unused insn variable. * genemit.c (output_peephole2_scratches): Only declare and initialize _regs_allocated if it will be ever used. * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused succ_bb variable. (create_empty_loop_on_edge): Remove unused freq and cnt variables. * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record variable. From-SVN: r154701
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index d7cbd10..7ac3c91 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -1,6 +1,6 @@
/* Generate code from machine description to emit insns as rtl.
Copyright (C) 1987, 1988, 1991, 1994, 1995, 1997, 1998, 1999, 2000, 2001,
- 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+ 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
This file is part of GCC.
@@ -782,9 +782,7 @@ output_peephole2_scratches (rtx split)
{
int i;
int insn_nr = 0;
-
- printf (" HARD_REG_SET _regs_allocated;\n");
- printf (" CLEAR_HARD_REG_SET (_regs_allocated);\n");
+ bool first = true;
for (i = 0; i < XVECLEN (split, 0); i++)
{
@@ -803,6 +801,13 @@ output_peephole2_scratches (rtx split)
else if (GET_CODE (XVECEXP (split, 0, j)) != MATCH_SCRATCH)
cur_insn_nr++;
+ if (first)
+ {
+ printf (" HARD_REG_SET _regs_allocated;\n");
+ printf (" CLEAR_HARD_REG_SET (_regs_allocated);\n");
+ first = false;
+ }
+
printf (" if ((operands[%d] = peep2_find_free_register (%d, %d, \"%s\", %smode, &_regs_allocated)) == NULL_RTX)\n\
return NULL;\n",
XINT (elt, 0),