This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r237524 - in /trunk/gcc: ChangeLog fortran/Chan...
- From: marxin at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 16 Jun 2016 12:21:56 -0000
- Subject: r237524 - in /trunk/gcc: ChangeLog fortran/Chan...
Author: marxin
Date: Thu Jun 16 12:21:55 2016
New Revision: 237524
URL: https://gcc.gnu.org/viewcvs?rev=237524&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/fortran/trans.c
trunk/gcc/predict.def