r237524 - in /trunk/gcc: ChangeLog fortran/Chan...

marxin@gcc.gnu.org marxin@gcc.gnu.org
Thu Jun 16 12:21:00 GMT 2016


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



More information about the Gcc-cvs mailing list