diff options
author | Jan Hubicka <jh@suse.cz> | 2020-05-25 14:41:33 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-05-25 14:41:33 +0200 |
commit | a746f952abb78af9db28a7f3bce442e113877c9c (patch) | |
tree | b7eb8047093027d31c4d5f5becab23088c81df83 /gcc/lto-streamer.h | |
parent | 67bfbda18f4e6d0d30ad8f8790f1d0d4653131ed (diff) | |
download | gcc-a746f952abb78af9db28a7f3bce442e113877c9c.zip gcc-a746f952abb78af9db28a7f3bce442e113877c9c.tar.gz gcc-a746f952abb78af9db28a7f3bce442e113877c9c.tar.bz2 |
Do not stream redundant stuff
as discussed on IRC this adds knob to disable stuff we stream "just for fun"
(or to make it easier to debug streamer desychnonization).
Te size of .o files in gcc subdirectory is reduced form 506MB to 492MB
gcc/
* lto-streamer-out.c (lto_output_tree): Add streamer_debugging check.
* lto-streamer.h (streamer_debugging): New constant
* tree-streamer-in.c (streamer_read_tree_bitfields): Add
streamer_debugging check.
(streamer_get_pickled_tree): Likewise.
* tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r-- | gcc/lto-streamer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index a466fb8..93da3c6 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -125,6 +125,9 @@ along with GCC; see the file COPYING3. If not see typedef unsigned char lto_decl_flags_t; +/* Stream additional data to LTO object files to make it easier to debug + streaming code. This changes object files. */ +static const bool streamer_debugging = false; /* Tags representing the various IL objects written to the bytecode file (GIMPLE statements, basic blocks, EH regions, tree nodes, etc). |