Add checking macro within lto_streamer_init.
authorMartin Liska <mliska@suse.cz>
Wed, 18 Feb 2015 12:12:50 +0000 (13:12 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 18 Feb 2015 12:12:50 +0000 (12:12 +0000)
* lto-streamer.c (lto_streamer_init): Encapsulate
streamer_check_handled_ts_structures with checking macro.

From-SVN: r220787

gcc/ChangeLog
gcc/lto-streamer.c

index cbc68b3..6cf817b 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-18  Martin Liska  <mliska@suse.cz>
+
+       * lto-streamer.c (lto_streamer_init): Encapsulate
+       streamer_check_handled_ts_structures with checking macro.
+
 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR ipa/65087
index 836dce9..542a813 100644 (file)
@@ -319,11 +319,13 @@ static hash_table<tree_hash_entry> *tree_htab;
 void
 lto_streamer_init (void)
 {
+#ifdef ENABLE_CHECKING
   /* Check that all the TS_* handled by the reader and writer routines
      match exactly the structures defined in treestruct.def.  When a
      new TS_* astructure is added, the streamer should be updated to
      handle it.  */
   streamer_check_handled_ts_structures ();
+#endif
 
 #ifdef LTO_STREAMER_DEBUG
   tree_htab = new hash_table<tree_hash_entry> (31);