[Patch,Fortran] Mark if(bounds_check) as unlikely in libgfortran

Thomas Koenig tkoenig@netcologne.de
Sat Sep 6 13:52:00 GMT 2008


On Sat, 2008-08-16 at 23:25 +0200, Tobias Burnus wrote:
> Hello,
> 
> this is a minimal patch using builtin_expect to mark the 
> "if(bounds_check)" sections in libgfortran as unlikely. Following 
> Andrew's suggestion I decided to introduce macros for those (stolen from 
> the Linux kernel).
> 
> Additionally, I improved the compile-time checking by adding a 
> __attribute__ (format(...)) to libgfortran.h
> 
> Bootstrapped and testsuited-checked on x86-64-linux.
> OK for the trunk?
> 

Hi Tobias,

I just realized that this patch had never been approved.

OK for trunk, and thanks for the patch!

	Thomas



More information about the Fortran mailing list