diff options
author | Martin Liska <mliska@suse.cz> | 2015-02-18 13:12:50 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-02-18 12:12:50 +0000 |
commit | 0c28944fc0afabc39bf675723e2021e306973624 (patch) | |
tree | b1cc38325ebe4455b76993668e3ccb58c2be9dd1 /gcc | |
parent | 4ab26ee0222cc447455f32ef755a7c17da3b001f (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto-streamer.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cbc68b3..6cf817b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 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); |