On 11/12/2015 12:29 PM, Richard Biener wrote:
+static bool opts_obstack_initialized = false;
+
+/* Initialize opts_obstack if not initialized. */
+
+void
+init_opts_obstack (void)
+{
+ if (!opts_obstack_initialized)
+ {
+ opts_obstack_initialized = true;
+ gcc_obstack_init (&opts_obstack);
you can move the static global to function scope.
Also, why bother with it? Why not simply arrange to call the function
just once at startup?
It's not clear from the submission why this is done and how it relates
to the i386.c hunk.
Bernd