Commit 13f447a3 by Richard Biener Committed by Richard Biener

hash-table.c: Include bconfig.h if building for the host.

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
parent 11915f2e
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> 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Law <law@redhat.com> Jeff Law <law@redhat.com>
...@@ -22,7 +22,11 @@ along with GCC; see the file COPYING3. If not see ...@@ -22,7 +22,11 @@ along with GCC; see the file COPYING3. If not see
/* This file implements a typed hash table. /* This file implements a typed hash table.
The implementation borrows from libiberty's hashtab. */ The implementation borrows from libiberty's hashtab. */
#ifdef GENERATOR_FILE
#include "bconfig.h"
#else
#include "config.h" #include "config.h"
#endif
#include "system.h" #include "system.h"
#include "coretypes.h" #include "coretypes.h"
#include "hash-table.h" #include "hash-table.h"
......
...@@ -196,7 +196,14 @@ along with GCC; see the file COPYING3. If not see ...@@ -196,7 +196,14 @@ along with GCC; see the file COPYING3. If not see
#ifndef TYPED_HASHTAB_H #ifndef TYPED_HASHTAB_H
#define TYPED_HASHTAB_H #define TYPED_HASHTAB_H
#ifndef GENERATOR_FILE
#include "ggc.h" #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 "hashtab.h"
#include <new> #include <new>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment