From 0c28944fc0afabc39bf675723e2021e306973624 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 18 Feb 2015 13:12:50 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/lto-streamer.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbc68b3de42..6cf817bde22 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-18 Martin Liska + + * lto-streamer.c (lto_streamer_init): Encapsulate + streamer_check_handled_ts_structures with checking macro. + 2015-02-18 Jakub Jelinek PR ipa/65087 diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c index 836dce98d9f..542a81358e6 100644 --- a/gcc/lto-streamer.c +++ b/gcc/lto-streamer.c @@ -319,11 +319,13 @@ static hash_table *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 (31); -- 2.30.2