aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-06-01 13:00:46 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-06-01 13:00:46 +0000
commit0641fa9781e8cd257e0113360bef387bcbfd4b96 (patch)
tree2563221c514417af4e907e265bbeb3950fc915eb /gcc/optabs.c
parentc4e09c3f8bbbeb122fec25eed43a8fbb9b51df88 (diff)
downloadgcc-0641fa9781e8cd257e0113360bef387bcbfd4b96.zip
gcc-0641fa9781e8cd257e0113360bef387bcbfd4b96.tar.gz
gcc-0641fa9781e8cd257e0113360bef387bcbfd4b96.tar.bz2
optabs.c (init_optabs): Guard all accesses to reinit.
2010-06-01 Richard Guenther <rguenther@suse.de> * optabs.c (init_optabs): Guard all accesses to reinit. * ipa-pure-const.c (propagate): Fix another typo. * opts.c (common_handle_option): Split assignment to bool. * c-opts.c (c_common_handle_option): Likewise. From-SVN: r160102
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index f753def..52b4cb9 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -6173,7 +6173,9 @@ void
init_optabs (void)
{
unsigned int i;
+#if GCC_VERSION >= 4000 && HAVE_DESIGNATED_INITIALIZERS
static bool reinit;
+#endif
libfunc_hash = htab_create_ggc (10, hash_libfunc, eq_libfunc, NULL);
/* Start by initializing all tables to contain CODE_FOR_nothing. */
@@ -6670,7 +6672,9 @@ init_optabs (void)
/* Allow the target to add more libcalls or rename some, etc. */
targetm.init_libfuncs ();
+#if GCC_VERSION >= 4000 && HAVE_DESIGNATED_INITIALIZERS
reinit = true;
+#endif
}
/* Print information about the current contents of the optabs on