This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] driver: support state cleanup
- From: Joseph Myers <joseph at codesourcery dot com>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, <jit at gcc dot gnu dot org>
- Date: Tue, 25 Aug 2015 21:23:42 +0000
- Subject: Re: [PATCH 1/2] driver: support state cleanup
- Authentication-results: sourceware.org; auth=none
- References: <1438872724-18658-1-git-send-email-dmalcolm at redhat dot com> <1438872724-18658-2-git-send-email-dmalcolm at redhat dot com> <alpine dot DEB dot 2 dot 10 dot 1508251347380 dot 326 at digraph dot polyomino dot org dot uk> <1440534501 dot 31999 dot 12 dot camel at surprise>
I've committed as obvious this patch to fix a build failure this
introduced for targets not defining EXTRA_SPECS, in which case extra_specs
is not declared. (nvptx-none was the target for which I came across such
a failure.)
2015-08-25 Joseph Myers <joseph@codesourcery.com>
* gcc.c (driver::finalize): Only assign to extra_specs if
[EXTRA_SPECS].
Index: gcc.c
===================================================================
--- gcc.c (revision 227191)
+++ gcc.c (working copy)
@@ -9813,7 +9813,9 @@ driver::finalize ()
}
*(sl->ptr_spec) = sl->default_ptr;
}
+#ifdef EXTRA_SPECS
extra_specs = NULL;
+#endif
processing_spec_function = 0;
--
Joseph S. Myers
joseph@codesourcery.com