[PATCH] Fix code emission for FAIL_ALLOC predictor

Jan Hubicka hubicka@ucw.cz
Wed Jun 15 11:52:00 GMT 2016


> Adding missing patch.
> 
> Martin

> >From 35ba97e0139d955c04e67ca157f8899bbb468bf1 Mon Sep 17 00:00:00 2001
> From: marxin <mliska@suse.cz>
> Date: Thu, 9 Jun 2016 17:51:38 +0200
> Subject: [PATCH] Fix code emission for FAIL_ALLOC predictor
> 
> gcc/ChangeLog:
> 
> 2016-06-13  Martin Liska  <mliska@suse.cz>
> 
> 	* predict.def: Define a new predictor.
> 
> gcc/fortran/ChangeLog:
> 
> 2016-06-13  Martin Liska  <mliska@suse.cz>
> 
> 	* 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.

OK, thanks!

Honza



More information about the Gcc-patches mailing list