Concretize gimple_call_set_fn
commit4017cb51ed960c7fb57cf8289accea31f5a72ab3
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 20 Dec 2013 22:50:21 +0000 (20 17:50 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Oct 2014 21:25:32 +0000 (24 17:25 -0400)
tree6fc68fee0730778d3df7bf33c589e8afeec48850
parentfb7e4a7104cf5f34827a9716d3fe41bf32cc3518
Concretize gimple_call_set_fn

This corresponds to:
  [PATCH 82/89] Concretize gimple_call_set_fntype
  https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01187.html
from the original 89-patch kit

That earlier patch was approved by Jeff:
> This is fine once prerequisites have gone in.
in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00840.html

gcc/
* gimple.h (gimple_call_set_fn): Require a gimple_call.

* trans-mem.c (dump_tm_memopt_transform): Likewise.
(tm_memopt_transform_blocks): Add checked casts to gimple_call in
suites guarded by is_tm_simple_{load|store}, which enforce that
the statement must be a GIMPLE_CALL; use this when invoking
dump_tm_memopt_transform.
gcc/ChangeLog.gimple-classes
gcc/gimple.h
gcc/trans-mem.c