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 cbc68b3de42bf5d48a71dcda350a160351bba44a..6cf817bde229907b493b46ee7244e000a72a270c 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 836dce98d9f95c2965b0c5ef52d84718d950e512..542a81358e67b0ed7ac94cb38aeccd6c8ff9caf0 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);