aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorQing Zhao <qing.zhao@oracle.com>2018-07-20 18:18:25 +0000
committerQing Zhao <qinzhao@gcc.gnu.org>2018-07-20 18:18:25 +0000
commit523a59ff86fb66df06dd3a9e29a24e59c3b7f9d8 (patch)
tree54fb67ddff4aec02c1d0cf9cdfb1ba404382a5c3 /gcc/fortran/resolve.c
parentcba563f71dbc137a6c0ba7c10bc8fef90203ea0c (diff)
downloadgcc-523a59ff86fb66df06dd3a9e29a24e59c3b7f9d8.zip
gcc-523a59ff86fb66df06dd3a9e29a24e59c3b7f9d8.tar.gz
gcc-523a59ff86fb66df06dd3a9e29a24e59c3b7f9d8.tar.bz2
Give up the inlining expansion for strcmp/strncmp/memcmp on a target where the...
Give up the inlining expansion for strcmp/strncmp/memcmp on a target where the type of the call has same or narrower presicion than unsigned char. Change char to unsigned char for strcmp/strncmp when expand them to a sequence of byte comparisons. Due to C standard section 7.24.4: The sign of a nonzero value returned by the comparison functions memcmp, strcmp, and strncmp is determined by the sign of the difference between the values of the first pair of characters (both interpreted as unsigned char) that differ in the objects being compared. bootstraped and tested on both X86 and Aarch64. no regression. From-SVN: r262907
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions