Commit 0c28944f by Martin Liska Committed by Martin Liska

Add checking macro within lto_streamer_init.

	* lto-streamer.c (lto_streamer_init): Encapsulate
	streamer_check_handled_ts_structures with checking macro.

From-SVN: r220787
parent 4ab26ee0
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> 2015-02-18 Jakub Jelinek <jakub@redhat.com>
PR ipa/65087 PR ipa/65087
......
...@@ -319,11 +319,13 @@ static hash_table<tree_hash_entry> *tree_htab; ...@@ -319,11 +319,13 @@ static hash_table<tree_hash_entry> *tree_htab;
void void
lto_streamer_init (void) lto_streamer_init (void)
{ {
#ifdef ENABLE_CHECKING
/* Check that all the TS_* handled by the reader and writer routines /* Check that all the TS_* handled by the reader and writer routines
match exactly the structures defined in treestruct.def. When a match exactly the structures defined in treestruct.def. When a
new TS_* astructure is added, the streamer should be updated to new TS_* astructure is added, the streamer should be updated to
handle it. */ handle it. */
streamer_check_handled_ts_structures (); streamer_check_handled_ts_structures ();
#endif
#ifdef LTO_STREAMER_DEBUG #ifdef LTO_STREAMER_DEBUG
tree_htab = new hash_table<tree_hash_entry> (31); tree_htab = new hash_table<tree_hash_entry> (31);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment