This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libgfortran, patch] Minor simplification in find_option


On Fri, Sep 10, 2010 at 14:22, FX <fxcoudert@gmail.com> wrote:
> Dear all,
>
> The attached small patch simplifies the code in the library's find_option() function, so that we don't repeatedly call fstrlen() on the same string. We now compute the length once before the start of the loop. This allows to inline the remaining of compare0.
>
> Bootstrapped and regtested on x86_64-linux, OK to commit?

Ok, thanks for the patch.

-- 
Janne Blomqvist


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]