aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-streamer-out.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2011-11-22 18:37:16 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2011-11-22 18:37:16 +0000
commit57ac2606c472c30be27975f137f36b81d0824af8 (patch)
treed9c627efeb62217e0942238cce58b0177ffc0e93 /gcc/gimple-streamer-out.c
parent73cd7644a7873b52c4a5fd81e20ec05fbfee8274 (diff)
downloadgcc-57ac2606c472c30be27975f137f36b81d0824af8.zip
gcc-57ac2606c472c30be27975f137f36b81d0824af8.tar.gz
gcc-57ac2606c472c30be27975f137f36b81d0824af8.tar.bz2
opts.c (finish_options): Do not fail for -fgnu-tm.
* opts.c (finish_options): Do not fail for -fgnu-tm. * gimple-streamer-out.c (output_gimple_stmt): Handle GIMPLE_TRANSACTION. * gimple-streamer-in.c (input_gimple_stmt): Same. * lto-cgraph.c (input_overwrite_node): Read tm_clone bit. (lto_output_node): Write tm_clone bit. lto/ * lto-lang.c (lto_attribute_table): Handle transaction_pure. (handle_transaction_pure_attribute): New. From-SVN: r181629
Diffstat (limited to 'gcc/gimple-streamer-out.c')
-rw-r--r--gcc/gimple-streamer-out.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gimple-streamer-out.c b/gcc/gimple-streamer-out.c
index 78ed281..a7e73fa 100644
--- a/gcc/gimple-streamer-out.c
+++ b/gcc/gimple-streamer-out.c
@@ -151,6 +151,11 @@ output_gimple_stmt (struct output_block *ob, gimple stmt)
case GIMPLE_PREDICT:
break;
+ case GIMPLE_TRANSACTION:
+ gcc_assert (gimple_transaction_body (stmt) == NULL);
+ stream_write_tree (ob, gimple_transaction_label (stmt), true);
+ break;
+
default:
gcc_unreachable ();
}