Add checking macro within lto_streamer_init.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Feb 2015 12:12:50 +0000 (12:12 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220787 138bc75d-0d04-0410-961f-82ee72b054a4

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);