hash-table.c: Include bconfig.h if building for the host.
authorRichard Biener <rguenther@suse.de>
Wed, 15 Oct 2014 09:55:19 +0000 (09:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 Oct 2014 09:55:19 +0000 (09:55 +0000)
2014-10-15  Richard Biener  <rguenther@suse.de>

* hash-table.c: Include bconfig.h if building for the host.
* hash-table.h: Do not include ggc.h on the host but just declare
a few ggc allocation templates.

From-SVN: r216246

gcc/ChangeLog
gcc/hash-table.c
gcc/hash-table.h

index dc672ca..269ee36 100644 (file)
@@ -1,3 +1,9 @@
+2014-10-15  Richard Biener  <rguenther@suse.de>
+
+       * hash-table.c: Include bconfig.h if building for the host.
+       * hash-table.h: Do not include ggc.h on the host but just declare
+       a few ggc allocation templates.
+
 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
            Jeff Law  <law@redhat.com>
 
index 749a118..3dfde6d 100644 (file)
@@ -22,7 +22,11 @@ along with GCC; see the file COPYING3.  If not see
 /* This file implements a typed hash table.
    The implementation borrows from libiberty's hashtab.  */
 
+#ifdef GENERATOR_FILE
+#include "bconfig.h"
+#else
 #include "config.h"
+#endif
 #include "system.h"
 #include "coretypes.h"
 #include "hash-table.h"
index 2493f2e..6df32a2 100644 (file)
@@ -196,7 +196,14 @@ along with GCC; see the file COPYING3.  If not see
 #ifndef TYPED_HASHTAB_H
 #define TYPED_HASHTAB_H
 
+#ifndef GENERATOR_FILE
 #include "ggc.h"
+#else
+template <typename T>
+T *ggc_cleared_vec_alloc (size_t);
+template <typename T>
+T *ggc_alloc ();
+#endif
 #include "hashtab.h"
 #include <new>