aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-02-18 13:12:50 +0100
committerMartin Liska <marxin@gcc.gnu.org>2015-02-18 12:12:50 +0000
commit0c28944fc0afabc39bf675723e2021e306973624 (patch)
treeb1cc38325ebe4455b76993668e3ccb58c2be9dd1 /gcc/lto-streamer.c
parent4ab26ee0222cc447455f32ef755a7c17da3b001f (diff)
downloadgcc-0c28944fc0afabc39bf675723e2021e306973624.zip
gcc-0c28944fc0afabc39bf675723e2021e306973624.tar.gz
gcc-0c28944fc0afabc39bf675723e2021e306973624.tar.bz2
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
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r--gcc/lto-streamer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index 836dce9..542a813 100644
--- a/gcc/lto-streamer.c
+++ b/gcc/lto-streamer.c
@@ -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);