Fix build for targets not defining EXTRA_SPECS.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 25 Aug 2015 21:20:49 +0000 (22:20 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 25 Aug 2015 21:20:49 +0000 (22:20 +0100)
* gcc.c (driver::finalize): Only assign to extra_specs if
[EXTRA_SPECS].

From-SVN: r227194

gcc/ChangeLog
gcc/gcc.c

index fd4ade37af3fbde214e9add4b4f18e8697deca9d..bb64b8bf4f3e057e5fc03119a7e62c85628722a7 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-25  Joseph Myers  <joseph@codesourcery.com>
+
+       * gcc.c (driver::finalize): Only assign to extra_specs if
+       [EXTRA_SPECS].
+
 2015-08-25  Marek Polacek  <polacek@redhat.com>
 
        PR middle-end/67330
index 4c37edcedcc2cf93919d626ef6338a4d93d80db5..86c24192aabd4cfdaac99a785294272a85599aa9 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -9813,7 +9813,9 @@ driver::finalize ()
        }
       *(sl->ptr_spec) = sl->default_ptr;
     }
+#ifdef EXTRA_SPECS
   extra_specs = NULL;
+#endif
 
   processing_spec_function = 0;