Concretize gimple_call_set_fntype
commit18b76bf3e4224049d6ca6e70e04528e732d6704d
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 20 Dec 2013 23:11:34 +0000 (20 18:11 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Oct 2014 21:25:33 +0000 (24 17:25 -0400)
treee8760a61317228e9b9a8237e9d70c7d765026b81
parent4017cb51ed960c7fb57cf8289accea31f5a72ab3
Concretize gimple_call_set_fntype

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-fold.c (gimple_fold_builtin_sprintf_chk): Strengthen
local "stmt" from gimple to gimple_call.

* gimple.h (gimple_call_set_fntype): Require a gimple_call.

* omp-low.c (lower_omp_1): Add a new local gimple_call "call_stmt",
from a checked cast to gimple_call within the "case GIMPLE_CALL",
for the regions where "stmt" is not subsequently overwritten.
gcc/ChangeLog.gimple-classes
gcc/gimple-fold.c
gcc/gimple.h
gcc/omp-low.c