diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-11-15 17:53:51 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-11-15 16:53:51 +0000 |
commit | ca9a04dab65aa459a69364376e4fd6188f5f78a3 (patch) | |
tree | 76e6169e67fc97082991b66e36d3b94491a938ca /gcc/lto-streamer-out.c | |
parent | 64ec531860ae0632d2e02cf545e1b2f99aa32b44 (diff) | |
download | gcc-ca9a04dab65aa459a69364376e4fd6188f5f78a3.zip gcc-ca9a04dab65aa459a69364376e4fd6188f5f78a3.tar.gz gcc-ca9a04dab65aa459a69364376e4fd6188f5f78a3.tar.bz2 |
lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
* lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
* lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
* optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
* opth-gen.awk: Add prototype of cl_optimization_hash.
* tree-streamer-in.c (unpack_ts_optimization): Remove.
(streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
* tree-streamer-out.c (pack_ts_optimization): Remove.
(streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
From-SVN: r217607
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index f376a30..ab06727 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -948,7 +948,7 @@ hash_tree (struct streamer_tree_cache_d *cache, hash_map<tree, hashval_t> *map, hstate.add_wide_int (cl_target_option_hash (TREE_TARGET_OPTION (t))); if (CODE_CONTAINS_STRUCT (code, TS_OPTIMIZATION)) - hstate.add (t, sizeof (struct cl_optimization)); + hstate.add_wide_int (cl_optimization_hash (TREE_OPTIMIZATION (t))); if (CODE_CONTAINS_STRUCT (code, TS_IDENTIFIER)) hstate.merge_hash (IDENTIFIER_HASH_VALUE (t)); |