Fix code emission for FAIL_ALLOC predictor
commit9f478225c8b7c0a7b18468e8b1e3dd8c62c002fc
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jun 2016 12:21:55 +0000 (16 12:21 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jun 2016 12:21:55 +0000 (16 12:21 +0000)
treeb131ad95625b4a3221ddf076bbe3d9629b80aa69
parentf5cc2579bce72277386478933b97011d5417519a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@237524 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans.c
gcc/predict.def