aboutsummaryrefslogtreecommitdiff
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2009-01-19 17:17:14 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2009-01-19 17:17:14 +0000
commitf68211cd04d4083f4c12542f1b56ac09e995f9fd (patch)
tree636c6c6ae7b7900c93b28174728969e1fb0ea8bc /gcc/regclass.c
parentbe12c33aa43aa2fe86886f4c9e4bb288e7ca7678 (diff)
downloadgcc-f68211cd04d4083f4c12542f1b56ac09e995f9fd.zip
gcc-f68211cd04d4083f4c12542f1b56ac09e995f9fd.tar.gz
gcc-f68211cd04d4083f4c12542f1b56ac09e995f9fd.tar.bz2
re PR c/38869 (valgrind find problem with -O -mtune=generic)
2009-01-19 Vladimir Makarov <vmakarov@redhat.com> PR c/38869 * rtl.h (reinit_regs): New prototype. * regclass.c: Include ira.h. (reinit_regs): New. * Makefile.in (regclass.o): Add ira.h. * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs. From-SVN: r143498
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index f31ccd1..2f665d8 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -49,6 +49,7 @@ along with GCC; see the file COPYING3. If not see
#include "target.h"
#include "tree-pass.h"
#include "df.h"
+#include "ira.h"
/* Maximum register number used in this function, plus one. */
@@ -740,6 +741,17 @@ init_regs (void)
init_reg_autoinc ();
}
+/* The same as previous function plus initializing IRA if it is
+ necessary. */
+void
+reinit_regs (void)
+{
+ init_regs ();
+
+ if (flag_ira)
+ ira_init ();
+}
+
/* Initialize some fake stack-frame MEM references for use in
memory_move_secondary_cost. */