From 0641fa9781e8cd257e0113360bef387bcbfd4b96 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 1 Jun 2010 13:00:46 +0000 Subject: optabs.c (init_optabs): Guard all accesses to reinit. 2010-06-01 Richard Guenther * 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 --- gcc/optabs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/optabs.c') 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 -- cgit v1.1