aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohan Embar <gnustuff@thisiscool.com>2004-09-11 19:03:23 +0000
committerMohan Embar <membar@gcc.gnu.org>2004-09-11 19:03:23 +0000
commit547d057d11bf07b6592e62348c55aca85e280549 (patch)
treee6bc97fc78e5f15e52572cdac4344f823c8034b6
parenta17ea89bb15f7e9668860609b8953e94b69d0763 (diff)
downloadgcc-547d057d11bf07b6592e62348c55aca85e280549.zip
gcc-547d057d11bf07b6592e62348c55aca85e280549.tar.gz
gcc-547d057d11bf07b6592e62348c55aca85e280549.tar.bz2
ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE, "config.h" if not.
* ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE, "config.h" if not. From-SVN: r87358
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ggc-none.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 57e3817..d584ea6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
+
+ * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
+ "config.h" if not.
+
2004-09-11 Jakub Jelinek <jakub@redhat.com>
* tree-ssa-alias.c (collect_points_to_info_r): Handle
diff --git a/gcc/ggc-none.c b/gcc/ggc-none.c
index 2e657db..0cc0c4a 100644
--- a/gcc/ggc-none.c
+++ b/gcc/ggc-none.c
@@ -19,11 +19,16 @@
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-/* This version is used by the gen* programs, where we don't really
- need GC at all. This prevents problems with pulling in all the
- tree stuff. */
+/* This version is used by the gen* programs and certain language-specific
+ targets (such as java), where we don't really need GC at all.
+ This prevents problems with pulling in all the tree stuff. */
+#ifdef GENERATOR_FILE
#include "bconfig.h"
+#else
+#include "config.h"
+#endif
+
#include "system.h"
#include "coretypes.h"
#include "ggc.h"