Fix code emission for FAIL_ALLOC predictor
authorMartin Liska <mliska@suse.cz>
Thu, 16 Jun 2016 12:21:55 +0000 (14:21 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 16 Jun 2016 12:21:55 +0000 (12:21 +0000)
commit7f7fa20fdd7f13844868541c57063327bf3bec51
treeb131ad95625b4a3221ddf076bbe3d9629b80aa69
parent73170f9e46783e03f96133d9ee96e96f8cd4fd38
Fix code emission for FAIL_ALLOC predictor

* predict.def: Define a new predictor.
* trans-array.c (gfc_array_allocate): Do not generate expect
stmt.
* trans.c (gfc_allocate_using_malloc): Properly set FAIL_ALLOC
predictor for malloc return value.
(gfc_allocate_allocatable): Use REALLOC predictor instead of
FAIL_ALLOC.
(gfc_deallocate_with_status): Likewise.

From-SVN: r237524
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans.c
gcc/predict.def