Initialize empty_string in ggc-simple.
authorBernd Schmidt <bernds@cygnus.co.uk>
Thu, 7 Oct 1999 18:28:15 +0000 (18:28 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Thu, 7 Oct 1999 18:28:15 +0000 (18:28 +0000)
From-SVN: r29856

gcc/ChangeLog
gcc/ggc-simple.c

index edbe1a902314178b5711daa96519d0eda121e295..cc4abc1bb2a2929d15a5fa8247a0e421517df190 100644 (file)
@@ -1,3 +1,7 @@
+Thu Oct  7 20:14:16 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
+
+       * ggc-simple.c (init_ggc): Set empty_string.
+
 Thu Oct  7 01:13:15 1999  Richard Henderson  <rth@cygnus.com>
 
        * configure.in: Detect mmap.  Add --with-gc=foo to select
index 841f50bf561f5470a4244d480b88ddade927aea5..74a4d5ad5f29fc72f2982af820a27fdb40c95908 100644 (file)
@@ -148,7 +148,7 @@ init_ggc PROTO ((void))
   setlinebuf (dump);
 #endif
 
-  ggc_alloc_string ("", 0);
+  empty_string = ggc_alloc_string ("", 0);
   ggc_add_string_root (&empty_string, 1);
 }