PR testsuite/83131 - c-c++/common/attr-nonstring-3 failure for strcmp tests on PowerPC
authorMartin Sebor <msebor@redhat.com>
Wed, 20 Dec 2017 16:56:20 +0000 (16:56 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 20 Dec 2017 16:56:20 +0000 (09:56 -0700)
commit16155777a6069d69a078fee979d9ad05456256a7
treed7498b1f18e85c3e5c5835f12f2c5d49fe34567a
parent35c4515b8b8e306684a3837d40ffa2c9fcdd9899
PR testsuite/83131 - c-c++/common/attr-nonstring-3 failure for strcmp tests on PowerPC

gcc/ChangeLog:

PR testsuite/83131
* builtins.c (expand_builtin_strlen): Use get_callee_fndecl.
(expand_builtin_strcmp): Call maybe_warn_nonstring_arg.
(expand_builtin_strncmp): Same.

gcc/testsuite/ChangeLog:

PR testsuite/83131
* c-c++-common/attr-nonstring-4.c: New test.

From-SVN: r255898
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attr-nonstring-4.c [new file with mode: 0644]