[patch, libfortran] Mark some codepaths as likely/unlikely
Thomas Koenig
tkoenig@netcologne.de
Wed Oct 15 10:56:00 GMT 2008
Hello world,
here's a straightforward patch to mark some codepaths as
likely/unlikely, depending on two criteria:
- A codepath that reaches generate_error() is assumed to be unlikely
- A test for GFC_CONVERT_NATIVE is assumed to be likely
Regression-tested on i686-pc-linux-gnu. OK?
Thomas
2008-10-15 Thomas Koenig <tkoenig@gcc.gnu.org>
* io/file_pos.c (unformatted_backspace): Normal case is
GFC_CONVERT_NATIVE.
* io/transfer.c (read_sf): Mark paths leading to generate_error()
as unlikely.
(readl_block_form): Likewise.
(read_block_direct): Likewise.
(write_block): Likewise.
(write_buf): Likewise.
(us_read): Likewise. Normal case is GFC_CONVERT_NATIVE.
(next_record_w_unf): Mark paths leading to generate_error()
as unlikely.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: likely.diff
Type: text/x-patch
Size: 11823 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20081015/4251adaa/attachment.bin>
More information about the Fortran
mailing list