This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] Use memcmp for string comparisons a bit more
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: fortran at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 30 Mar 2013 11:30:38 +0100
- Subject: Re: [Patch, fortran] Use memcmp for string comparisons a bit more
- References: <51458DD6 dot 8000200 at netcologne dot de> <514F743D dot 6020704 at netcologne dot de> <51548D37 dot 2040402 at net-b dot de> <5154B72B dot 9040500 at netcologne dot de> <51559A37 dot 2000806 at netcologne dot de> <5155AB87 dot 9090301 at net-b dot de> <5155FF54 dot 9070803 at netcologne dot de> <51560DA2 dot 3000208 at net-b dot de>
Hi Tobias,
Somehow the commas and parentheses look odd. Shouldn't that be, e.g.,
"or (for kind=4 strings) the ..."?
I committed as rev 197261 and 197262, with a slightly better worded
ChangeLog entry :-)
The wording is now
If the strings
compared have constant and equal lengths and
the strings are kind=1, or, for kind=4 strings,
the test is for (in)equality, use memcmp().
Thomas
- References:
- [patch, fortran, 4.9] Improve efficiency of array constructor operators
- Re: [patch, fortran, 4.9] Improve efficiency of array constructor operators
- Re: [patch, fortran, 4.9] Improve efficiency of array constructor operators
- Re: [patch, fortran, 4.9] Improve efficiency of array constructor operators
- Re: [patch, fortran, 4.9] Improve efficiency of array constructor operators
- Re: [patch, fortran, 4.9] Improve efficiency of array constructor operators
- [Patch, fortran] Use memcmp for string comparisons a bit more
- Re: [Patch, fortran] Use memcmp for string comparisons a bit more